• Android阴影----通过xml文件设置控件的阴影效果(转)


    其实不是真正的阴影效果,只是模拟而已,不够完美 直接上代码:

    <?xmlversion="1.0" encoding="utf-8"?>

    <layer-listxmlns:android="http://schemas.android.com/apk/res/android" >

        <item >

            <shape >

                <cornersandroid:radius="25dp"/>

                <gradientandroid:startColor="#999999"

                   android:endColor="#E4E4E4"

                    android:type="linear"

                   android:angle="90"/>

            </shape>

        </item>

         <item android:top="1dp"android:right="1dp" android:bottom="1dp"android:left="1dp">

            <shape >

                <cornersandroid:radius="25dp"/>

                <gradientandroid:startColor="#E9E9E9"

                   android:endColor="#FFFFFF"

                    android:type="linear"

                   android:angle="90"/>

            </shape>

        </item>

    </layer-list>

  • 相关阅读:
    利用shell脚本实现免密认证
    利用shell脚本实现https证书认证
    高级sed命令
    Zabbix自定义监控
    Zabbix三种邮箱告警配置
    Zabbix配置
    监控服务Zabbix部署
    Ftp
    Samba
    NFS
  • 原文地址:https://www.cnblogs.com/weixiao870428/p/3489422.html
Copyright © 2020-2023  润新知