On Friday, May 27, 2016 at 8:10:50 AM UTC+5:30, Jefri triyanto wrote:
>
> excusme bro/sist
>
> i have problem in my programs, i want to add the sub menu in my navigation
> drawer,
> but i don't know the source code to creating this.
> can help me ?
>
> thanks,
>
Goto activity_main.xml
there will be
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="left"
app:itemTextColor="@color/medium_grey"
app:headerLayout="@layout/drawer_header"
app:menu="@menu/drawer"/>
app:menu="@menu/drawer" goto this file located in menu folder otherwise
press ctrl+click which will open this file
open it and add your main menu and submenus
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/d7d6a22f-a951-4cf1-9e9f-7e217d0ee590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.