1.android 弹出的软键盘遮挡住EditText文本框的解决方案:

把Activit对应的布局文件filename.xml文件里的控件用比重设置布局。
(例如:android:layout_weight="31")
并且尽可能把高度设置成自适应的:android:layout_height="wrap_content",
也就是没有设置高度的控件可压缩度的总和,如果比软键盘的高度要大,在
EditText文本输入的时候,弹出的软键盘就不会遮挡住文本输入框。


2.设置默认软键盘隐藏的方法:
在androidManifest.xml工程管理文件里中,对应的activity里设置
android:windowSoftInputMode="adjustUnspecified|stateHidden"

例如:
<activity android:name="com.Lepad.MyTable" android:windowSoftInputMode="adjustUnspecified|stateHidden"
android:screenOrientation="portrait"></activity>

更多相关文章

  1. Android(安卓)高级控件(二)
  2. 关于设置android:imeOptions属性无效的解决办法
  3. Android各种访问权限Permission详解
  4. Android设置TextView的渐变颜色、方向和动画效果
  5. android设置软键盘搜索键以及监听搜索键点击事件
  6. android TextView属性
  7. android:windowSoftInputMode 介绍
  8. android webview 软键盘覆盖 输入框的 问题
  9. Android四大布局之表格布局行列位置控制

随机推荐

  1. Android 3D 旋转的三角形(一)
  2. Android 事件总线OTTO用法快速入门
  3. Spinner 使用
  4. asa
  5. android 调用相机拍照 伪闪退
  6. Android测量字符串所占UI的大小
  7. [Linux]编译git for Android
  8. Android中有趣的Demo
  9. Cocos2d-x教程(37)-Mac搭建Android开发环
  10. 一起学android之关于Intent的Flag属性的