<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="80dp" android:layout_height="30dp" android:layout_gravity="center_vertical" android:background="#000" android:orientation="horizontal" android:padding="2dp"> <TextView android:id="@+id/tv_sub_view" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#fff" android:gravity="center" android:text="-" android:textColor="#000" /> <TextView android:id="@+id/tv_number_view" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginLeft="2dp" android:layout_marginRight="2dp" android:layout_weight="1" android:background="#fff" android:gravity="center" android:text="1" android:textColor="#000" /> <TextView android:id="@+id/tv_add_view" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#fff" android:gravity="center" android:text="+" android:textColor="#000" /> </LinearLayout>