在底部的每个活动常见的按钮或标签 [英] Common buttons or tabs at bottom for every activity
问题描述
我想提出一些快捷键或按键在每个屏幕/活动的底部。我知道我们能够做到这一点使用的FrameLayout / RelativeLayout的,标签窗口小部件等。
I want to put some shortcuts or buttons at bottom of every screen/activity. I understand we can do that by using framelayout/ relativelayout, tab widget etc.
一直以来,我需要它的每一项活动,我需要再次与放大器编写XML布局的每个活动和按钮操作;再次?是否有可能指的布局和按钮操作点击等,使同一个code冗余?
Since, I need it for every activity, do I need to write XML layout for every activity and the button actions again & again? Is it possible to refer a layout and actions on button click etc so that same code redundancy?
推荐答案
你好,
您可以使用XML标签:
You can use the xml tag:
<include layout="@layout/commonfooter" />
要包括凡是你必须在另一个布局XML您commonfooter.xml布局文件。
to include whatever you have in your commonfooter.xml layout file in another layout xml.
希望帮助!
这篇关于在底部的每个活动常见的按钮或标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!