summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2022-11-13 00:19:24 +0100
committercyberta <cyberta@riseup.net>2022-11-22 01:48:38 +0100
commitd38845aedd6e7df50b5ffbb0627107a4eced95bd (patch)
treeed1c627fb88ee51532b0c3e8f1cdf72e7d2418d1 /app/src/main/res
parent1a9004432b1733ae30f9cc8ebb85a70af8d93d34 (diff)
allow set motd image in custom branded versions
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable/motd_img.xml18
-rw-r--r--app/src/main/res/layout/f_motd.xml14
2 files changed, 19 insertions, 13 deletions
diff --git a/app/src/main/res/drawable/motd_img.xml b/app/src/main/res/drawable/motd_img.xml
new file mode 100644
index 00000000..4a330b8f
--- /dev/null
+++ b/app/src/main/res/drawable/motd_img.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/background_main"
+ android:gravity="fill_horizontal|fill_vertical"/>
+
+ <item
+ android:top="50dp"
+ android:bottom="50dp"
+ android:left="50dp"
+ android:right="50dp"
+ >
+ <bitmap
+ android:src="@drawable/logo"
+ android:gravity="center" />
+ </item>
+
+</layer-list> \ No newline at end of file
diff --git a/app/src/main/res/layout/f_motd.xml b/app/src/main/res/layout/f_motd.xml
index 3202e95b..6e763c75 100644
--- a/app/src/main/res/layout/f_motd.xml
+++ b/app/src/main/res/layout/f_motd.xml
@@ -66,18 +66,6 @@
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.4" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/motd_icon"
- android:layout_width="120dp"
- android:layout_height="120dp"
- app:layout_constraintTop_toTopOf="@id/guideline_sv_top"
- app:layout_constraintBottom_toTopOf="@+id/guideline_sv_center"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- android:src="@drawable/donation_img"
- android:scaleType="fitXY"
- android:visibility="gone" />
-
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/motd_icon_circle"
android:layout_width="120dp"
@@ -86,7 +74,7 @@
app:layout_constraintBottom_toTopOf="@+id/guideline_sv_center"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
- android:src="@drawable/donation_img"
+ android:src="@drawable/motd_img"
android:visibility="visible"
/>
<androidx.appcompat.widget.AppCompatTextView