Skip to content

Commit

Permalink
Improvement some layout ui things
Browse files Browse the repository at this point in the history
  • Loading branch information
WSTxda committed Sep 19, 2024
1 parent 7824f75 commit 261aa07
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:importantForAccessibility="no"
android:src="@android:drawable/sym_def_app_icon" />

<TextView
Expand Down Expand Up @@ -87,6 +88,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:divider="@null"
android:nestedScrollingEnabled="true"
tools:listitem="@android:layout/simple_list_item_2" />
</LinearLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginBottom="18dp"
android:importantForAccessibility="no"
android:scaleType="fitCenter"
android:src="@drawable/ic_cloud_messaging"
app:tint="?attr/colorControlNormal">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="17dp">
android:padding="18dp">

<TextView
android:id="@android:id/title"
Expand All @@ -25,8 +25,8 @@
android:layout_gravity="start"
android:ellipsize="marquee"
android:maxLines="2"
tools:text="Title preference"
android:textAppearance="?attr/textAppearanceTitleMedium" />
android:textAppearance="?attr/textAppearanceTitleMedium"
tools:text="Title preference" />

<TextView
android:id="@android:id/summary"
Expand All @@ -35,8 +35,8 @@
android:layout_gravity="start"
android:layout_marginTop="8dp"
android:maxLines="10"
tools:text="Summary preference"
android:textAppearance="?attr/textAppearanceBodyMedium"
android:textColor="?android:attr/textColorSecondary" />
android:textColor="?android:attr/textColorSecondary"
tools:text="Summary preference" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Derived from https://github.com/androidx/androidx/blob/8cb282cc/preference/preference/res/layout/preference_widget_switch_compat.xml -->
<com.google.android.material.materialswitch.MaterialSwitch xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/switchWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools">

Expand Down
2 changes: 2 additions & 0 deletions play-services-core/src/main/res/values-v27/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
<item name="android:windowLightStatusBar">true</item>
<item name="android:navigationBarColor">?android:colorBackground</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>

<style name="Theme.Base.Dark">
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">?android:colorBackground</item>
<item name="android:windowLightNavigationBar">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
</resources>

0 comments on commit 261aa07

Please sign in to comment.