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-07-02 09:46:36 +0300
committerStefan Niedermann <info@niedermann.it>2020-07-02 09:46:36 +0300
commit32bcd2616d9b81cc96b31e58b4af31c72748671f (patch)
treede4a5f61b029980828fe621fbb73229f236e5eda /app/src/main/res
parent0acc5373a460101b06f30816d44fca8f6b79c4e8 (diff)
Introduce quick actions for exception tips
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_tip.xml38
-rw-r--r--app/src/main/res/values/strings.xml3
2 files changed, 32 insertions, 9 deletions
diff --git a/app/src/main/res/layout/item_tip.xml b/app/src/main/res/layout/item_tip.xml
index fc49ed05..5c9406b2 100644
--- a/app/src/main/res/layout/item_tip.xml
+++ b/app/src/main/res/layout/item_tip.xml
@@ -1,14 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.appcompat.widget.AppCompatTextView 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: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:drawableStartCompat="@drawable/ic_lightbulb_outline_grey600_24dp"
- tools:maxLength="200"
- tools:text="@tools:sample/lorem/random" /> \ No newline at end of file
+ android:orientation="vertical"
+ android:paddingTop="@dimen/spacer_1x"
+ android:paddingBottom="@dimen/spacer_1x">
+
+ <TextView
+ android:id="@+id/tip"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:drawablePadding="@dimen/spacer_2x"
+ android:gravity="start|center"
+ android:textAppearance="?attr/textAppearanceListItem"
+ 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" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/action_button"
+ style="@style/Widget.MaterialComponents.Button.OutlinedButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="40dp"
+ android:layout_marginEnd="@dimen/spacer_1x"
+ android:textColor="@color/defaultBrand"
+ android:visibility="visible"
+ tools:text="@string/error_files_app"
+ tools:visibility="visible" />
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a4c8ae34..1c38315d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -301,4 +301,7 @@
<string name="simple_other">Other</string>
<string name="sort_last_modified">Sort by modified date</string>
<string name="sort_alphabetically">Sort by alphabet</string>
+ <string name="error_action_open_battery_settings">Battery settings</string>
+ <string name="error_action_open_deck_info">Open App info</string>
+ <string name="error_action_open_network">Network settings</string>
</resources>