android开发 软键盘出现后 防止EditText控件遮挡 整体平移UI

时间:2014-06-03 04:42:31   收藏:0   阅读:246
在EditText控件接近底部的情况下 软键盘弹出后会把获得焦点的EditText控件遮挡 无法看到输入信息 
防止这样的情况发生 就需要设置AndroidManifest.xml的属性




前面的xml信息省略 在activity中 增加android:windowSoftInputMode="adjustPan"
        <activity
           ........................................................
            android:windowSoftInputMode="adjustPan"
            >
        </activity>

android开发 软键盘出现后 防止EditText控件遮挡 整体平移UI,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!