1:设置选中图片的背景颜色
this.
gridviewToolbar = (GridView) super.findViewById(R.id.gridviewbar);
this.
gridviewToolbar.setSelector(new ColorDrawable(Color.TRANSPARENT));
2:通过屏幕的长度,宽度来定义控件的长宽
this.width = super.getWindowManager().getDefaultDisplay().getWidth()
/ this.menu_img.length;
this.height = super.getWindowManager().getDefaultDisplay().getHeight() / 8;
4:取消标题,必须在设置布局文件之前取消掉
super.requestWindowFeature(Window.FEATURE_NO_TITLE);
Android一些小技巧
猜你喜欢
转载自18767136122.iteye.com/blog/1984083
今日推荐
周排行