165 lines
5.8 KiB
XML
165 lines
5.8 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/bg_gray"
|
|
tools:context=".liveVideo.LinkedUserActivity">
|
|
|
|
<!-- 标题栏 -->
|
|
<LinearLayout
|
|
android:id="@+id/topBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:gravity="center_vertical"
|
|
android:paddingHorizontal="16dp"
|
|
android:background="@color/white">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivBack"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@mipmap/back" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/linked_user"
|
|
android:textColor="@color/black"
|
|
android:textSize="16dp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 搜索区域 -->
|
|
<LinearLayout
|
|
android:id="@+id/searchLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/white"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="12dp"
|
|
android:layout_marginTop="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:background="@drawable/bg_user_manage"
|
|
android:gravity="center_vertical"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:src="@mipmap/search"
|
|
android:layout_marginRight="8dp"/>
|
|
|
|
<EditText
|
|
android:id="@+id/etSearch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:background="@null"
|
|
android:hint="@string/search_preset_text"
|
|
android:textColorHint="@color/gray"
|
|
android:textColor="@color/black"
|
|
android:textSize="14sp"
|
|
android:inputType="text"
|
|
android:imeOptions="actionSearch"
|
|
android:singleLine="true"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!-- 内容区域 -->
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<!-- 列表 -->
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/swipeRefresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.yanzhenjie.recyclerview.SwipeRecyclerView
|
|
android:id="@+id/rvLinkedUser"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
<!-- 空页面 -->
|
|
<LinearLayout
|
|
android:id="@+id/layoutNoPermission"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:layout_width="244dp"
|
|
android:layout_height="131dp"
|
|
android:src="@mipmap/default_page"/>
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/layoutNoNetwork"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="32dp"
|
|
android:background="@color/white"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:layout_width="244dp"
|
|
android:layout_height="131dp"
|
|
android:src="@mipmap/no_network_img_name" />
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 底部按钮 -->
|
|
<LinearLayout
|
|
android:id="@+id/butting"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingBottom="60dp">
|
|
|
|
<android.widget.Button
|
|
android:id="@+id/btnAddLinkedUser"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:text="@string/add_linked_user"
|
|
android:textColor="@color/white"
|
|
android:textSize="14dp"
|
|
android:background="@drawable/rounded_blue_bg" />
|
|
<!-- 悬浮加号按钮 -->
|
|
<ImageView
|
|
android:visibility="gone"
|
|
android:layout_gravity="end"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/add_img"
|
|
android:id="@+id/fabAdd"/>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout> |