Using adjustResize does not cause an edit text to lose focus in any way.
 The only thing it does is cause your UI to relayout for the new window
size.

I don't know what you are doing, but the vast majority of applications you
interact with just use adjustResize with a regular view hierarchy, and they
work fine.

On Tue, Jan 25, 2011 at 12:50 AM, Alok Kulkarni <[email protected]> wrote:

> @Dianne , If i use adjustResize only then it works on most of the
> devices, its observed that on an EditText  keyboard comes up but the
> focus of the Edittext goes and user has to click again on the
> Edittext, which is not natural behaviour.
> If i use adjustPan only , then the screen does not scroll to the
> bottom when SoftKeyboard is open.
> When both are given , then worked fine on a few devices like Samsung
> Europa but on most of the devices either of the issues mentioned above
> was observed.
> Regards,
> Alok.
>
> On Tue, Jan 25, 2011 at 2:11 PM, Alok Kulkarni <[email protected]> wrote:
> > Thanks a lot for ur responses.I will try that out and update.
> > Regards,
> > Alok.
> >
> > On Sat, Jan 22, 2011 at 3:16 AM, Dianne Hackborn <[email protected]>
> wrote:
> >> You can not mix adjustPan and adjustResize.  It is one or the other.  If
> >> your window can resize to accommodate the IME, you should use
> adjustResize.
> >> That said, these would have nothing to do with whether a text view would
> >> actually receive input.
> >>
> >> On Fri, Jan 21, 2011 at 6:09 AM, Alok Kulkarni <[email protected]>
> wrote:
> >>>
> >>> Hi.
> >>>  i am having an activity in which i am adding controls such as
> >>> EditText and TextView at runtime in a listiiew.
> >>> What happens is that for the Edittext the keyboard pops up and the
> >>> controls at the bottom of the screen are not visible even when i
> >>> scroll down.So when i add the property
> >>> android:windowSoftInputMode="stateVisible|adjustResize|adjustPan"
> >>> , things work.But suddenly i face the issue that i cannot type in the
> >>> edit text pressing the keyboard.The focus automatically goes out of
> >>> the EditText while typing on the keyboard.I have tried this on Devices
> >>> like Nexus S , Moto Cliq . Both have the same problem.Any ideas.
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to
> [email protected]
> >>> To unsubscribe from this group, send email to
> >>> [email protected]<android-developers%[email protected]>
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/android-developers?hl=en
> >>
> >>
> >>
> >> --
> >> Dianne Hackborn
> >> Android framework engineer
> >> [email protected]
> >>
> >> Note: please don't send private questions to me, as I don't have time to
> >> provide private support, and so won't reply to such e-mails.  All such
> >> questions should be posted on public forums, where I and others can see
> and
> >> answer them.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]<android-developers%[email protected]>
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to