android键盘弹出头部上移处理

<ScrollView
        android:id="@+id/top_bar"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >
...
</ScrollView>
...
View Code

或者

<activity
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustPan"
android:screenOrientation="portrait" >
</activity>

个人笔记

原文地址:https://www.cnblogs.com/LiuZhen/p/4864795.html