【光环助手V5.4.0】骨架屏 UI 优化(1102补充)https://git.ghzs.com/pm/halo-app-issues/-/issues/1575#note_122935

This commit is contained in:
lyr
2021-11-02 16:22:33 +08:00
parent 3f3b19f2cf
commit 5ecb3d5378
3 changed files with 88 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class CategoryV2ListFragment : ListFragment<GameEntity, CategoryV2ListViewModel>
.duration(Constants.SHIMMER_DURATION)
.maskWidth(Constants.MASK_WIDTH)
.gradientCenterColorWidth(Constants.GRADIENT_CENTER_COLOR_WIDTH)
.load(R.layout.fragment_tags_skeleton)
.load(R.layout.fragment_category_game_list_skeleton)
.show()
mBinding?.resetTv?.setOnClickListener {

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<com.gh.common.view.FixedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="8dp"
android:orientation="vertical">
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
<include layout="@layout/item_skeleton_category_game" />
</LinearLayout>
</com.gh.common.view.FixedScrollView>

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingTop="8dp"
android:paddingRight="16dp"
android:paddingBottom="8dp">
<View
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@drawable/bg_skeleton_radius_14" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="64dp"
android:layout_marginLeft="12dp"
android:layout_weight="1">
<View
android:layout_width="72dp"
android:layout_height="16dp"
android:layout_marginTop="4dp"
android:background="@drawable/bg_skeleton_radius_4" />
<View
android:layout_width="match_parent"
android:layout_height="12dp"
android:layout_marginRight="16dp"
android:layout_centerVertical="true"
android:background="@drawable/bg_skeleton_radius_4" />
<View
android:layout_width="32dp"
android:layout_height="12dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="4dp"
android:background="@drawable/bg_skeleton_radius_4" />
</RelativeLayout>
<View
android:layout_width="56dp"
android:layout_height="28dp"
android:layout_gravity="center_vertical"
android:background="@drawable/bg_skeleton_radius_999" />
</LinearLayout>