summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorNorbel Ambanumben <nambanumben@riseup.net>2024-10-07 21:31:33 +0000
committercyberta <cyberta@riseup.net>2024-10-07 21:31:33 +0000
commit61106968cbdf96a4fa578d16aff03865b985e547 (patch)
tree8ff5d3ea1f2b562e885f4c7e3297ec3bda804fd3 /app/src/main/res/layout
parente15787e844ffe1c74b0ba783a9e37c7daa72b72a (diff)
feat: add language selection
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/f_drawer_main.xml8
-rw-r--r--app/src/main/res/layout/f_language_selection.xml17
-rw-r--r--app/src/main/res/layout/v_select_text_list_item.xml3
3 files changed, 26 insertions, 2 deletions
diff --git a/app/src/main/res/layout/f_drawer_main.xml b/app/src/main/res/layout/f_drawer_main.xml
index a948d9ce..ca0406ad 100644
--- a/app/src/main/res/layout/f_drawer_main.xml
+++ b/app/src/main/res/layout/f_drawer_main.xml
@@ -80,6 +80,14 @@
/>
<se.leap.bitmaskclient.base.views.IconTextEntry
+ android:id="@+id/language_switcher"
+ app:text="@string/select_language"
+ app:icon="@drawable/translate"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:visibility="visible"/>
+
+ <se.leap.bitmaskclient.base.views.IconTextEntry
android:id="@+id/advancedSettings"
app:icon="@drawable/ic_cog"
android:layout_height="wrap_content"
diff --git a/app/src/main/res/layout/f_language_selection.xml b/app/src/main/res/layout/f_language_selection.xml
new file mode 100644
index 00000000..0569c7c1
--- /dev/null
+++ b/app/src/main/res/layout/f_language_selection.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout 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:orientation="vertical"
+ android:layout_margin="@dimen/stdpadding"
+ tools:context=".base.fragments.LanguageSelectionFragment">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/languages"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/v_select_text_list_item.xml b/app/src/main/res/layout/v_select_text_list_item.xml
index 47a1f4ad..44e82906 100644
--- a/app/src/main/res/layout/v_select_text_list_item.xml
+++ b/app/src/main/res/layout/v_select_text_list_item.xml
@@ -4,8 +4,7 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:background="?attr/selectableItemBackground"
- tools:viewBindingIgnore="true">
+ android:background="?attr/selectableItemBackground">
<LinearLayout
android:layout_width="match_parent"