android - How can i open new activity keeping the same drawer on the right/left? -


how can open new activity(at listview element click) keeping same drawer on right/left?

if specify drawer layout new activity (in xml) , copy on same navigation drawer code original activity in new activity, should work. if this, recommend moving common code (such custom list adapters may using populate navigation list within drawer, onitemclicklistener(), etc.) own class , having 2 activities access common methods there. however, if have option of using fragments, @matt_9.0 suggested, make navigation drawer more maintainable down road.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -