android : 圆角按钮 shape属性





<shape xmlns:android="http://schemas.android.com/apk/res/android"> 

    <!-- 填充的颜色 -->
    <solid android:color="#ffffffff"/>    

    <stroke android:width="3dp"
            android:color="#ff000000"
            />

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

    <corners android:bottomRightRadius="7dp" 
             android:bottomLeftRadius="7dp" 
             android:topLeftRadius="7dp" 
             android:topRightRadius="7dp"/> 
</shape>





更多: http://nodebook.info/book/view?bid=5354725719980e913e9be3f1



















-

猜你喜欢

转载自lixh1986.iteye.com/blog/2146572
今日推荐