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

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefan-niedermann <info@niedermann.it>2020-03-14 01:04:38 +0300
committerstefan-niedermann <info@niedermann.it>2020-03-14 01:04:38 +0300
commite97eaa95c5484cf88cd91d71f71c614de9415d73 (patch)
treec2ba6791f43189b9eda50cc3212ddad5313c846f /app/src/main/res/layout/activity_exception.xml
parent87a9dbf3be27564555703a1bd29a19ab3ccf124e (diff)
Move contents of nextcloud-commons-lib back to project
Signed-off-by: stefan-niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/res/layout/activity_exception.xml')
-rw-r--r--app/src/main/res/layout/activity_exception.xml76
1 files changed, 76 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_exception.xml b/app/src/main/res/layout/activity_exception.xml
new file mode 100644
index 00000000..cbee5779
--- /dev/null
+++ b/app/src/main/res/layout/activity_exception.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout 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">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ android:background="?attr/colorPrimary"
+ android:theme="@style/toolbarStyle"
+ app:contentInsetStartWithNavigation="0dp"
+ app:elevation="4dp"
+ app:titleMarginStart="0dp"
+ tools:title="@string/simple_exception" />
+
+ <TextView
+ android:id="@+id/message"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="@dimen/activity_margin"
+ android:hint="An error appeared."
+ tools:ignore="HardcodedText" />
+
+ <TextView
+ android:id="@+id/stacktrace"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_marginStart="@dimen/activity_margin"
+ android:layout_marginLeft="16dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginRight="16dp"
+ android:layout_weight="1"
+ android:background="@color/bg_highlighted"
+ android:padding="8dp"
+ android:scrollbars="horizontal|vertical"
+ android:textIsSelectable="true"
+ android:typeface="monospace"
+ tools:text="@string/android_get_accounts_permission_not_granted_exception_message" />
+
+ <LinearLayout
+ style="?android:buttonBarStyle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:gravity="end"
+ android:orientation="horizontal"
+ android:weightSum="1.0">
+
+ <Button
+ android:id="@+id/close"
+ style="?android:buttonBarButtonStyle"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_weight=".5"
+ android:text="@string/simple_close" />
+
+ <Button
+ android:id="@+id/copy"
+ style="?android:buttonBarButtonStyle"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_marginTop="6dp"
+ android:layout_marginBottom="6dp"
+ android:layout_weight=".5"
+ android:background="@color/primary"
+ android:foreground="?attr/selectableItemBackground"
+ android:text="@string/simple_copy"
+ android:textColor="@color/fg_contrast"
+ tools:ignore="UnusedAttribute" />
+
+ </LinearLayout>
+</LinearLayout> \ No newline at end of file