How can I abstract my Navigation Drawer in another class that can be used by all my activities(Android)? -
i have been able create navigation drawer following example androiddevelopers. have put navigation drawer in activities, , in of them, same.
that's why have thought abstracting part of activity , setting method such shownavigationdrawer() in different class, show navigation drawer. don't know how this. should extend activity in new class or should enter parameters activity , context?
thank much.
i suggest using fragment won't have problem.
Comments
Post a Comment