【发布时间】:2011-03-25 13:47:56
【问题描述】:
我阅读了如何创建自定义标题栏的教程。
工作正常但是:
是否可以将此栏不作为标题栏添加到顶部,而是添加到底部?
【问题讨论】:
标签: android titlebar custom-titlebar
我阅读了如何创建自定义标题栏的教程。
工作正常但是:
是否可以将此栏不作为标题栏添加到顶部,而是添加到底部?
【问题讨论】:
标签: android titlebar custom-titlebar
您始终可以创建自己的 TextView 并将其放置在布局上的绝对位置(请参阅 AbsoluteLayout here),但我建议您不要这样做,因为它违反了正常的用户界面标准并且可能会造成混淆给用户。此外,如果您在布局中滚动,则定位会变得更加复杂。据我所知,没有内置的移动标题栏的方法。
【讨论】:
只是一个想法。 您可以关闭标题栏并在所有布局的底部添加标题栏之类的内容:
<LinearLayout
android:orientation="vertical"
android:width="fill_parent"
android:height="fill_parent">
<LinearLayout
android:id="@+id/layout_container"
android:weight="1"
android:height="0dp"
android:width="fill_parent">
...
</LinearLayout>
<LinearLayout
androdi:id="@+id/titlebar"
android:height="wrap_content"
android:width="fill_parent">
...
</LinearLayout>
</LinearLayout>
但我从未见过底部的标题栏。
【讨论】: