You can set focus on some other thing ...
like empty text view (set inputType to none)

hope this help :D


On Feb 16, 6:05 am, Achanta <krishna.acha...@gmail.com> wrote:
> How can we prevent an edittext from getting focus and displaying the
> soft keyboard.
>
> I have an searchbox which should not be focussed by default and should
> have focus only when user clicks on it to enter something. But right
> now it takes focus and shows the keyoard as soon as I open the
> activity.
>
> Is this a bug or can this be changed to behave in the way we want?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to