Android reload Navigation Drawer fragment -
there login option in navigation drawer. when logged in want show logout. navigation drawer items have drawable left them. there can reload/refresh/reinitialize navigation drawer once login has been done?
you can define layout navigation area this:
<android.support.v4.widget.drawerlayout> <relativelayout> .... <listview ... android:id="@+id/navigation_list"/> </listview> </relativelayout> </android.support.v4.widget.drawerlayout>
from within code can work adapter
and fill content of list wish, update works notifydatasetchanged
. each entry of list can define specific layout (with or without buttons, etc.)
Comments
Post a Comment