Reputation: 840
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
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