|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="match_parent" |
| 6 | + android:background="?android:attr/windowBackground" |
| 7 | + android:orientation="vertical"> |
| 8 | + |
| 9 | + <com.google.android.material.appbar.AppBarLayout |
| 10 | + android:layout_width="match_parent" |
| 11 | + android:layout_height="wrap_content" |
| 12 | + android:background="@android:color/transparent" |
| 13 | + app:elevation="4dp"> |
| 14 | + |
| 15 | + <com.google.android.material.appbar.MaterialToolbar |
| 16 | + android:id="@+id/toolbar" |
| 17 | + android:layout_width="match_parent" |
| 18 | + android:layout_height="?attr/actionBarSize" |
| 19 | + android:background="@drawable/toolbar_background" |
| 20 | + app:navigationIcon="@drawable/abc_ic_ab_back_material" |
| 21 | + app:navigationIconTint="@color/text_on_gradient" |
| 22 | + app:title="@string/whatsapp_crash_report" |
| 23 | + app:titleTextColor="@color/text_on_gradient" /> |
| 24 | + |
| 25 | + </com.google.android.material.appbar.AppBarLayout> |
| 26 | + |
| 27 | + <ScrollView |
| 28 | + android:layout_width="match_parent" |
| 29 | + android:layout_height="0dp" |
| 30 | + android:layout_weight="1" |
| 31 | + android:fillViewport="true"> |
| 32 | + |
| 33 | + <LinearLayout |
| 34 | + android:layout_width="match_parent" |
| 35 | + android:layout_height="wrap_content" |
| 36 | + android:orientation="vertical" |
| 37 | + android:padding="@dimen/spacing_medium"> |
| 38 | + |
| 39 | + <com.google.android.material.card.MaterialCardView |
| 40 | + style="@style/CardInfoStyle" |
| 41 | + android:layout_width="match_parent" |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:layout_marginBottom="@dimen/spacing_medium" |
| 44 | + app:cardBackgroundColor="@color/surface_container"> |
| 45 | + |
| 46 | + <LinearLayout |
| 47 | + android:layout_width="match_parent" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:orientation="vertical" |
| 50 | + android:padding="@dimen/spacing_medium"> |
| 51 | + |
| 52 | + <com.google.android.material.textview.MaterialTextView |
| 53 | + android:layout_width="match_parent" |
| 54 | + android:layout_height="wrap_content" |
| 55 | + android:text="@string/crash_info" |
| 56 | + android:textColor="@color/text_primary" |
| 57 | + android:textSize="18sp" |
| 58 | + android:textStyle="bold" /> |
| 59 | + |
| 60 | + <com.google.android.material.textview.MaterialTextView |
| 61 | + android:id="@+id/tvCrashInfo" |
| 62 | + android:layout_width="match_parent" |
| 63 | + android:layout_height="wrap_content" |
| 64 | + android:layout_marginTop="@dimen/spacing_small" |
| 65 | + android:lineSpacingExtra="3dp" |
| 66 | + android:textColor="@color/text_secondary" |
| 67 | + android:textIsSelectable="true" |
| 68 | + android:textSize="14sp" /> |
| 69 | + |
| 70 | + </LinearLayout> |
| 71 | + |
| 72 | + </com.google.android.material.card.MaterialCardView> |
| 73 | + |
| 74 | + <com.google.android.material.card.MaterialCardView |
| 75 | + style="@style/CardInfoStyle" |
| 76 | + android:layout_width="match_parent" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + app:cardBackgroundColor="@color/surface_container_high"> |
| 79 | + |
| 80 | + <LinearLayout |
| 81 | + android:layout_width="match_parent" |
| 82 | + android:layout_height="wrap_content" |
| 83 | + android:orientation="vertical"> |
| 84 | + |
| 85 | + <com.google.android.material.textview.MaterialTextView |
| 86 | + android:layout_width="match_parent" |
| 87 | + android:layout_height="wrap_content" |
| 88 | + android:paddingStart="@dimen/spacing_medium" |
| 89 | + android:paddingTop="@dimen/spacing_medium" |
| 90 | + android:paddingEnd="@dimen/spacing_medium" |
| 91 | + android:text="@string/crash_trace" |
| 92 | + android:textColor="@color/text_primary" |
| 93 | + android:textSize="18sp" |
| 94 | + android:textStyle="bold" /> |
| 95 | + |
| 96 | + <com.google.android.material.textview.MaterialTextView |
| 97 | + android:id="@+id/tvCrashTrace" |
| 98 | + android:layout_width="match_parent" |
| 99 | + android:layout_height="wrap_content" |
| 100 | + android:fontFamily="monospace" |
| 101 | + android:lineSpacingExtra="2dp" |
| 102 | + android:padding="@dimen/spacing_medium" |
| 103 | + android:scrollHorizontally="false" |
| 104 | + android:singleLine="false" |
| 105 | + android:textColor="@color/text_primary" |
| 106 | + android:textIsSelectable="true" |
| 107 | + android:textSize="12sp" /> |
| 108 | + |
| 109 | + </LinearLayout> |
| 110 | + |
| 111 | + </com.google.android.material.card.MaterialCardView> |
| 112 | + |
| 113 | + </LinearLayout> |
| 114 | + |
| 115 | + </ScrollView> |
| 116 | + |
| 117 | + <LinearLayout |
| 118 | + android:layout_width="match_parent" |
| 119 | + android:layout_height="wrap_content" |
| 120 | + android:orientation="horizontal" |
| 121 | + android:padding="@dimen/spacing_medium"> |
| 122 | + |
| 123 | + <com.google.android.material.button.MaterialButton |
| 124 | + android:id="@+id/btnCopy" |
| 125 | + style="@style/ModernButton.Outlined" |
| 126 | + android:layout_width="0dp" |
| 127 | + android:layout_height="wrap_content" |
| 128 | + android:layout_marginEnd="@dimen/spacing_small" |
| 129 | + android:layout_weight="1" |
| 130 | + android:text="@string/copy_to_clipboard" /> |
| 131 | + |
| 132 | + <com.google.android.material.button.MaterialButton |
| 133 | + android:id="@+id/btnShare" |
| 134 | + style="@style/ModernButton" |
| 135 | + android:layout_width="0dp" |
| 136 | + android:layout_height="wrap_content" |
| 137 | + android:layout_marginStart="@dimen/spacing_small" |
| 138 | + android:layout_weight="1" |
| 139 | + android:text="@string/share" /> |
| 140 | + |
| 141 | + </LinearLayout> |
| 142 | + |
| 143 | +</LinearLayout> |
0 commit comments