Android Navigation Bar Top

邮差的信 提交于 2020-01-11 04:05:30

问题


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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2184778/android-navigation-bar-top

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!