android编程中 设置控件透明效果的常见三种方法
来源:互联网 发布:单片机最小系统图 编辑:程序博客网 时间:2024/06/10 20:35
android编程中 设置控件透明效果的常见三种方法
第一种:
用android系统的透明效果:
android:background="@android:color/transparent"
如:
<Button
android:background="@android:color/transparent"
android:text="@+id/Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff" />
第二种:
用ARGB来控制:
半透明<Button android:background="#e0000000" />
透明<Button android:background="#00000000" />
第三种:
设置alpha
View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id
v.getBackground().setAlpha(100);//透明度0~255透明度值 ,值越小越透明
- android编程中 设置控件透明效果的常见三种方法
- Android设置透明效果的三种方法
- 设置透明背景效果的三种方法
- Android开发实例透明效果设置方法
- android设置控件背景透明、半透明的方法
- android xml文件中透明效果设置
- android 设置透明效果
- android 设置透明效果
- android 设置透明效果
- android 设置透明效果
- android 设置透明效果
- Android设置透明效果
- android 设置透明效果
- Android中设置控件透明度的方法
- android设置组件透明效果
- delphi中使用透明控件的几种方法
- 对话框中控件透明的方法
- RGB简述以及Android中设置透明、半透明等效果
- 阅读代码的方法
- 【学习笔记】Bit-map数据结构
- Ubuntu使用命令安装jdk失败的解决方案
- android 检测耳机是否插入
- 第一次C程序设计上机报告
- android编程中 设置控件透明效果的常见三种方法
- 转自Lindahua博客《图,谱,马尔可夫过程,聚类结构》
- 博弈论基础知识: 巴什博奕+威佐夫博奕+尼姆博弈(及Staircase);
- H.264资料参考大全
- ubuntu 11.04之后版本安装jdk
- C++编程思想,第十八章《RTTI运行时类型识别》
- Struts 2 <s:checkbox> checkbox example
- #define的作用域
- Android网格布局(GirdView)学习