Android中requestfocus的作用和使用

来源:互联网 发布:网络语言73是什么意思 编辑:程序博客网 时间:2024/06/05 17:31

该标签用于指定屏幕中的焦点view。

例如点击Tab键或Enter键,焦点会自动下一个输入框。

使用方法:将标签置于<Views>标签内部。

            <EditText id="@+id/text"                         android:layout_width="match_parent"                         android:layout_height="wrap_content"                         android:layout_weight="0"                         android:paddingBottom="4">                   <requestFocus />            </EditText>



0 0