Skip to content

Commit

Permalink
layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
woheller69 committed Dec 1, 2023
1 parent c55193d commit f631a31
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/dialog_tabs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<com.google.android.material.textview.MaterialTextView
android:id="@+id/dialog_title"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_marginStart="20dp"
Expand Down
27 changes: 13 additions & 14 deletions app/src/main/res/layout/dialog_toggle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize">
android:layout_height="48dp">

<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_marginStart="20dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:text="@string/setting_label"
android:gravity="center_vertical"
android:textAppearance="?attr/textAppearanceBody1"
android:textStyle="bold" />
android:textAppearance="?attr/textAppearanceBody1" />

<ImageButton
android:id="@+id/ib_info"
Expand All @@ -49,7 +48,7 @@
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="24dp"
android:layout_marginEnd="20dp"
android:src="@drawable/icon_settings"
android:background="?attr/actionBarItemBackground" />

Expand Down Expand Up @@ -121,7 +120,7 @@
style="@style/Widget.MaterialComponents.Chip.Choice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="-8dp"
app:chipStartPadding="4dp"
app:chipEndPadding="4dp"
Expand Down Expand Up @@ -199,7 +198,7 @@
style="@style/Widget.MaterialComponents.Chip.Choice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="-8dp"
app:chipStartPadding="4dp"
app:chipEndPadding="4dp"
Expand All @@ -218,13 +217,13 @@

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="48dp"
android:layout_marginTop="4dp">

<ImageView
android:id="@+id/menu_zoom_in"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:layout_marginEnd="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
Expand All @@ -246,7 +245,7 @@
android:layout_height="24dp"
android:layout_centerInParent="true"
android:layout_alignParentStart="true"
android:layout_marginStart="20dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:contentDescription="@null"
android:scaleType="fitCenter" />
Expand All @@ -256,7 +255,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeightSmall"
android:layout_marginStart="20dp">
android:layout_marginStart="16dp">

<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
Expand Down Expand Up @@ -319,7 +318,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-8dp"
android:layout_marginEnd="12dp"
android:layout_marginEnd="8dp"
app:chipIcon="@drawable/icon_java"
app:chipIconTint="@color/bg_chip_state_list"
app:chipIconEnabled="true"
Expand All @@ -334,7 +333,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeightSmall"
android:layout_marginStart="20dp"
android:layout_marginStart="16dp"
android:layout_marginBottom="8dp">

<com.google.android.material.textview.MaterialTextView
Expand Down Expand Up @@ -413,7 +412,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-8dp"
android:layout_marginEnd="12dp"
android:layout_marginEnd="8dp"
app:chipIcon="@drawable/icon_java"
app:chipIconTint="@color/bg_chip_state_list"
app:chipIconEnabled="true"
Expand Down

0 comments on commit f631a31

Please sign in to comment.