I have a alert view with custom layout which contains EditText
activity.alert {
var quantityEt: EditText? = null
customView {
linearLayout {
orientation = LinearLayout.VERTICAL
quantityEt = editText {}
quantityEt!!.requestFocus()
Log.e("LOL", ac.window.currentFocus.toString())
}
}
}.show()
then I request focus to this edit text. However, activity.window.currentFocus
outputs that the currentFocus android.support.v7.widget.RecyclerView.
I need the currentFocus to be EditText. I also tried to tap it to request focus, but still got RecyclerView.
Is there a way to achieve that?