第一种方案
:<activity android:name="com.disanxue.activity.LoginActivity"
android:screenOrientation="portrait"android:windowSoftInputMode="stateHidden"
android:configChanges="orientation|keyboardHidden"> </activity>
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
</LinearLayout>
</ScrollView