Skip to content

Commit c992fb1

Browse files
committed
Updates README.md
1 parent 99a40ec commit c992fb1

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Navigation Drawer APP
1+
# Navigation Drawer with API Integration and Simple Intent Mechanism
22

3-
This repository contains the source code for an Android application demonstrating the implementation of a Navigation Drawer using the Kotlin language within the Android Studio environment. This project showcases how to create a user-friendly and intuitive navigation experience.
3+
This repository contains the source code for an Android application demonstrating the implementation of a Navigation Drawer integrated with API calls and a simple intent mechanism using the Kotlin language within the Android Studio environment. This project showcases how to create a user-friendly and intuitive navigation experience with dynamic content.
44

55
<hr><br>
66

77
## Purpose of This Repository
88

9-
To showcase the integration of a Navigation Drawer with Fragments to create a flexible and modular user interface within an Android application developed with Kotlin.
9+
To showcase the integration of a Navigation Drawer with API calls and a simple intent mechanism to create a flexible and modular user interface within an Android application developed with Kotlin.
1010

1111
<hr><br>
1212

@@ -18,6 +18,7 @@ Below is a demonstration of the main function of the Navigation Drawer App:
1818
// filepath: /home/guan/Documents/Code/Simple-Kotlin-Project/app/src/main/java/com/example/navigationdrawer/MainActivity.kt
1919
package com.example.navigationdrawer
2020

21+
import android.content.Intent
2122
import android.os.Bundle
2223
import androidx.appcompat.app.AppCompatActivity
2324
import androidx.drawerlayout.widget.DrawerLayout
@@ -37,6 +38,15 @@ class MainActivity : AppCompatActivity() {
3738
// Handle navigation view item clicks here.
3839
menuItem.isChecked = true
3940
drawerLayout.closeDrawers()
41+
42+
// Simple intent mechanism
43+
when (menuItem.itemId) {
44+
R.id.nav_api -> {
45+
val intent = Intent(this, ApiActivity::class.java)
46+
startActivity(intent)
47+
}
48+
// Add more cases for other menu items
49+
}
4050
true
4151
}
4252
}
@@ -55,6 +65,8 @@ You can find the latest releases [here](https://github.com/guanshiyin28/Simple-K
5565

5666
- Navigation Drawer with multiple menu items
5767
- Fragment integration for modular UI
68+
- API integration for dynamic content
69+
- Simple intent mechanism for navigation
5870
- Smooth and intuitive navigation
5971
- Responsive design for various screen sizes
6072

@@ -65,6 +77,7 @@ You can find the latest releases [here](https://github.com/guanshiyin28/Simple-K
6577
- Kotlin
6678
- Android Studio
6779
- XML for layout design
80+
- Retrofit for API calls
6881

6982
<hr><br>
7083

@@ -74,7 +87,7 @@ You can find the latest releases [here](https://github.com/guanshiyin28/Simple-K
7487
2. **Clone this Repository**
7588

7689
```bash
77-
git clone https://github.com/guanshiyin28/Navigation-Drawer.git
90+
git clone https://github.com/guanshiyin28/Simple-Kotlin-Project.git
7891
```
7992

8093
3. **Open the project in Android Studio**

0 commit comments

Comments
 (0)