Files
yusheng-android/MainModule/src/main/res/layout/dialog_emotion_picker.xml
2025-11-07 09:22:39 +08:00

63 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_rounded_top_white">
<!-- TabLayout -->
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:layout_marginStart="@dimen/dp_16"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabIndicatorColor="@color/white"
app:tabSelectedTextColor="@color/white"
app:tabIndicatorHeight="2dp"
app:tabTextColor="#999999"
app:tabTextAppearance="@style/CustomTextAppearanceTab"
/>
<!-- 分割线 -->
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#2C2A38"
android:layout_marginStart="@dimen/dp_16"
android:layout_marginEnd="@dimen/dp_16"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tab_layout"/>
<!-- 表情列表 -->
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/swipe_refresh_layout"
android:layout_width="match_parent"
android:layout_height="300dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/divider"
android:paddingEnd="@dimen/dp_28"
android:paddingStart="@dimen/dp_28"
app:srlEnableLoadMore="false"
app:srlEnableRefresh="false"
>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_emotions"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never"/>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>