textView属性

来源:互联网 发布:金税盘如何备份的数据 编辑:程序博客网 时间:2024/05/21 16:17

使用环境:

有时候不想使用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>
这样可以达到四个边是有弧度的。