android 设置Button或者ImageButton的背景透明 半透明 透明
来源:互联网 发布:开源 流量统计 软件 编辑:程序博客网 时间:2024/05/16 11:20
Button或者ImageButton的背景设为透明或者半透明
半透明<Button android:background="#e0000000" ... />
透明<Button android:background="#00000000" ... />
颜色和不透明度 (alpha) 值以十六进制表示法表示。任何一种颜色的值范围都是 0 到 255(00 到 ff)。对于 alpha,00 表示完全透明,ff 表示完全不透明。表达式顺序是“aabbggrr”,其中“aa=alpha”(00 到 ff);“bb=blue”(00 到 ff);“gg=green”(00 到 ff);“rr=red”(00 到 ff)。例如,如果您希望对某叠加层应用不透明度为 50% 的蓝色,则应指定以下值:7fff0000
设置背景图片透明度(超简单)
Java代码
- View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id
- v.getBackground().setAlpha(100);//0~255透明度值
0 0
- Android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明 透明
- android 设置Button或者ImageButton的背景透明 半透明
- android布局设置Button或者ImageButton的背景透明 半透明 透明
- Button或者ImageButton的背景设为透明或者半透明
- Button或者ImageButton的背景设为透明或者半透明
- Button或者ImageButton的背景设为透明或者半透明
- Button或者ImageButton的背景设为透明或者半透明
- Button或者ImageButton的背景设为透明或者半透明
- Button或者ImageButton的背景设为透明或者半透明
- Android中设置Button或者ImageButton的背景透明
- Linux下远程连接windows,执行命令
- 手势识别
- 简易计算器页面
- 贝塞尔曲线学习(1)
- Eclipse+Maven Web开发配置
- android 设置Button或者ImageButton的背景透明 半透明 透明
- 素数 学习笔记
- VC Office2007界面对话框实现
- 黑马程序员_OC特有语法
- php错误处理
- Apache服务器配置(三)
- jQuery ajax请求错误返回status 0和错误error的问题
- MySQL的Replace into 与Insert into ..... on duplicate key update ...真正的不同之处
- SQLite清空表