1
This commit is contained in:
488
app/src/main/res/layout/user_manage_layout.xml
Normal file
488
app/src/main/res/layout/user_manage_layout.xml
Normal file
@@ -0,0 +1,488 @@
|
||||
<?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="@android:color/white"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 标题栏:48dp,与商品入库保持一致 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:background="@android:color/white">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_back"
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/user_manage_back"
|
||||
android:focusable="true"
|
||||
android:src="@mipmap/icon_product_inbound_back" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="@string/user_manage_title"
|
||||
android:textColor="#222222"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 搜索区:48dp 圆角输入框 + 36dp 橙色搜索按钮 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:background="@android:color/white">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_search"
|
||||
style="@style/HomeText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="22dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:background="@drawable/user_search_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="@string/user_manage_search_hint"
|
||||
android:imeOptions="actionSearch"
|
||||
android:inputType="text"
|
||||
android:maxLines="1"
|
||||
android:paddingStart="14dp"
|
||||
android:paddingEnd="50dp"
|
||||
android:textColor="#222222"
|
||||
android:textColorHint="#999999"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_search"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="end|top"
|
||||
android:layout_marginTop="22dp"
|
||||
android:layout_marginEnd="32dp"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/user_manage_search"
|
||||
android:focusable="true"
|
||||
android:src="@mipmap/icon_user_search" />
|
||||
</FrameLayout>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#F5F5F5"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="24dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_user_total"
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="19dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="#222222"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<!-- 用户卡片 1 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/card_user_1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="107dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:background="@drawable/device_manage_card_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
app:cardBackgroundColor="#F5F5F5"
|
||||
app:cardCornerRadius="18dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:text="@string/user_sample_name"
|
||||
android:textColor="#222222"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_phone" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="77dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:text="@string/user_sample_phone_masked"
|
||||
android:textColor="#999999"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_gravity="end|top"
|
||||
android:layout_marginTop="21dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_arrow" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:background="#DDDDDD" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="13dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_location" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:text="@string/user_sample_location"
|
||||
android:textColor="#222222"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_clock" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/user_sample_time"
|
||||
android:textColor="#222222"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 用户卡片 2 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/card_user_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="107dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:background="@drawable/device_manage_card_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
app:cardBackgroundColor="#F5F5F5"
|
||||
app:cardCornerRadius="18dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:text="@string/user_sample_name"
|
||||
android:textColor="#222222"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_phone" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="77dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:text="@string/user_sample_phone_masked"
|
||||
android:textColor="#999999"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_gravity="end|top"
|
||||
android:layout_marginTop="21dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_arrow" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:background="#DDDDDD" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="13dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_location" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:text="@string/user_sample_location"
|
||||
android:textColor="#222222"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_clock" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/user_sample_time"
|
||||
android:textColor="#222222"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 用户卡片 3 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/card_user_3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="107dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:background="@drawable/device_manage_card_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
app:cardBackgroundColor="#F5F5F5"
|
||||
app:cardCornerRadius="18dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:text="@string/user_sample_name"
|
||||
android:textColor="#222222"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="60dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_phone" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="77dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:text="@string/user_sample_phone_masked"
|
||||
android:textColor="#999999"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_gravity="end|top"
|
||||
android:layout_marginTop="21dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_arrow" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:background="#DDDDDD" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginTop="13dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_location" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:text="@string/user_sample_location"
|
||||
android:textColor="#222222"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_user_clock" />
|
||||
|
||||
<TextView
|
||||
style="@style/HomeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/user_sample_time"
|
||||
android:textColor="#222222"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user