效果图:
xml布局:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="45dp"
android:orientation="horizontal"
android:id="@+id/btm"
android:background="@color/white"
android:gravity="center_vertical"
android:layout_weight="