summaryrefslogtreecommitdiff
path: root/main/src/ui/res
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2020-05-06 17:42:12 +0200
committerArne Schwabe <arne@rfc2549.org>2020-05-06 17:42:24 +0200
commit72ae846ea9ce4c50441bdc347d86a39231176f3e (patch)
tree2bfd6966f6202bdbd6848ab46da0015d1daddd33 /main/src/ui/res
parent6dd6c760fed01f7bf2648362f1f893dc75dcf42d (diff)
Convert ListView in allowed apps to RecyclerView
Closes #693
Diffstat (limited to 'main/src/ui/res')
-rw-r--r--main/src/ui/res/layout/allowed_application_settings.xml2
-rw-r--r--main/src/ui/res/layout/allowed_vpn_apps.xml18
2 files changed, 11 insertions, 9 deletions
diff --git a/main/src/ui/res/layout/allowed_application_settings.xml b/main/src/ui/res/layout/allowed_application_settings.xml
index 96170965..1f04619c 100644
--- a/main/src/ui/res/layout/allowed_application_settings.xml
+++ b/main/src/ui/res/layout/allowed_application_settings.xml
@@ -6,7 +6,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:orientation="vertical"
tools:ignore="RtlCompat"
android:layout_marginTop="10dp">
diff --git a/main/src/ui/res/layout/allowed_vpn_apps.xml b/main/src/ui/res/layout/allowed_vpn_apps.xml
index 7f5e7b8b..8f343d04 100644
--- a/main/src/ui/res/layout/allowed_vpn_apps.xml
+++ b/main/src/ui/res/layout/allowed_vpn_apps.xml
@@ -4,16 +4,18 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:ignore="RtlCompat">
-
- <ListView
- android:id="@android:id/list"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:orientation="vertical"
+ tools:ignore="RtlCompat">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/app_recycler_view"
+ android:layout_width="match_parent"
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
+ android:layout_height="match_parent"
android:clipToPadding="false"
android:drawSelectorOnTop="false"
android:scrollbarStyle="outsideOverlay"