fix: 设置界面调整

This commit is contained in:
niushuai233 2022-10-27 16:41:45 +08:00
parent 180aee45c2
commit d74da75b35
2 changed files with 28 additions and 4 deletions

View File

@ -81,10 +81,15 @@
app:srcCompat="@drawable/ic_lock" />
<TextView
android:id="@+id/setup_log_switch"
android:id="@+id/setup_log_switch_tv"
style="@style/SetupText"
android:text="@string/setup_log_switch" />
<Switch
android:id="@+id/setup_log_switch_switch"
style="@style/SetupExt"
/>
</LinearLayout>
<!--总开关-->
@ -102,6 +107,10 @@
style="@style/SetupText"
android:text="@string/setup_log_level" />
<TextView
android:id="@+id/setup_log_level_display"
style="@style/SetupExt"
/>
</LinearLayout>
<!--总开关-->
@ -119,6 +128,10 @@
style="@style/SetupText"
android:text="@string/setup_log_keep_day" />
<TextView
android:id="@+id/setup_log_keep_day_display"
style="@style/SetupExt"
/>
</LinearLayout>
</RelativeLayout>

View File

@ -31,6 +31,13 @@
<item name="android:orientation">horizontal</item>
</style>
<!--icon-->
<style name="SetupIcon">
<item name="android:layout_width">32dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
</style>
<!--可点击的文本-->
<style name="SetupText">
<item name="android:layout_width">match_parent</item>
@ -38,11 +45,15 @@
<item name="android:textSize">16dp</item>.
<item name="android:gravity">center_vertical</item>
<item name="android:layout_marginLeft">5dp</item>
<item name="android:layout_weight">8</item>
</style>
<!--icon-->
<style name="SetupIcon">
<item name="android:layout_width">wrap_content</item>
<style name="SetupExt">
<item name="android:layout_width">64dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:textSize">12dp</item>
<item name="android:textColor">@color/gray</item>
<item name="android:gravity">center_vertical</item>
</style>
</resources>