Files
July/app/src/main/res/layout/fragment_kehu.xml
2020-08-17 17:56:42 +08:00

133 lines
5.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
android:orientation="vertical">
<androidx.drawerlayout.widget.DrawerLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/titlebar"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/colorWhite">
<Button
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_centerInParent="true"
android:layout_marginLeft="20dp"
android:background="@mipmap/icon_back"
android:textColor="#000000"
android:visibility="invisible" />
<TextView
android:id="@+id/enter_shop_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="客户"
android:textColor="@color/black"
android:textSize="18sp" />
<RelativeLayout
android:id="@+id/enter_shop_shai"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"
android:gravity="center">
<TextView
android:id="@+id/enter_shop_shaixuan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="全部客户"
android:textColor="@color/colorWhite"
android:textSize="18sp" />
<ImageView
android:layout_width="8dp"
android:layout_height="6dp"
android:layout_centerVertical="true"
android:layout_marginLeft="6dp"
android:layout_toRightOf="@+id/enter_shop_shaixuan"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/bt_sousuo_ditu"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="48dp"
android:gravity="center">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@mipmap/marking_sousuo"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/bt_fenpei"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="8dp"
android:gravity="center">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@mipmap/icon_fenpei"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.tabs.TabLayout
android:id="@+id/main_tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorWhite"
app:tabGravity="fill"
app:tabIndicatorFullWidth="false"
app:tabIndicatorHeight="4dp"
app:tabIndicatorColor="@color/colortheme"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/black"
app:tabTextColor="@color/black" />
</RelativeLayout>
<androidx.viewpager.widget.ViewPager
android:id="@+id/main_vp"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</androidx.drawerlayout.widget.DrawerLayout>
</LinearLayout>