From 81ee5f46f527492ea750b02b1d9e9e737a76904d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 25 Dec 2016 15:17:15 +0100 Subject: [PATCH] use our custom views where appropriate --- .../gallery/dialogs/PickAlbumDialog.kt | 3 ++- app/src/main/res/layout/activity_settings.xml | 4 ++-- app/src/main/res/layout/dialog_copy_move.xml | 8 ++++---- app/src/main/res/layout/dialog_save_as.xml | 16 +++++++++------- app/src/main/res/layout/pager_video_item.xml | 9 +++++---- app/src/main/res/layout/rename_directory.xml | 7 ++++--- app/src/main/res/layout/rename_file.xml | 14 ++++++++------ app/src/main/res/layout/resize_image.xml | 14 ++++++++------ 8 files changed, 42 insertions(+), 33 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt index 3960d80ea..702b941d6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/PickAlbumDialog.kt @@ -24,8 +24,9 @@ class PickAlbumDialog(val activity: SimpleActivity, val callback: (path: String) AlertDialog.Builder(activity) .setView(view) - .setNeutralButton(R.string.other_folder, { dialogInterface, i -> showOtherFolder() }) .setPositiveButton(R.string.ok, null) + .setNegativeButton(R.string.cancel, null) + .setNeutralButton(R.string.other_folder, { dialogInterface, i -> showOtherFolder() }) .create().apply { activity.setupDialogStuff(view, this, R.string.select_destination) diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 8361a4f69..9122be9e4 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -19,7 +19,7 @@ android:background="?attr/selectableItemBackground" android:padding="@dimen/activity_margin"> - - - - - - - - - + android:singleLine="true" + android:textCursorDrawable="@null"/> - - + android:singleLine="true" + android:textCursorDrawable="@null"/> diff --git a/app/src/main/res/layout/pager_video_item.xml b/app/src/main/res/layout/pager_video_item.xml index bae1a2727..7d6564f15 100644 --- a/app/src/main/res/layout/pager_video_item.xml +++ b/app/src/main/res/layout/pager_video_item.xml @@ -1,8 +1,9 @@ - + - - + android:singleLine="true" + android:textCursorDrawable="@null"/> diff --git a/app/src/main/res/layout/rename_file.xml b/app/src/main/res/layout/rename_file.xml index 64d5f77dc..e4780e37c 100644 --- a/app/src/main/res/layout/rename_file.xml +++ b/app/src/main/res/layout/rename_file.xml @@ -7,29 +7,31 @@ android:orientation="vertical" android:padding="@dimen/activity_margin"> - - + android:singleLine="true" + android:textCursorDrawable="@null"/> - - + android:singleLine="true" + android:textCursorDrawable="@null"/> diff --git a/app/src/main/res/layout/resize_image.xml b/app/src/main/res/layout/resize_image.xml index 52df56f46..488c10135 100644 --- a/app/src/main/res/layout/resize_image.xml +++ b/app/src/main/res/layout/resize_image.xml @@ -7,13 +7,13 @@ android:orientation="vertical" android:padding="@dimen/activity_margin"> - - + android:maxLines="1" + android:textCursorDrawable="@null"/> - - + android:maxLines="1" + android:textCursorDrawable="@null"/>