今天做了登录界面,是的,2月29日刚过,感觉像突然多出来的一天,正好拿来浪
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#99CCFF" /> <corners android:topLeftRadius="20dp" android:topRightRadius="20dp" android:bottomRightRadius="20dp" android:bottomLeftRadius="20dp"/> <stroke android:width="1dp" android:color="#000000" /> </shape>
设置圆角矩形的border.xml放在drawable中,通过
android:background="@drawable/border"
使用
然后。。界面还是不太好看,算了不放出来了