开发者

How to set the mainfest.xml to remove the default label

Any one can share the mainfest.开发者_运维问答xml.

How to set it? then can remove the label..? Thanks very much


Your question isn't very clear, but assuming you're asking about displaying the name of your application: There's a line in the < application > section that has "@string/app_name" in it, which you could remove. Not sure that's a good idea though. Alternatively you might be asking how to remove the title bar at the top of an application. If so, use

requestWindowFeature(Window.FEATURE_NO_TITLE);


If by removing the default label, you mean removing the title bar, you can use the following in your onCreate

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);        
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.main);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜