Skip to content

Commit

Permalink
ui: 调整布局
Browse files Browse the repository at this point in the history
  • Loading branch information
GSWXXN committed Dec 5, 2024
1 parent 83eaad7 commit 7e9ae12
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.gswxxn.restoresplashscreen.ui

import android.content.Intent
import android.view.View
import androidx.core.view.WindowInsetsCompat
import com.gswxxn.restoresplashscreen.data.ConstValue
import com.gswxxn.restoresplashscreen.databinding.ActivitySubSettingsBinding
import com.gswxxn.restoresplashscreen.ui.`interface`.ISubSettings
Expand Down Expand Up @@ -51,6 +50,7 @@ class SubSettings : BaseActivity<ActivitySubSettingsBinding>() {
demoImageID?.let { binding.demoImage.setImageDrawable(getDrawable(it)) }
?: run {
binding.demoImageLayout.visibility = View.GONE
binding.mainStatus.background = null
}
binding.settingItems.addBlockMIUIView(this@SubSettings, itemData = create(this@SubSettings, binding))
}
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/layout/activity_about_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
android:layout_height="match_parent"
android:background="@color/colorThemeBackground"
android:orientation="vertical"
android:fitsSystemWindows="true"
tools:ignore="ContentDescription, UseCompoundDrawables, UseAppTint">

<LinearLayout
android:id="@+id/main_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="0dp"
android:fitsSystemWindows="true"
android:gravity="center|start"
android:paddingLeft="15dp"
android:paddingTop="13dp"
android:paddingRight="15dp"
android:paddingBottom="5dp"
android:orientation="horizontal">

<ImageView
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/layout/activity_color_select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center|start"
android:paddingLeft="15dp"
android:paddingTop="13dp"
android:paddingRight="15dp"
android:paddingBottom="5dp"
android:orientation="horizontal">

<ImageView
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/layout/activity_config_apps.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
android:layout_height="match_parent"
android:background="@color/colorThemeBackground"
android:orientation="vertical"
android:fitsSystemWindows="true"
tools:ignore="UseCompoundDrawables,ContentDescription, UseAppTint">

<LinearLayout
android:id="@+id/main_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="0dp"
android:fitsSystemWindows="true"
android:gravity="center|start"
android:paddingLeft="15dp"
android:paddingTop="13dp"
android:paddingRight="15dp"
android:paddingBottom="5dp"
android:orientation="horizontal">

<ImageView
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/layout/activity_main_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:gravity="center|start"
android:paddingLeft="15dp"
android:paddingTop="13dp"
android:paddingRight="15dp"
android:paddingBottom="5dp"
android:orientation="horizontal">

<TextView
Expand All @@ -38,7 +42,7 @@
style="?android:attr/selectableItemBackgroundBorderless"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginEnd="10dp"
android:layout_marginEnd="15dp"
android:alpha="0.85"
android:src="@drawable/ic_restart"
android:tint="@color/white" />
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/layout/activity_sub_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center|start"
android:paddingLeft="15dp"
android:paddingTop="20dp"
android:paddingRight="15dp"
android:paddingBottom="5dp"
android:orientation="horizontal">

<ImageView
Expand Down

0 comments on commit 7e9ae12

Please sign in to comment.