1、Button或者ImageButton的背景透明或者半透明 半透明:<Button android:background="#e0000000"···> 透明:<Button android:background="#00000000"···> 颜色 ...
首先讲一个网上的方法: popupwindow弹出后,屏幕背景变成半透明这个效果很普通。实现的方法也很多。我使用的可能是最简单的一种,就是设置一下getWindows的透明度。 设置添加屏幕的背景透明度 ,:全透明 . :半透明 ,取自己想到的透明度 param bgAlpha public void backgroundAlpha float bgAlpha WindowManager.Lay ...
2016-04-28 13:44 0 2267 推荐指数:
1、Button或者ImageButton的背景透明或者半透明 半透明:<Button android:background="#e0000000"···> 透明:<Button android:background="#00000000"···> 颜色 ...
先看效果图: BasePopupWindowWithMask.class TestPopupWindow.class pop_layout.xml ...
1.设置半透明主题 2.设置window的alpha值 // WindowManager.LayoutParams lp = getWindow().getAttributes ...
一、设置半透明的方法 1. android:background="#99212121" 说明:半透明色是16进制表示,前两位是透明度,后6位是颜色值。 附: 不透明度 值 100% FF 不透明 95% F2 90% E6 85% D9 80 ...
设置颜色的不透明度,一般用于调整background-color、color、box-shadow等的不透明度,后代元素不会一起跟着透明 ( ) ...
...
就一句话 background: rgba(0, 0, 0, .2); ...
简介 PopupWindow,顾名思义弹窗.PopupWindow是与AlertDialog在形式上类似的弹窗功能,都是为了在activity最上层显示一个弹窗.但是区别是PopupWindow可以自定义出现的位置,并且可以添加入自己需要的View或者导入自己写好的xml布局 应用 ...