What is the difference between setFocusable and setFocusableInTouchMode?

android, focus

Solution

setFocusable mainly used for enable/disable view's focus event on both touch mode and keypad mode( using up/down/next key).

setFocusableInTouchMode mainly used for enable/disable view's focus event on touch mode alone.

If you are disabled setFocusable it also disabled the view's focus event on touch mode.

Problem

What is the difference between `setFocusable` and `setFocusableInTouchMode` for an Android view? Additional question after trying to read the documentation: And how are these different from `isFocusable` and `isFocusableInTouchMode`?

Original source

Related problems