0

I have a app in which i have edit text. I want to use it as a search bar. So when i click on it, i want to get a keypad in which i should have a search button.

I tried it using: android:imeOptions="actionSearch", android:imeActionLabel="Search" but i didnt get it. In android 2.1 we are getting it, but in android 2.2 we are not getting it. Can any one you suggest a good solution for this?

UVM
  • 9,725
  • 5
  • 40
  • 64
sravanthi V
  • 136
  • 11

1 Answers1

0

Its already answered at SO. Check out the answer here

Your edittext should be set as singleLine.

Community
  • 1
  • 1
Tarun
  • 13,577
  • 8
  • 40
  • 57