Monday, July 4, 2011

Re: [android-developers] Soft Keyboard appears when entering on an Activity

You might consider posting a full sample project somewhere, to make it
easier for others to test.

On Mon, Jul 4, 2011 at 4:35 PM, fr4gus <fggarcia@gmail.com> wrote:
> I'm able to replicate a unusual issue with EditText. But it doesn't
> happen on all devices.
>
> Let's say you have the following layout:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>        android:layout_width="fill_parent"
> android:layout_height="fill_parent">
>   <!-- ScrollView, GridView, etc also causes this. -->
>    <ListView
>        android:id="@+id/listView1"
>        android:layout_width="match_parent"
>        android:layout_height="wrap_content"
>        android:layout_alignParentTop="true"></ListView>
>    <EditText
>        android:id="@+id/editText1"
>        android:layout_width="wrap_content"
>        android:layout_height="wrap_content"
>        android:layout_alignParentBottom="true"
>        android:text="EditText"></EditText>
> </RelativeLayout>
>
> When your activity is created and displayed the first time,
> softKeyboard will be shown even if user doesn't select the EditText
> field.
>
> I haven't reported this issue on Android trouble ticket system, since
> I think this is an issue on manufacturer implementation (may be)
>
> Devices we have:
> Sonyericsson Xperia x10 (with Cyanogen 6) - Issue doesn't appear.
> Motorola Milestone - Issue doesn't appear.
> HTC Desire - Issue happens on it.
> LG GX2 (T-Mobile) - Issue happens on it.
>
> The recipe to replicate this seems to be, having a "ViewGroup" above
> any EditText, will cause in certain devices, soft keyboard to appear,
> when entering on an Activity.
>
> I just would like to know if other ppl is able to replicate it, on
> which devices, and if possible, what's the workaround.
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment