Skip to content

Instantly share code, notes, and snippets.

@codinginflow
Created July 28, 2021 21:18
Show Gist options
  • Save codinginflow/2d85724e4291c3c32719e6a6cff9377c to your computer and use it in GitHub Desktop.
Save codinginflow/2d85724e4291c3c32719e6a6cff9377c to your computer and use it in GitHub Desktop.
Navigation Drawer Tutorial Part 1
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.navigationdrawerexample">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:showIn="navigation_view">
<group android:checkableBehavior="single">
<item
android:id="@+id/nav_message"
android:icon="@drawable/ic_message"
android:title="Message" />
<item
android:id="@+id/nav_chat"
android:icon="@drawable/ic_chat"
android:title="Chat" />
<item
android:id="@+id/nav_profile"
android:icon="@drawable/ic_profile"
android:title="Profile" />
</group>
<item android:title="Communicate">
<menu>
<item
android:id="@+id/nav_share"
android:icon="@drawable/ic_share"
android:title="Share" />
<item
android:id="@+id/nav_send"
android:icon="@drawable/ic_send"
android:title="Send" />
</menu>
</item>
</menu>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
</resources>
@technicalyarana
Copy link

hello sir where is tha java code can your give me please

@kneelon
Copy link

kneelon commented Nov 1, 2021

@technicalyarana watch the other part of the video and get the Java code

@thelearn-tech
Copy link

thelearn-tech commented Jan 2, 2023

@kneelon Which version of Android studio where u using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment