Exchange of android menu

Asked

Viewed 46 times

0

I need to create three menu options in my app, 1 for visitors, another for registrants and another for admin. I created 3 menu files with the options I need, and making the exchange manually right in the menu call works smoothly. How can I do this to demonstrate login functionality using for example fakes like nivel1, nivel2 and nivel3?

  • Add to the question what you have already done.

  • I don’t understand very well! Could you improve the question?! Try adding your code showing that it was done or some image that simulates what you want!

  • Edit your post with the code, it’s better.

  • Segue o codigo da chamada do menu:&#xA;<android.support.design.widget.NavigationView&#xA; android:id="@+id/nav_view"&#xA; android:layout_width="wrap_content"&#xA; android:layout_height="match_parent"&#xA; android:layout_gravity="start" android:fitsSystemWindows="true" app:headerLayout="@layout/nav_header_home" android:background="@color/colorPrimary" app:itemTextColor="@color/white" app:menu="@menu/activity_home_drawer" /> "activity_home_drawer"by another depending on login using id of fakes users.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.