Android set border and corner by style


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
 <solid android:color="#FFFFFF"/>
 <stroke android:width="1.2dp" android:color="#AAAAAA" />
 
 <corners android:bottomRightRadius="5dp" android:bottomLeftRadius="5dp" android:topLeftRadius="5dp" android:topRightRadius="5dp"/> 
</shape>

0 意見: