views:

45

answers:

1

I wounder if there some example on how to create a searchbar just like twitter app in android? http://2.bp.blogspot.com/_GTM_W5mVPTU/S-rmYdiUTCI/AAAAAAAAAEE/hIO9GD53SLc/s1600/search2.png
and also I wounder about the popup. are there any samples?

A: 

For the search bar, I would just implement a custom Activity that handles the search action within your app. If you notice, when you press search from within Twitter it takes you to an entire new screen, with that bar at the top, a location bar below that, and then a ListView of suggestions. That just looks like a custom Activity to me that mimics the built in search function. I could be wrong, but I know of no way to customize the built in search bar that heavily.

As for the popup, look at the answers to this question: http://stackoverflow.com/questions/3059155/android-quick-actions-ui-pattern

mbaird