In my application, the following:
Layout / dialog_edit_group.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dlgEditGroup" android:layout_width="fill_parent" android:layout_height="fill_parent"> <EditText android:id="@+id/txtGroup" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Group Name" android:inputType="text" android:singleLine="true" android:editable="true"/>
my activity (onCreateDialog method):
... LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.dialog_edit_group, (ViewGroup) findViewById(R.id.dlgEditGroup)); EditText txtGroup = (EditText) layout.findViewById(R.id.txtGroup); txtGroup.setFocusable(true); builder.setView(layout); return builder.create();
When a dialog appears, and I'm trying to type text - edit the text without updating. The keyboard shows that the keys are pressed (I see the keyboard prompts - I use the gingerbread keyboard), but nothing changes in the edittext. What should I do?
UPD: see the video with the question: youtu.be/XOSXDSZvisI
source share