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

activity_exception.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f275a7038e3ac08858fa43ff4c7f93f9f6b37fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?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:background="?attr/colorPrimary"
    android:orientation="vertical">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:layout_marginStart="@dimen/spacer_activity_sides"
        android:layout_marginEnd="@dimen/spacer_activity_sides"
        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/spacer_2x"
        android:hint="An error appeared."
        tools:ignore="HardcodedText" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/tips"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="@dimen/spacer_2x"
                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:padding="@dimen/spacer_2x"
                android:text="@string/error_dialog_we_need_info"
                android:textAppearance="?attr/textAppearanceBody2" />

            <HorizontalScrollView
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_marginStart="@dimen/spacer_2x"
                android:layout_marginEnd="@dimen/spacer_2x"
                android:layout_weight="1">

                <TextView
                    android:id="@+id/stacktrace"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@color/bg_highlighted"
                    android:padding="@dimen/spacer_1x"
                    android:textIsSelectable="true"
                    android:typeface="monospace"
                    tools:text="@string/android_get_accounts_permission_not_granted_exception_message" />
            </HorizontalScrollView>
        </LinearLayout>
    </ScrollView>

    <LinearLayout
        style="?android:buttonBarStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/spacer_2x"
        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"
            android:textColor="@color/defaultBrand" />

        <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/defaultBrand"
            android:foreground="?attr/selectableItemBackground"
            android:text="@string/simple_copy"
            android:textColor="@color/fg_contrast"
            tools:ignore="UnusedAttribute" />

    </LinearLayout>
</LinearLayout>