summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/donation_reminder_dialog.xml
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-08-17 14:52:03 +0200
committercyBerta <cyberta@riseup.net>2018-08-17 14:52:03 +0200
commitea90432bc1e721ec2d53eb48048297fd82da943c (patch)
tree151239b4d70d0c949eee6f02de3b28a7c5f29a6a /app/src/main/res/layout/donation_reminder_dialog.xml
parent0616d90013cd3ecac6dc97d7f9aced381578fea1 (diff)
#8920 create round background image in donation dialog
Diffstat (limited to 'app/src/main/res/layout/donation_reminder_dialog.xml')
-rw-r--r--app/src/main/res/layout/donation_reminder_dialog.xml28
1 files changed, 22 insertions, 6 deletions
diff --git a/app/src/main/res/layout/donation_reminder_dialog.xml b/app/src/main/res/layout/donation_reminder_dialog.xml
index ce29eeb8..3241071f 100644
--- a/app/src/main/res/layout/donation_reminder_dialog.xml
+++ b/app/src/main/res/layout/donation_reminder_dialog.xml
@@ -2,6 +2,7 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:scrollbars="none">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
@@ -31,13 +32,28 @@
android:gravity="center"
android:text="@string/donate_message" />
- <ImageView
- android:id="@+id/ivImg"
+ <android.support.v7.widget.CardView
android:layout_width="120dp"
android:layout_height="120dp"
- android:layout_marginBottom="@dimen/add_button_margin"
- android:layout_marginTop="@dimen/add_button_margin"
- android:src="@drawable/donation_img" />
+ android:innerRadius="0dp"
+ android:shape="ring"
+ app:cardCornerRadius="60dp">
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/background_main"
+ >
+ <ImageView
+ android:id="@+id/ivImg"
+ android:layout_width="120dp"
+ android:layout_height="wrap_content"
+ android:scaleType="centerInside"
+ android:layout_marginBottom="@dimen/add_button_margin"
+ android:layout_marginTop="@dimen/add_button_margin"
+ android:src="@drawable/logo" />
+ </FrameLayout>
+ </android.support.v7.widget.CardView>
+
<Button
android:id="@+id/btnDonate"
@@ -45,7 +61,7 @@
android:layout_height="38dp"
android:layout_marginLeft="@dimen/add_button_margin"
android:layout_marginRight="@dimen/add_button_margin"
- android:layout_marginTop="@dimen/standard_margin"
+ android:layout_marginTop="@dimen/add_button_margin"
android:background="@drawable/cust_button_primary"
android:text="@string/donate_button_donate"
android:textColor="@color/white"