[英]How do I modify/get rid of this bar at the top of my listview?
Just like the title says I'm trying to get rid of this bar and I could find no reference to it anywhere in my xml or code. 就像标题说的那样,我试图摆脱这个限制,并且在我的xml或代码中的任何地方都找不到对它的引用。 I was looking around on this website also and could not find a suggestion that worked.
我也在该网站上四处寻找,找不到有效的建议。 I mean the blue area that says listview on it.
我的意思是说它上面有listview的蓝色区域。 Thanks!
谢谢!
https://i.stack.imgur.com/YWUWG.jpg https://i.stack.imgur.com/YWUWG.jpg
You can take away it in your Activity like this 您可以像这样在活动中删除它
onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
// use this before you create a view
ActionBar actionBar = getSupportedActionBar();
if(actionBar != null){
actionBar.hide();
}
setContentView(R.layout.some_layout);
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.