摘要:
<shape xmlns:android="http://schemas.android.com/apk/res/android" > <!-- solid 设置stroke设置的边框以内的颜色 --> <solid android:color="#b0000000"/> <!-- stroke主要 阅读全文
posted @ 2016-06-21 10:46
请叫我码农怪蜀黍
阅读(762)
评论(0)
推荐(0)
摘要:
Popupwindow 完美demo实现 图示: 关键代码说明: 1.弹出popupwindow,背景变暗 2.popupwindow消失之后,背景恢复 3.popupwindow圆角矩形 rounded_corners_bg.xml pupopwindow布局文件中设置背景 4.点击popupwi 阅读全文
posted @ 2016-06-21 10:19
请叫我码农怪蜀黍
阅读(2445)
评论(0)
推荐(0)
摘要:
xml控件配置属性 标签 corners 圆角gradient 渐变padding 内容离边界距离size 大小 solid 填充颜色stroke 描边 注意的是corners的属性bottomLeftRadius为右下角、bottomRightRadius为左下角 shape制作圆角 shape制 阅读全文
posted @ 2016-06-21 10:15
请叫我码农怪蜀黍
阅读(348)
评论(0)
推荐(0)
摘要:
1.设置半透明主题2.设置window的alpha值 // WindowManager.LayoutParams lp = getWindow().getAttributes(); // lp.alpha = 0.5f; //0.0-1.0 // getWindow().setAttributes( 阅读全文
posted @ 2016-06-21 09:43
请叫我码农怪蜀黍
阅读(759)
评论(0)
推荐(0)

浙公网安备 33010602011771号