In Android Nougat, the EditText loses focus when the keyboard is displayed. This is working fine with all the lower versions.
I am using requestFocus() manually to get the focus to the EditText and programmatically showing the keyboard. The EditText is placed inside a ListView.
Could someone help me to resolve the issue?
Try:
Add
android:descendantFocusability="afterDescendants"to yourListView.Add
android:focusable="true"andandroid:focusableInTouchMode="true"to yourEditText.Add
android:windowSoftInputMode="adjustPan"to yourActivityin AndroidManifest file.