加减器的框

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

    <size
        android:width="40dp"
        android:height="20dp" />
    <stroke
        android:width="1dp"
        android:color="#999999" />

</shape>
布局里调用
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="1"
    android:gravity="center"
    android:background="@drawable/add_sub_shape"
    android:textSize="20sp"
    android:layout_alignParentRight="true"

猜你喜欢

转载自blog.csdn.net/qq_40983361/article/details/80922172