Android编程使用自定义shape实现shadow阴影效果的方法
Android编程使用自定义shape实现shadow阴影效果的方法
发布时间:2016-12-28 来源:查字典编辑
摘要:本文实例讲述了Android编程使用自定义shape实现shadow阴影效果的方法。分享给大家供大家参考,具体如下:直接上xml文件,并且附...

本文实例讲述了Android编程使用自定义shape实现shadow阴影效果的方法。分享给大家供大家参考,具体如下:

直接上xml文件, 并且附上相应的解析:

<"1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"> <layer-list> <> <item android:left="4dp" android:top="4dp"> <shape> <solid android:color="#ff58bb52" /> <corners android:radius="30dip"/> </shape> </item> </layer-list> </item> <item> <layer-list> <> <item android:left="4dp" android:top="4dp"> <shape> <solid android:color="#66000000" /> <corners android:radius="30dip"/> </shape> </item> <> <> <item android:bottom="4dp" android:right="4dp"> <shape> <solid android:color="#ff58bb52" /> <corners android:radius="30dip"/> </shape> </item> </layer-list> </item> </selector>

希望本文所述对大家Android程序设计有所帮助。

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新安卓软件开发学习
热门安卓软件开发学习
编程开发子分类