[Android] Deactivate fastscroll for Android 4.x
Geoffrey Métais
git at videolan.org
Thu Dec 6 11:04:54 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec 6 11:04:19 2018 +0100| [e06b9ccab7378ef2b8288b8f2d0b14417b4fd10d] | committer: Geoffrey Métais
Deactivate fastscroll for Android 4.x
It causes Android to crash at view inflation
> https://code.videolan.org/videolan/vlc-android/commit/e06b9ccab7378ef2b8288b8f2d0b14417b4fd10d
---
vlc-android/res/layout-v21/audio_recyclerview.xml | 15 +++++++++++++++
vlc-android/res/layout/audio_recyclerview.xml | 9 +--------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/vlc-android/res/layout-v21/audio_recyclerview.xml b/vlc-android/res/layout-v21/audio_recyclerview.xml
new file mode 100644
index 000000000..2ed0ebdf3
--- /dev/null
+++ b/vlc-android/res/layout-v21/audio_recyclerview.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false"
+ android:paddingLeft="20dp"
+ android:paddingRight="20dp"
+ app:fastScrollEnabled="true"
+ app:fastScrollHorizontalThumbDrawable="@drawable/fastscroll_thumb_drawable"
+ app:fastScrollHorizontalTrackDrawable="@drawable/fastscroll_track_drawable"
+ app:fastScrollVerticalTrackDrawable="@drawable/fastscroll_track_drawable"
+ app:fastScrollVerticalThumbDrawable="@drawable/fastscroll_thumb_drawable"
+ android:background="?attr/background_default" />
\ No newline at end of file
diff --git a/vlc-android/res/layout/audio_recyclerview.xml b/vlc-android/res/layout/audio_recyclerview.xml
index 2ed0ebdf3..0dcadf36b 100644
--- a/vlc-android/res/layout/audio_recyclerview.xml
+++ b/vlc-android/res/layout/audio_recyclerview.xml
@@ -1,15 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.recyclerview.widget.RecyclerView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
+<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingLeft="20dp"
android:paddingRight="20dp"
- app:fastScrollEnabled="true"
- app:fastScrollHorizontalThumbDrawable="@drawable/fastscroll_thumb_drawable"
- app:fastScrollHorizontalTrackDrawable="@drawable/fastscroll_track_drawable"
- app:fastScrollVerticalTrackDrawable="@drawable/fastscroll_track_drawable"
- app:fastScrollVerticalThumbDrawable="@drawable/fastscroll_thumb_drawable"
android:background="?attr/background_default" />
\ No newline at end of file
More information about the Android
mailing list