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
Post a Comment