summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/v_custom_notification.xml
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2018-03-06 10:08:49 -0800
committercyberta <cyberta@riseup.net>2018-03-06 10:08:49 -0800
commita95567b4bbb2319636a79cc5e8d6a7921df9f4d1 (patch)
tree7d5c7c36b141aa98e909f6b99baed769de5cf923 /app/src/main/res/layout/v_custom_notification.xml
parentfda23fc8c5aa916bce4ce985fcdf0aa08b21f1e6 (diff)
parent54e95a61bc553d985f6c55823da20985b6103aa0 (diff)
Merge branch 'cleanup' into 'master'
cleanup - rename layout files See merge request leap/bitmask_android!64
Diffstat (limited to 'app/src/main/res/layout/v_custom_notification.xml')
-rw-r--r--app/src/main/res/layout/v_custom_notification.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/app/src/main/res/layout/v_custom_notification.xml b/app/src/main/res/layout/v_custom_notification.xml
new file mode 100644
index 00000000..e97fcbe2
--- /dev/null
+++ b/app/src/main/res/layout/v_custom_notification.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ style="@android:style/TextAppearance.StatusBar.EventContent"
+ >
+
+ <ImageView
+ android:id="@+id/image_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="20dp"
+ android:scaleType="center"
+ android:contentDescription="@string/app_name"
+ tools:src="@drawable/ic_stat_vpn"
+ tools:visibility="visible"
+ />
+
+
+ <LinearLayout
+ android:id="@+id/content_layout"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_alignParentBottom="false"
+ android:layout_toRightOf="@+id/image_icon"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textStyle="bold"
+ tools:text="Bitmask - Amsterdam"
+ />
+
+ <TextView
+ android:id="@+id/message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:maxLines="2"
+ android:ellipsize="end"
+ tools:text="Connecting to Provider... with a long message that doesn't fit into the two lines of the notification."
+ />
+ </LinearLayout>
+</RelativeLayout> \ No newline at end of file