summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-01-28 14:45:18 +0100
committerByteHamster <info@bytehamster.com>2020-01-28 14:45:18 +0100
commitcb9c999d437cc1d2170e47e891a319ab6f8e4ffd (patch)
treee1742e4dc9580fed71b97f0cc16059d654a2857f /app/src/main/res/layout
parent3bbe6d55f74a542b8687fc7b5f24969f33c850e1 (diff)
downloadAntennaPod-cb9c999d437cc1d2170e47e891a319ab6f8e4ffd.zip
Fixed multi-line buttons
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/feeditem_fragment.xml87
1 files changed, 46 insertions, 41 deletions
diff --git a/app/src/main/res/layout/feeditem_fragment.xml b/app/src/main/res/layout/feeditem_fragment.xml
index 3352fdf19..a1aa299c8 100644
--- a/app/src/main/res/layout/feeditem_fragment.xml
+++ b/app/src/main/res/layout/feeditem_fragment.xml
@@ -105,50 +105,55 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginStart="16dp"
- android:layout_marginRight="16dp"
- android:layout_marginEnd="16dp"
android:orientation="horizontal"
+ android:gravity="center_vertical"
tools:background="@android:color/holo_blue_bright">
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_weight="1" />
-
- <Button
- android:id="@+id/butAction1"
- style="?attr/buttonBarButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="48dp"
- android:ellipsize="end"
- android:drawablePadding="8dp"
- android:textColor="?android:attr/textColorPrimary"
- tools:text="Button 1"
- tools:background="@android:color/holo_red_light" />
-
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_weight="1" />
-
- <Button
- android:id="@+id/butAction2"
- style="?attr/buttonBarButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="48dp"
- android:drawablePadding="8dp"
- android:ellipsize="end"
- android:textColor="?android:attr/textColorPrimary"
- tools:text="Button 2"
- tools:background="@android:color/holo_orange_dark" />
-
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_weight="1" />
-
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:id="@+id/butAction1"
+ android:orientation="horizontal"
+ android:background="?android:attr/selectableItemBackground"
+ android:gravity="center">
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:id="@+id/butAction1Icon"
+ android:layout_margin="12dp"
+ tools:src="@drawable/ic_settings_grey600_24dp"/>
+ <TextView
+ android:textAppearance="@style/TextAppearance.AppCompat.Button"
+ android:id="@+id/butAction1Text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="?android:attr/textColorPrimary"
+ tools:text="Button 1"/>
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:id="@+id/butAction2"
+ android:orientation="horizontal"
+ android:background="?android:attr/selectableItemBackground"
+ android:gravity="center">
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:id="@+id/butAction2Icon"
+ android:layout_margin="12dp"
+ tools:src="@drawable/ic_settings_grey600_24dp"/>
+ <TextView
+ android:textAppearance="@style/TextAppearance.AppCompat.Button"
+ android:id="@+id/butAction2Text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="?android:attr/textColorPrimary"
+ tools:text="Button 2"/>
+ </LinearLayout>
</LinearLayout>
<View