- 修复按钮点击效果过于明显的问题 - 统一使用自定义背景替代系统selectableItemBackgroundBorderless - 移除Control.Action样式中的文字阴影效果 - 优化直播页面选择按钮颜色为主题黄色 - 调整许可协议页面按钮区域上间距为8dp - 修复跨类和换源按钮的文字重叠问题 - 提升整体UI视觉一致性和用户体验
79 lines
2.7 KiB
XML
79 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/back"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:background="@drawable/shape_action_background"
|
|
android:src="@drawable/ic_back" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/app_history"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/sync"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@drawable/shape_action_background"
|
|
android:src="@drawable/ic_action_sync" />
|
|
|
|
<ImageView
|
|
android:id="@+id/delete"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="16dp"
|
|
android:background="@drawable/shape_action_background"
|
|
android:src="@drawable/ic_action_delete"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="-8dp"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingBottom="8dp" />
|
|
|
|
<!-- 空状态Lottie动画 -->
|
|
<include
|
|
android:id="@+id/emptyLayout"
|
|
layout="@layout/view_empty_lottie"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="-40dp"
|
|
android:visibility="gone" />
|
|
|
|
</FrameLayout>
|
|
</LinearLayout> |