From 1c10ba7925787d9f1708e43e7b3549c917546f1e Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 22 May 2021 16:49:51 -0400 Subject: [PATCH] Enforce same height for about links Discord is kind of scuffed because the icon isn't vertically centered properly. --- app/src/main/res/drawable/ic_discord_24dp.xml | 12 +++++------- app/src/main/res/layout/pref_about_links.xml | 10 +++++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/drawable/ic_discord_24dp.xml b/app/src/main/res/drawable/ic_discord_24dp.xml index 16bcbb9b9..2b1a1354d 100644 --- a/app/src/main/res/drawable/ic_discord_24dp.xml +++ b/app/src/main/res/drawable/ic_discord_24dp.xml @@ -1,11 +1,9 @@ - - - + android:viewportHeight="71"> + diff --git a/app/src/main/res/layout/pref_about_links.xml b/app/src/main/res/layout/pref_about_links.xml index a2ab4e822..696f0b895 100644 --- a/app/src/main/res/layout/pref_about_links.xml +++ b/app/src/main/res/layout/pref_about_links.xml @@ -10,7 +10,7 @@ android:id="@+id/btn_website" style="@style/Theme.Widget.Button.Action" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" android:ellipsize="end" android:maxLines="1" @@ -22,7 +22,7 @@ android:id="@+id/btn_discord" style="@style/Theme.Widget.Button.Action" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" android:ellipsize="end" android:maxLines="1" @@ -35,7 +35,7 @@ android:id="@+id/btn_twitter" style="@style/Theme.Widget.Button.Action" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" android:ellipsize="end" android:maxLines="1" @@ -48,7 +48,7 @@ android:id="@+id/btn_facebook" style="@style/Theme.Widget.Button.Action" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" android:ellipsize="end" android:maxLines="1" @@ -61,7 +61,7 @@ android:id="@+id/btn_github" style="@style/Theme.Widget.Button.Action" android:layout_width="0dp" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" android:ellipsize="end" android:maxLines="1"