Advertisement

Android开发:带阴影效果的Shape组件(Python版本)

阅读量:

效果展示图:

具体形态如下:

复制代码
 <?xml version="1.0" encoding="utf-8"?>

    
 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    
     <item>
    
     <shape>
    
         <corners
    
             android:topLeftRadius="10dp"
    
             android:topRightRadius="10dp"
    
             android:bottomLeftRadius="10dp"
    
             android:bottomRightRadius="10dp" />
    
         <padding
    
             android:bottom="1dp"
    
             android:left="1dp"
    

全部评论 (0)

还没有任何评论哟~