使用环境:
有时候不想使用button这种控件,但是又需要它的效果。
使用方法:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="@dimen/two" android:color="@color/bebebe"/>这样可以达到四个边是有弧度的。<!-- textview最外边的那个边的宽度, 颜色--><corners android:radius="@dimen/fifteen"/><!-- textView的四个角弧度--><solid android:color="@color/bebebe"/><!-- textView的background颜色--></shape>
462

被折叠的 条评论
为什么被折叠?



