requestFocus() returning false
问题 I am inflating a view when a button is pressed. The inflated view is like a dialog box, however when I try to get focus on the dialog box with requestFocus() , requestFocus() returns false means I am not getting focus on the view, but when I manually tap the inflated view, it recieves focus. What am I doing wrong? I clear focus from the button (which is used to inflated the new view) before I call requestFocus on inflated view. Regards 回答1: A possible reason why the View.requestFocus() method