开发者

Use a fixed view to all my Activity

I want a view much like menubar at the bottom of the screen. I want to keep it in all the activity i have.

Is there any way to keep this view in开发者_开发百科 all the activity without copy & pasting it to all the activity?

If you know about it let me know ASAP.


Shaiful


One way is to define the common view in a separate layout file, and include it at the end of each layout using the include tag.

More about it here, http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/


Create a layout for the button bar and reuse/include it using . This should help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜