[color=red]1:设置选中图片的背景颜色[/color]
this.[color=blue]gridviewToolbar[/color] = (GridView) super.findViewById(R.id.gridviewbar);
this.[color=blue]gridviewToolbar[/color].setSelector(new ColorDrawable(Color.TRANSPARENT));
[color=red]2:通过屏幕的长度,宽度来定义控件的长宽[/color]
this.width = super.getWindowManager().getDefaultDisplay().getWidth()
/ this.menu_img.length;
this.height = super.getWindowManager().getDefaultDisplay().getHeight() / 8;
[color=red]4:取消标题,必须在设置布局文件之前取消掉[/color]
super.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.[color=blue]gridviewToolbar[/color] = (GridView) super.findViewById(R.id.gridviewbar);
this.[color=blue]gridviewToolbar[/color].setSelector(new ColorDrawable(Color.TRANSPARENT));
[color=red]2:通过屏幕的长度,宽度来定义控件的长宽[/color]
this.width = super.getWindowManager().getDefaultDisplay().getWidth()
/ this.menu_img.length;
this.height = super.getWindowManager().getDefaultDisplay().getHeight() / 8;
[color=red]4:取消标题,必须在设置布局文件之前取消掉[/color]
super.requestWindowFeature(Window.FEATURE_NO_TITLE);
1547

被折叠的 条评论
为什么被折叠?



