OSDN Git Service

Dashboard search bar polish
authorAndrew Sapperstein <asapperstein@google.com>
Sun, 25 Jun 2017 22:18:46 +0000 (15:18 -0700)
committerAndrew Sapperstein <asapperstein@google.com>
Mon, 26 Jun 2017 17:28:49 +0000 (10:28 -0700)
commit40be7df5dfd48b0dd076bd28fb6e034d5d4ea88e
tree567efffb75836fa9e778d04252e678974339ab33
parenta2dd9978d4b45f3d65a861d106cae60502de1531
Dashboard search bar polish

Various tweaks to match redlines:
- background is now grey all the time
- the search icon is aligned with the other icons
- the title text is primary colored instead of accent colored
- the background of search bar doesn't scroll anymore

Deletes a bunch of logic to add an initial view that would be
colored based on the first view. It never quite worked right.
Now it's consistent and never moves.

Bug: 37477506
Fixes: 62267378
Fixes: 62379978
Fixes: 62361213
Test: robotests
Change-Id: Iddfd45a64a0a8d0365397a207889d7225d1ebb70
Merged-In: I82c584e8f8ecc6fc298c5cdbce08516c6a069a39
res/layout/dashboard_header_spacer.xml [deleted file]
res/layout/settings_main_dashboard.xml
src/com/android/settings/SettingsActivity.java
src/com/android/settings/dashboard/DashboardAdapter.java
src/com/android/settings/dashboard/DashboardData.java
tests/robotests/src/com/android/settings/dashboard/DashboardAdapterTest.java
tests/robotests/src/com/android/settings/dashboard/DashboardDataTest.java