How to set focus on a view when a layout is created and displayed?

后端 未结 15 1220
Happy的楠姐
Happy的楠姐 2020-12-02 15:07

Currently, I have a layout which contains a Button, a TextView and an EditText. When the layout is displayed, the focus will be automa

15条回答
  •  盖世英雄少女心
    2020-12-02 15:54

    Set focus: The framework will handled moving focus in response to user input. To force focus to a specific view, call requestFocus()

提交回复
热议问题