如何设置整个软件的透明度?
解决方案 »
- 全屏Activity打开所有Activity都是全屏的?求解决 (@android:style/Theme.Wallpaper.NoTitleBar.Full)
- 这个效果要怎么样才能实现
- 关于debug的疑问!
- android菜鸟问题?
- 关于动态修改menu菜单的问题.
- listview嵌套gridview,怎么判断点的是gridview的图片还是空白部分
- 问一个android关于图片覆盖的问题.
- SurfaceView 内画一个圆形,如何添加点击事件呢?
- Android 开发中 对下上两个图层的相关操作问题,求大神果断喷我吧!
- Android工程中bin目录下为什么.apk文件是空的???
- 【分享】Zookeeper 的学习与运用
- android seekbar 有没有从右到左的
<android:background android:background="@android:color/transparent"/>
2.使用ARGB来控制
半透明
<android:background="#e0000000"/>
透明
<android:background android:background="#00000000"/>
3.设置Alpha
View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id
v.getBackground().setAlpha(100);//透明度0~255透明度值 ,值越小越透明
可以用个SeekBar来控制上面的数字嘛。