From feed3100be5deae0bf20447d797e5540adf5262b Mon Sep 17 00:00:00 2001 From: Adrian Ulrich Date: Sat, 21 Oct 2017 19:45:17 +0200 Subject: [PATCH] Make folder picker text view editable This gives users the ability to input any path directly without having to walk the whole directory tree (which may include non-readable files) --- res/layout/folderpicker_content.xml | 6 +- .../android/vanilla/FolderPickerActivity.java | 61 ++++++++++++++++--- 2 files changed, 55 insertions(+), 12 deletions(-) diff --git a/res/layout/folderpicker_content.xml b/res/layout/folderpicker_content.xml index 7bf3ae09..800be47a 100644 --- a/res/layout/folderpicker_content.xml +++ b/res/layout/folderpicker_content.xml @@ -25,14 +25,16 @@ THE SOFTWARE. xmlns:dslv="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:orientation="vertical" > + android:orientation="vertical" + android:focusable="true" + android:focusableInTouchMode="true" > -