0

My app currently opens a new activity when the user clicks the Search button, but I'm having some problems because of a confusion dealing with each activity and fragment lifecycle.

How can I place an edittext in the actionbar that when it gets focused, a list is display above the map like an autocomplete results list?

It's like the Google Maps android app.

1 Answers1

0

Create a custom layout for your ActionBar and include an AutoCompleteTextView in this layout. See the accepted answer to this question: Android - searchview with auto complete feature inside action bar

Community
  • 1
  • 1
Price
  • 2,663
  • 2
  • 16
  • 41