Custom Header Menu in Android App (How To)

Posted by masterkrang on Stack Overflow See other posts from Stack Overflow or by masterkrang
Published on 2012-05-30T22:38:19Z Indexed on 2012/05/30 22:40 UTC
Read the original article Hit count: 112

Filed under:

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!

© Stack Overflow or respective owner

Related posts about android