2025-12-18 14:20:41 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@android:color/white">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
|
android:paddingTop="14dp"
|
|
|
|
|
android:paddingBottom="12dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/backButton"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:contentDescription="back"
|
|
|
|
|
android:src="@drawable/ic_arrow_back_24"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/titleText"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:text="我的挚友"
|
|
|
|
|
android:textColor="#111111"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/backButton"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/backButton"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/backButton" />
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/searchContainer"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:background="@drawable/bg_search"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/backButton">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/searchIcon"
|
|
|
|
|
android:layout_width="18dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
|
android:contentDescription="search"
|
|
|
|
|
android:src="@drawable/ic_search_24"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/searchEdit"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:hint="搜索挚友"
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#111111"
|
|
|
|
|
android:textColorHint="#999999"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/searchIcon"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/friendsRecyclerView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingTop="6dp"
|
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
|
|
2025-12-22 18:11:21 +08:00
|
|
|
<com.example.livestreaming.EmptyStateView
|
|
|
|
|
android:id="@+id/emptyStateView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
2025-12-18 14:20:41 +08:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|