Advertisement

Android开发中使用EditText实现自动获取焦点并弹出软键盘的操作方法

阅读量:

接下来了解一下软键盘如何实现自动弹出功能:

复制代码
 <?xml version="1.0" encoding="utf-8"?>

    
 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    
     android:layout_width="match_parent"
    
     android:layout_height="match_parent">
    
  
    
     <LinearLayout
    
     android:layout_width="match_parent"
    
     android:layout_height="match_parent"
    
     android:background="#F0F2F5"
    
     android:orientation="vertical">
    
  
    
     <include layout="@layout/common_title_vi

全部评论 (0)

还没有任何评论哟~