问题描述
如何在我的应用程序顶部制作导航栏?我想要像照片中的顶级酒吧一样: 链接文本
推荐答案
这个问题很相似,可能是您正在寻找的: Android/布局:如何创建头内容布局.
就创建标题而言,只需创建一个RelativeLayout,两个Buttons:一个连接到父左侧的一个RelativeLayout,一个到父母的权利.
其他推荐答案
如果要在清单文件中将其应用程序标记中的应用程序标记放置此代码,请隐藏默认选项卡栏
<Application android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" <!-- other parameters of application tag--> >
和然后
问题描述
How can i make a Navigation Bar at the top of my application? I would like something like the top bar in the photo: link text
推荐答案
This question is pretty similar, and might be what you're looking for: Android / layout: how to create a header-content layout.
As far as creating the header, simply create a RelativeLayout with two Buttons: one attached to the parent's left and one to the parent's right.
其他推荐答案
if you want to make a customized header place this code in your application tag in manifest file to hide default tab bar
<Application android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" <!-- other parameters of application tag--> >
and the then