0
里面我有这样的布局的EditText滚动型显示键盘
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10" >
</EditText>
<EditText
android:id="@+id/editText2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10" />
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>
</ScrollView>
</LinearLayout>
..和当我执行我的应用程序,显示键盘。
http://img62.imageshack.us/img62/2879/screenshot2013041012264.png
如果我不使用滚动视图,这不会发生,除非我点击一个EditText上。
我想不显示键盘(有滚动视图),当我执行我的应用程序,除非我点击edittext。
有什么想法吗?
的感谢!
谢谢!它工作正常!!!!! – Bae 2013-04-10 15:15:02