Best way to reuse a footer menu in Android
Posted
by Gunnar Lium
on Stack Overflow
See other posts from Stack Overflow
or by Gunnar Lium
Published on 2010-05-28T12:33:59Z
Indexed on
2010/05/28
14:32 UTC
Read the original article
Hit count: 393
I'm trying to implement a menu in the footer of an app, similar to i.e. the Engadget app. As I understand, getting a standard TabLayout to work in this way is not trivial (if at all possible?).
As I see quite a few apps using this interface paradigm, I would assume there is a clever way of doing it. Currently, I'm defining the layout by adding an include line at the end of every layout. This works fine as far as rendering is concerned, but I have to add the onClickListeners to each activity. can we define clickListener through XML?
To sum up my question: What is the best way to implement a shared footer navigation accross several Activities?
© Stack Overflow or respective owner