较简单的 方法是创建两个edittext,edittext默认为第一个聚焦

所以创建两个 ,然后把第一个EditText 的

android:layout_width="fill_parent"
android:layout_height="wrap_content"

改为
android:layout_width="0dp"
android:layout_height="0dp"


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>


<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>


更多相关文章

  1. Android证书创建之 keytool 错误:java.io.IOException:Incorrect
  2. 2.5.2 使用alertdialog 创建列表对话框
  3. 2.5.6 使用progressDialog创建进度对话框
  4. Android(安卓)Activity 的四种启动模式 lunchMode 和 Intent.set
  5. Android(安卓)Studio创建计算器Demo
  6. android之使用mvn构建创造项目步骤
  7. 2.5.3 使用alertDialog创建自定义对话框
  8. Android——实现两个控件水平居中
  9. Android(安卓)之 SQLite数据库的使用

随机推荐

  1. Android 签名(META-INF)
  2. Android Manifest.xml 结构详解
  3. Android(安卓)菜单BoomMenu(悬浮按钮弹出
  4. Android(安卓)Plugins
  5. android技术专题之二-telephony
  6. 安卓逆向_22 --- 使用渗透测试框架 Xpose
  7. 自定义SeekBar样式
  8. android listview 配置导致的顿卡日记
  9. Android设置EditText显示输入的表情Icon(
  10. Android(安卓)图片文件夹区别