Edittext Inside Expandablelistview Does Not Show Keyboard
I have a custom DialogFragment thats displays an ExpandableListView and its items are EditText. When the EditText gets the focus the input keyboard is not shown, even if I force it
Solution 1:
I found a workaround, its really a trick because I don't really know why does it work. I just added a dummy invisible Edittext at the beginning of DialogFragment XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:descendantFocusability="afterDescendants"
>
<EditText
android:id="@+id/dummyEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:enabled="false"
android:visibility="gone"
/>
......
Post a Comment for "Edittext Inside Expandablelistview Does Not Show Keyboard"