I know how to detect in android mobile devices when keyboard is shown, but how can I do that on android tv, or fire tv?
Asked
Active
Viewed 208 times
5
-
I guess I should make a calendar event and celebrate the anniversary of this question – Ultimo_m Jan 30 '21 at 21:21
1 Answers
0
Try this
fun isKeyBoardVisible() = ViewCompat.getRootWindowInsets(requireView())?.isVisible(WindowInsetsCompat.Type.ime()) ?: true

sadat
- 4,004
- 2
- 29
- 49