fragment背景图

This commit is contained in:
renhaoting 2025-10-22 14:23:10 +08:00
parent 821f00386e
commit 817e7bf467
7 changed files with 10 additions and 17 deletions

View File

@ -4,15 +4,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@mipmap/bg_level_1_page"
android:orientation="vertical"> android:orientation="vertical">
<!--<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/topBg"
android:layout_width="match_parent"
android:layout_height="0dp"
android:src="@mipmap/icon_main_top_bg"
app:layout_constraintDimensionRatio="h,786:400"
app:layout_constraintTop_toTopOf="parent" />-->
<androidx.viewpager2.widget.ViewPager2 <androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager2" android:id="@+id/viewPager2"
@ -26,10 +20,8 @@
android:id="@+id/bottomLayout" android:id="@+id/bottomLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="74dp" android:layout_height="74dp"
app:backgroundColorToken="@string/color_surface_district_normal" android:background="@mipmap/bg_common_bottom_tab"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:topLeftRadiusToken="@string/radius_xxl"
app:topRightRadiusToken="@string/radius_xxl"
> >
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView

View File

@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/fragment_actor_bg" android:background="@mipmap/bg_level_1_page"
android:orientation="vertical"> android:orientation="vertical">
@ -39,8 +39,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_15" android:layout_marginStart="@dimen/dp_15"
android:background="@drawable/diamond_info_bg" android:background="@drawable/diamond_info_bg"
android:padding="@dimen/dp_6" android:paddingVertical="@dimen/dp_6"
android:paddingRight="@dimen/dp_12" android:paddingStart="@dimen/dp_6"
android:paddingEnd="@dimen/dp_12"
android:gravity="center_vertical" android:gravity="center_vertical"
app:drawableLeftCompat="@mipmap/diamond_3" app:drawableLeftCompat="@mipmap/diamond_3"
android:drawablePadding="@dimen/dp_6" android:drawablePadding="@dimen/dp_6"

View File

@ -66,7 +66,7 @@
android:gravity="center" android:gravity="center"
android:background="@mipmap/actor_item_from_small" android:background="@mipmap/actor_item_from_small"
android:text="@string/from" android:text="@string/from"
android:textSize="@dimen/sp_14" android:textSize="@dimen/sp_9"
/> />
<ImageView <ImageView
@ -92,7 +92,7 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="@dimen/dp_10" android:layout_marginTop="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10" android:layout_marginEnd="@dimen/dp_10"
> >
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -104,7 +104,7 @@
android:id="@+id/tv_score" android:id="@+id/tv_score"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_5" android:layout_marginStart="@dimen/dp_5"
android:gravity="center" android:gravity="center"
android:textSize="@dimen/sp_15" android:textSize="@dimen/sp_15"
android:textColor="@color/yellow" android:textColor="@color/yellow"
@ -118,7 +118,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginEnd="@dimen/dp_10"
android:layout_marginBottom="@dimen/dp_10" android:layout_marginBottom="@dimen/dp_10"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB