Android — How to disscociate the name of the application from the titlebar?

隐身守侯 提交于 2019-12-06 08:13:18

You can change the header of any activity by using setTitle("THE TITLE"); in the java code for the page. If you want to use a string defined in the XML FILES, you can use setTitle(R.string.stringName).

My opinion is to create your own custom title bar in the top of the screen and set the no title bar option in the manifest for the activity.

android:theme="@android:style/Theme.NoTitleBar"

try changing the label of your mainactivity to something like this android:label="@string/main_header" and define the string header in the strings.xml...

hope this good help you...

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