我的简书:https://www.jianshu.com/u/c91e642c4d90
我的CSDN:http://blog.csdn.net/wo_ha
我的GitHub:https://github.com/chuanqiLjp
我的个人博客:https://chuanqiljp.github.io/
版权声明:商业转载请联系我获得授权,非商业转载请在醒目位置注明出处。
1.标签shape
1 | <!-- shape 形状 |
2. shape 标签下的gradient 标签
1 | <!-- |
3. shape 标签下的solid 标签
1 | <!--solid 内部填充 |
4. shape 标签下的corners 标签
1 | <!-- |
5. shape 标签下的padding 标签
1 | <!-- |
6. shape 标签下的size 标签
1 | <!-- |
7. shape 标签下的stroke 标签
1 | <!-- stroke 描边 |
8.使用layer-list(图集)制作控件或布局的阴影
1.在drawable文件夹下创建xml文件并编码
1 | <?xml version="1.0" encoding="utf-8"?> |
2. 使用时直接设置该文件为背景即可,
1 | android:background="@drawable/img_bg_shadow" |
来一个效果图