Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-05-04 11:27:33 +0300
committerStefan Niedermann <info@niedermann.it>2020-05-04 11:27:33 +0300
commit8edeb313ce3354eb314aa1db526ca537a9d6c5c1 (patch)
tree3c90b5a114d772ef6d6cdbe5b34a07c43d5fc2b5 /app/src/main/res/layout
parent2771420512a3788ef81ac61ceeb2e11aacc474d1 (diff)
Use new ExceptionDialogFragment with tips
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/dialog_exception.xml56
-rw-r--r--app/src/main/res/layout/item_tip.xml15
2 files changed, 71 insertions, 0 deletions
diff --git a/app/src/main/res/layout/dialog_exception.xml b/app/src/main/res/layout/dialog_exception.xml
new file mode 100644
index 000000000..c53274642
--- /dev/null
+++ b/app/src/main/res/layout/dialog_exception.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="@dimen/spacer_2x">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/statusMessage"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ tools:maxLength="50"
+ tools:text="@tools:sample/lorem/random" />
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/tips"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
+ tools:itemCount="2"
+ tools:listitem="@layout/item_tip" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/error_dialog_contact_us" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/spacer_2x"
+ android:text="@string/error_dialog_we_need_info" />
+
+ <TextView
+ android:id="@+id/stacktrace"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_marginTop="@dimen/spacer_2x"
+ android:layout_marginBottom="@dimen/spacer_2x"
+ android:layout_weight="1"
+ android:background="@color/bg_highlighted"
+ android:padding="8dp"
+ android:scrollbars="horizontal|vertical"
+ android:textIsSelectable="true"
+ android:typeface="monospace"
+ tools:text="@tools:sample/lorem/random" />
+ </LinearLayout>
+</ScrollView> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_tip.xml b/app/src/main/res/layout/item_tip.xml
new file mode 100644
index 000000000..4698e8c3e
--- /dev/null
+++ b/app/src/main/res/layout/item_tip.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.appcompat.widget.AppCompatTextView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/tip"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:drawablePadding="@dimen/spacer_2x"
+ android:gravity="start|center"
+ android:padding="@dimen/spacer_2x"
+ android:textColor="?android:textColorPrimary"
+ app:drawableLeftCompat="@drawable/ic_lightbulb_outline_grey600_24dp"
+ app:drawableStartCompat="@drawable/ic_lightbulb_outline_grey600_24dp"
+ tools:maxLength="200"
+ tools:text="@tools:sample/lorem/random" /> \ No newline at end of file