OSDN Git Service

Updating the search hint to contain the icon as a span object.
authorSunny Goyal <sunnygoyal@google.com>
Thu, 21 Jul 2016 17:42:30 +0000 (10:42 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Fri, 22 Jul 2016 20:17:30 +0000 (13:17 -0700)
commitce3fffb5fb446e031e52ee0c5f2a4a5cf86a8c81
tree7f95627d9e96e445b5dc9f03d6ed2a02eca408f3
parent58368b15152052fb479891f0d3aba30ab3794fba
Updating the search hint to contain the icon as a span object.

This makes the icon part of the hint text, and removes any need for
custom focus event handling.
Also the icon will now appear at the start of the text  based on the
direction of the text and not the direction of the layout

Change-Id: I06c5cf99492d75b1005c69ec7c521cde0fdab010
res/layout/all_apps.xml
src/com/android/launcher3/allapps/AllAppsContainerView.java
src/com/android/launcher3/allapps/AllAppsSearchBarController.java
src/com/android/launcher3/graphics/TintedDrawableSpan.java [new file with mode: 0644]