【光环助手V5.4.0】骨架屏 UI 优化(1102补充)https://git.ghzs.com/pm/halo-app-issues/-/issues/1575#note_122935
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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>
|
||||
50
app/src/main/res/layout/item_skeleton_category_game.xml
Normal file
50
app/src/main/res/layout/item_skeleton_category_game.xml
Normal 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>
|
||||
Reference in New Issue
Block a user