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透明度值

更多相关文章

  1. Android layout 设置圆角 内部 imageview 无效果
  2. android 实现代码关机
  3. android 的那些触摸效果
  4. Android 文件管理器 Android文件管理器源代码
  5. googleMap----放大,缩小,东南西北,四种视图切换代码
  6. Android设置透明、半透明效果
  7. TextView 实现跑马灯效果
  8. 转:善用Android预定义样式来为我们的布局设置效果,大大节约代码量
  9. android实现图片平铺效果&WebView多点触控实现缩放

随机推荐

  1. Android应用开发学习笔记之菜单
  2. 利用Dumpsys做系统诊断
  3. 关于Android零基础学习的思考
  4. Android(安卓)Studio 快捷键整理
  5. Android中实现iPhone开关
  6. Firefox浏览器的Android
  7. Android(安卓)-- the project was not bu
  8. android之SQLite数据库应用(一)
  9. Android(安卓)生成长图并添加水印(一)
  10. 对android NDK的认识