手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >Android编程使用自定义shape实现shadow阴影效果的方法
Android编程使用自定义shape实现shadow阴影效果的方法
摘要:本文实例讲述了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程序设计有所帮助。

【Android编程使用自定义shape实现shadow阴影效果的方法】相关文章:

Android自定义View设定到FrameLayout布局中实现多组件显示的方法 分享

Android中使用sax解析xml文件的方法

android intent使用定义标题

Android实现Activities之间进行数据传递的方法

android 引导界面的实现方法

Android开发之串口编程原理和实现方式

Android 获取进程内存使用情况方法

Android编程实现图标拖动效果的方法

Android开发笔记之:如何安全中止一个自定义线程Thread的方法

android中图片翻页效果简单的实现方法

精品推荐
分类导航