summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-02-05 11:21:30 +0100
committerByteHamster <info@bytehamster.com>2020-02-05 11:21:30 +0100
commit29010b857e6360da6634107e9bb0f0906bd6ea6c (patch)
tree19af687afe1cc231b692f4f908911d744b68d9f4 /app/src/main/res/layout
parent8b6a53fb88a3bdc70e22f316dbeed7a71b868266 (diff)
downloadAntennaPod-29010b857e6360da6634107e9bb0f0906bd6ea6c.zip
Added circular action buttons
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/feeditemlist_item.xml2
-rw-r--r--app/src/main/res/layout/secondary_action.xml36
2 files changed, 25 insertions, 13 deletions
diff --git a/app/src/main/res/layout/feeditemlist_item.xml b/app/src/main/res/layout/feeditemlist_item.xml
index 09dbc8908..cd983ffca 100644
--- a/app/src/main/res/layout/feeditemlist_item.xml
+++ b/app/src/main/res/layout/feeditemlist_item.xml
@@ -190,8 +190,6 @@
</LinearLayout>
- <include layout="@layout/vertical_list_divider"/>
-
<include layout="@layout/secondary_action"/>
</LinearLayout>
diff --git a/app/src/main/res/layout/secondary_action.xml b/app/src/main/res/layout/secondary_action.xml
index 1f4d9e4e6..d083d5181 100644
--- a/app/src/main/res/layout/secondary_action.xml
+++ b/app/src/main/res/layout/secondary_action.xml
@@ -1,12 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
-<ImageButton xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/butSecondaryAction"
- android:layout_width="@dimen/listview_secondary_button_width"
- android:layout_height="match_parent"
- android:background="?attr/selectableItemBackground"
- android:clickable="false"
- android:focusable="false"
- android:focusableInTouchMode="false"
- tools:ignore="ContentDescription"
- tools:src="@sample/secondaryaction" />
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="48dp"
+ android:layout_height="match_parent"
+ android:layout_marginRight="16dp"
+ android:layout_marginEnd="16dp">
+
+ <ImageButton
+ android:id="@+id/butSecondaryAction"
+ android:layout_width="32dp"
+ android:layout_height="32dp"
+ android:clickable="false"
+ android:focusable="false"
+ android:layout_gravity="center"
+ android:focusableInTouchMode="false"
+ tools:ignore="ContentDescription"
+ android:background="?selectableItemBackgroundBorderless"
+ tools:src="@sample/secondaryaction"/>
+
+ <de.danoeh.antennapod.view.CircularProgressBar
+ android:id="@+id/secondaryActionProgress"
+ android:layout_width="40dp"
+ android:layout_gravity="center"
+ android:layout_height="40dp"/>
+</FrameLayout>