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>2021-05-19 10:09:33 +0300
committerStefan Niedermann <info@niedermann.it>2021-05-19 10:09:33 +0300
commit3a2516d53cb17bcfc176087e9c6c92a7cda351d3 (patch)
tree8c5b01ad03b110d9e09006e13fb4899f4c824b7d
parent0589fd5cdf1b3c4937229ff47bfd8eaaaae7b586 (diff)
Fix a few a11y issues
Signed-off-by: Stefan Niedermann <info@niedermann.it>
-rw-r--r--app/src/main/res/layout/empty_content_view.xml3
-rw-r--r--app/src/main/res/layout/fragment_note_edit.xml2
-rw-r--r--app/src/main/res/layout/fragment_note_preview.xml2
-rw-r--r--app/src/main/res/values/strings.xml2
4 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/res/layout/empty_content_view.xml b/app/src/main/res/layout/empty_content_view.xml
index 2e73cfb9..654b38b7 100644
--- a/app/src/main/res/layout/empty_content_view.xml
+++ b/app/src/main/res/layout/empty_content_view.xml
@@ -1,4 +1,5 @@
<RelativeLayout 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/empty_content_view"
android:layout_width="match_parent"
@@ -16,7 +17,7 @@
android:scaleX="1.5"
android:scaleY="1.5"
android:src="@drawable/ic_launcher_foreground"
- android:tint="@color/fg_default_high" />
+ app:tint="@color/fg_default_high" />
<TextView
android:id="@+id/empty_content_view_title"
diff --git a/app/src/main/res/layout/fragment_note_edit.xml b/app/src/main/res/layout/fragment_note_edit.xml
index 1e84909f..c377998c 100644
--- a/app/src/main/res/layout/fragment_note_edit.xml
+++ b/app/src/main/res/layout/fragment_note_edit.xml
@@ -46,6 +46,7 @@
android:id="@+id/searchPrev"
style="@style/fab"
android:layout_gravity="bottom|end"
+ android:contentDescription="@string/simple_prev"
android:translationY="-56dp"
android:visibility="gone"
app:backgroundTint="@color/defaultBrand"
@@ -57,6 +58,7 @@
android:id="@+id/searchNext"
style="@style/fab"
android:layout_gravity="bottom|end"
+ android:contentDescription="@string/simple_next"
android:visibility="gone"
app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
diff --git a/app/src/main/res/layout/fragment_note_preview.xml b/app/src/main/res/layout/fragment_note_preview.xml
index be1a9f62..0b660f8d 100644
--- a/app/src/main/res/layout/fragment_note_preview.xml
+++ b/app/src/main/res/layout/fragment_note_preview.xml
@@ -42,6 +42,7 @@
android:id="@+id/searchPrev"
style="@style/fab"
android:layout_gravity="bottom|end"
+ android:contentDescription="@string/simple_prev"
android:translationY="-56dp"
android:visibility="gone"
app:backgroundTint="@color/defaultBrand"
@@ -53,6 +54,7 @@
android:id="@+id/searchNext"
style="@style/fab"
android:layout_gravity="bottom|end"
+ android:contentDescription="@string/simple_next"
android:visibility="gone"
app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 8a404469..d48d5d5e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -303,4 +303,6 @@
<string name="remove_account">Remove %1$s</string>
<string name="you_have_to_be_connected_to_the_internet_in_order_to_add_an_account">You have to be connected to the internet in order to add an account.</string>
+ <string name="simple_next">next</string>
+ <string name="simple_prev">Previous</string>
</resources>