XurajB
XurajB

Reputation: 840

Same SlidingDrawer in all activities?

I have a slidingDrawer in my application that contains links which should be accessed by all activities. Is it possible to create a single slidingDrawer and extend it to all activities? Any example would be very helpful.

Upvotes: 4

Views: 964

Answers (1)

sgarman
sgarman

Reputation: 6182

I think your best bet would be to create a parent class with all of the sliding drawer logic. The parent class would extend activity and make sure to setup / populate your sliding drawer, the data could possibly be a singleton also to avoid load duplication. Then all of your activities would extend your SlidingDrawer activity and do their thing.

Upvotes: 1

Related Questions