OSDN Git Service

Add search bar to SearchActivity.
authorAndrew Sapperstein <asapperstein@google.com>
Sun, 28 May 2017 23:28:08 +0000 (16:28 -0700)
committerAndrew Sapperstein <asapperstein@google.com>
Thu, 1 Jun 2017 18:02:56 +0000 (11:02 -0700)
commitfac61b71e5b32bf8cd464049c2750a18911b75b2
tree030701c36aaaf61310b0520e844e96405293ad3f
parent14934599dd6008a79c5e0d67f1df9ba5886c5198
Add search bar to SearchActivity.

Styling doesn't look exactly right yet but there's a bar.
Creates an ItemDecoration to add a spacer above the first view.

Removes the action bar and replaces it with a SearchView
inside of a CardView.

Remaining work: pixel pushing

Bug: 37477506
Test: make RunSettingsRoboTests
Change-Id: Ibf38c3c2725551bc4cd90e98d0020ec49c2eab2b
Merged-In: I4a0f0c91c51ff5820b61a596520d80a3337c3466
AndroidManifest.xml
res/layout/search_main.xml
res/layout/search_panel.xml
res/values/themes.xml
src/com/android/settings/search2/HeaderDecorator.java [new file with mode: 0644]
src/com/android/settings/search2/SearchFragment.java
tests/app/src/com/android/settings/search2/SearchFragmentEspressoTest.java
tests/robotests/src/com/android/settings/SettingsRobolectricTestRunner.java
tests/robotests/src/com/android/settings/search2/HeaderDecoratorTest.java [new file with mode: 0644]