Tom O
Tom O

Reputation: 1800

Search Suggestions Background

Hello I've just implemented a search option on my application use this on the Android developer site, which is working perfectly, and so I've added Search Suggestions, so when the user searches something it will be saved for next time, I've done this using this tutorial on the Android Developer site too.

This works perfectly except for when you start typing and if what your typing isn't in the latest queries list then it hides query list so that the screen behind the search UI shows, But this looks really horrible and unattractive, i was wondering if I'm able to keep the white background even if the query isn't in the list?

Hope that makes sense, Thankyou in advance :)

Upvotes: 1

Views: 427

Answers (1)

sgarman
sgarman

Reputation: 6182

The first thing I would try to avoid the "squashing" is in the activity thats getting squashed set android:windowSoftInputMode="adjustResize" or android:windowSoftInputMode="adjustPan" in the activity tag in your manifest.

If thats the what your looking for you can always use your own search activity where you implement everything on your own. I have done this, and apps like twitter and facebook have also done this if you want to see some examples.

Upvotes: 1

Related Questions