Custom Header Menu in Android App (How To)
- by masterkrang
I'm trying to implement a custom header menu in my Android application and I'm wondering what the standard or best practice for creating a header menu. I'm thinking something like the facebook app that displays a log and has some action items like triggering a search and possibly return back to the main activity.
Tab Layout doesn't seem to be what I'm looking for.
I found a tutorial here that might be close to what I'm looking for but not sure. It seems a bit redundant to instantiate a menu in every Activity. Seems like there would be a way to decouple the Activity from the menu, or at least more loosely couple it.
Perhaps I need to implement something with Fragments but I'm sort of new, so I'm not sure yet. Looking forward to your suggestions or hearing how you've implemented something like this. Thanks!