Wednesday, September 21, 2011
[android-developers] cannot input text into EditText widgets inside ListView
Hello,
I am having a dynamic list with text views. My list_item.xml file looks like this.
When I try to enter text on the 2.3.3 emulator it goes in for a short while and
then the soft keyboard shifts my UI up and it gets cleared. Anyone know why
this is happening?
Thanks,
John Goche
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/id1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_weight="1" />
<TextView
android:id="@+id/id2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="time" />
</LinearLayout>
<EditText
android:id="@+id/id3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/foo"
android:inputType="textShortMessage" />
<EditText
android:id="@+id/id4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/foo"
android:focusable="true"
android:inputType="textShortMessage" />
</LinearLayout>
--
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment