diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-07 19:04:04 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-07 19:04:04 +0300 |
commit | 3029cd603cd7efa410a31bf7d3dede8ab70feba0 (patch) | |
tree | 39400d30f6b3d80475ebdb35373a5ef5e19b8c22 /app/src/main/res/layout | |
parent | 8eaccb9f131c523c6e4b594d19361912a41a61fb (diff) |
#456 Clear storage tip: show direct button to start app info page
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/dialog_exception.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/layout/item_tip.xml | 38 |
2 files changed, 20 insertions, 26 deletions
diff --git a/app/src/main/res/layout/dialog_exception.xml b/app/src/main/res/layout/dialog_exception.xml index 614542ff2..9a1a98255 100644 --- a/app/src/main/res/layout/dialog_exception.xml +++ b/app/src/main/res/layout/dialog_exception.xml @@ -5,8 +5,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:scrollbarStyle="insideInset" - android:padding="?attr/dialogPreferredPadding"> + android:padding="?attr/dialogPreferredPadding" + android:scrollbarStyle="insideInset"> <LinearLayout android:layout_width="match_parent" @@ -26,8 +26,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacer_2x" - android:textAppearance="?attr/textAppearanceBody2" - android:text="@string/error_dialog_we_need_info" /> + android:text="@string/error_dialog_we_need_info" + android:textAppearance="?attr/textAppearanceBody2" /> <TextView android:id="@+id/stacktrace" diff --git a/app/src/main/res/layout/item_tip.xml b/app/src/main/res/layout/item_tip.xml index 46d0642ee..d77589335 100644 --- a/app/src/main/res/layout/item_tip.xml +++ b/app/src/main/res/layout/item_tip.xml @@ -1,39 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<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="wrap_content" - android:paddingTop="@dimen/spacer_2x" - android:paddingBottom="@dimen/spacer_2x"> - - <ImageView - android:id="@+id/bulb" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:layout_marginEnd="@dimen/spacer_2x" - android:layout_marginRight="@dimen/spacer_2x" - android:contentDescription="@null" - app:srcCompat="@drawable/ic_lightbulb_outline_grey600_24dp" /> + android:orientation="vertical" + android:paddingTop="@dimen/spacer_1x" + android:paddingBottom="@dimen/spacer_1x"> <TextView android:id="@+id/tip" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_toEndOf="@id/bulb" - android:layout_toRightOf="@id/bulb" - android:textAppearance="?attr/textAppearanceBody1" + android:drawablePadding="@dimen/spacer_2x" + android:gravity="start|center" + 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" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_below="@id/tip" - android:layout_toEndOf="@id/bulb" - android:layout_toRightOf="@id/bulb" - android:orientation="horizontal"> + android:orientation="horizontal" + android:paddingStart="40dp" + android:paddingLeft="40dp" + android:paddingEnd="0dp" + android:paddingRight="0dp"> <com.google.android.material.button.MaterialButton android:id="@+id/action_primary" @@ -55,4 +49,4 @@ tools:text="@string/error_action_open_network" tools:visibility="visible" /> </LinearLayout> -</RelativeLayout>
\ No newline at end of file +</LinearLayout>
\ No newline at end of file |