开发者

How to use header and footer in android

I am developing an app in android in which I need a header and footer through out app while switching between different activities. The header and footer text will change while switching between activities. What would be the best way to achieve this approach? Actually the header will show navig开发者_如何学JAVAation of app.


I do not want to create them on each next activity. So that when switch between activities only internal content should switch from right to left not the header and footer

This is not possible with separate activities, sorry.


You could recreate what a TabActivity does? So you'll load your activities in your "raiActivity", and instead of having various tabs, you'll have a header and footer.

Check out ActivityGroup for this


May work with

fragments

but i don't know how to explain it to you. Google search tutorials for fragments and even frame layout maube you get what you want. This was the closest i got to answer my questions about something like that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜