From 2ff2cd873cc2a3f6a17cdaeb3e64b83ae2c6fda9 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Mon, 2 Mar 2015 10:37:01 -0800 Subject: Text selection changes - smart handles & drag accelerator Drag accelerator: After entering text selection mode, immediately dragging your finger along the screen will select text. Once you have dragged past the initial word the selection an offset is added so that the end of the selection is not below your finger. Smart handles: When expanding the selection the handles snap to words, when shrinking the selection the handles go by character, once you're in by-character mode you can expand by character until you hit a word boundary where you will then expand by word again. Your finger must past the first ~2 characters in a word before the handle will jump to the word boundary. Bug: 19356160 Bug: 19355947 Change-Id: I79b8ec5ae3159148cd2f15d2e63dd5045c2069e4 --- .../text_select_handle_left_mtrl_alpha.png | Bin 478 -> 368 bytes .../text_select_handle_right_mtrl_alpha.png | Bin 486 -> 349 bytes .../text_select_handle_left_mtrl_alpha.png | Bin 346 -> 267 bytes .../text_select_handle_right_mtrl_alpha.png | Bin 347 -> 241 bytes .../text_select_handle_left_mtrl_alpha.png | Bin 751 -> 467 bytes .../text_select_handle_right_mtrl_alpha.png | Bin 752 -> 466 bytes .../text_select_handle_left_mtrl_alpha.png | Bin 1148 -> 684 bytes .../text_select_handle_right_mtrl_alpha.png | Bin 1155 -> 630 bytes .../text_select_handle_left_mtrl_alpha.png | Bin 0 -> 889 bytes .../text_select_handle_right_mtrl_alpha.png | Bin 0 -> 858 bytes 10 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png create mode 100644 core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png (limited to 'core/res') diff --git a/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png index 9cdc25b..1550b44 100644 Binary files a/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png index 276d480..b309dfd 100644 Binary files a/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png index 95c0168..b36a413 100644 Binary files a/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png index 569332a..afd0bd2 100644 Binary files a/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png index a01ac10..58f8c43 100644 Binary files a/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png index d3602d9..42a893d 100644 Binary files a/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png index 75085ce..d0f274a 100644 Binary files a/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png index e2eb5be..f1f637a 100644 Binary files a/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png new file mode 100644 index 0000000..643168f Binary files /dev/null and b/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png new file mode 100644 index 0000000..e8f3aad Binary files /dev/null and b/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png differ -- cgit v1.1