android backgroud alpha
16lz
2021-12-04
tongji.cnzz.com/main.php?c=flow&a=frame&siteid=1000165004#!/1391851149271/flow/trend/1/1000165004/2014-02-08/2014-02-08
设置透明效果 大概有三种
1、用android系统的透明效果
Java代码
android:background=" @android :color/transparent"
例如 设置按钮
Java代码
android:text="@+id/Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff" />
2、用ARGB来控制 Java代码
半透明
透明 3、设置alpha Java代码
View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id
v.getBackground().setAlpha(100);//0~255透明度值
更多相关文章
- Android一键锁屏开发全过程【源码】【附图】
- Android点击左右按钮实现左右滑动页面切换
- Android导航滑动文字渐变+底部指示条
- Android(安卓)滚动Tab
- Android(安卓)layout 设置圆角 内部 imageview 无效果
- Google C2Dm相关文章
- Android(安卓)UI设计:TextView与EditText
- android之知识点小结二
- MQTT的学习研究(十五) MQTT 和android整合文章