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:01:00 +0000 (11:01 -0700)
commit893cb0987a021a3a42d9a56fe0a7a3c688f5dee4
treec5ee5eb2ad868108e1dd43414a486afbcc938844
parent048f6fb8b32ebf71f1fb9da06fce57f2c3194309
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: I4a0f0c91c51ff5820b61a596520d80a3337c3466
AndroidManifest.xml
res/layout/search_main.xml
res/layout/search_panel.xml
res/values/themes.xml
src/com/android/settings/search/HeaderDecorator.java [new file with mode: 0644]
src/com/android/settings/search/SearchFragment.java
tests/app/src/com/android/settings/search/SearchFragmentEspressoTest.java
tests/robotests/src/com/android/settings/SettingsRobolectricTestRunner.java
tests/robotests/src/com/android/settings/search/HeaderDecoratorTest.java [new file with mode: 0644]