转自http://blog.csdn.net/silence_cdsn/article/details/7987063

更改listview的布局属性

之前的布局:

  1. <ListView android:id="@+id/list_chat"
  2. android:stackFromBottom="true" android:layout_width="fill_parent"
  3. android:layout_height="fill_parent" android:scrollingCache="false"
  4. android:cacheColorHint="@android:color/background_light"
  5. android:layout_weight="1" android:divider="@null"
  6. android:background="@color/chat_bg" android:fadingEdge="none"
  7. android:layout_gravity="bottom" />
  1. <ListView android:id="@+id/list_chat"
  2. android:stackFromBottom="true" android:layout_width="fill_parent"
  3. android:layout_height="fill_parent" android:scrollingCache="false"
  4. android:cacheColorHint="@android:color/background_light"
  5. android:layout_weight="1" android:divider="@null"
  6. android:background="@color/chat_bg" android:fadingEdge="none"
  7. android:layout_gravity="bottom" />

更改后的

  1. <ListView android:id="@+id/list_chat"
  2. android:stackFromBottom="true" android:layout_width="fill_parent"
  3. android:layout_height="fill_parent" android:scrollingCache="false"
  4. android:cacheColorHint="@android:color/background_light"
  5. android:layout_weight="1" android:divider="@null"
  6. android:background="@color/chat_bg" android:fadingEdge="none"
  7. android:fastScrollEnabled="true" android:transcriptMode="normal"
  8. android:scrollbarStyle="insideInset" android:layout_gravity="bottom" />
  1. <ListView android:id="@+id/list_chat"
  2. android:stackFromBottom="true" android:layout_width="fill_parent"
  3. android:layout_height="fill_parent" android:scrollingCache="false"
  4. android:cacheColorHint="@android:color/background_light"
  5. android:layout_weight="1" android:divider="@null"
  6. android:background="@color/chat_bg" android:fadingEdge="none"
  7. android:fastScrollEnabled="true" android:transcriptMode="normal"
  8. android:scrollbarStyle="insideInset" android:layout_gravity="bottom" />

正常图片:

弹出keyboard后,非正常图片:

弹出keyboard后正常图片:

弹出输入框后,将listview内容遮住,解决方案的更多相关文章

  1. ios输入法弹出输入框定位错乱

    弹出输入框会使视口高度发生变化,弹出输入框后动态匹配这个高度 以下是使用jq的方法 $('input').on('blur', function () { setTimeout(function () ...

  2. JavaScript实现点击按钮弹出输入框,点确定后添加li组件到ul组件里

    JavaScript实现点击按钮弹出输入框,点确定后添加li组件到ul组件里 <!doctype html> <html manifest="lab4.manifest&q ...

  3. Python实现使用tkinter弹出输入框输入数字, 具有确定输入和清除功能

    Python3.6中用tkinter, 弹出可以输入数字的输入框. # Copyright (c) 2017-7-21 ZhengPeng All rights reserved. def pop_u ...

  4. C#如何弹出输入框

    在C#中,进行windows窗体应用程序编程的时候,经常需要弹出输入框,输入密码,输入文本之类的.然而,C#中没有直接弹出输入框的语句,MessageBox只能显示一段消息而不能输入.我们需要调用Mi ...

  5. Android 弹出输入框

    final EditText inputServer = new EditText(SettingActivity.this); AlertDialog.Builder builder = new A ...

  6. iOS开发之弹出输入框

    最近项目里有个需求要弹出输入框,GitHub上搜了一圈没发现太合适的轮子,就自个儿撸了一个,传送门在这里https://github.com/wozyao/ZYInputAlert,有需要的同学可以d ...

  7. Html : 点击按钮弹出输入框,再次点击进行隐藏

    上代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3 ...

  8. Android点击列表后弹出输入框,所点击项自动滚动到输入框上方

    使用微信的朋友圈会发现,点击某一条评论后输入框会弹出来,然后所点击的那一项会自动地滚动到输入框上方的位置,这样如果开始所点击的评论在屏幕很下方的话,就不会被输入框遮住,虽然微信这一点在我的MX2频繁点 ...

  9. Easyui 关闭弹出框后还显示验证提示信息

    今天下午做form表单,然后可以保存,可以关闭.可是关闭的时候老是会在屏幕左上角显示验证提示框,很是着急. 如图: 可能是easyui自己框架的问题,或许是因为网上有的人,自己代码写得有问题,没有调试 ...

随机推荐

  1. mysql--Ubuntu下设置MySQL字符集为utf8

    1.mysql配置文件地址/etc/mysql/my.cnf 2.在[mysqld]在下方添加以下代码[mysqld]init_connect='SET collation_connection = ...

  2. 【内核】探究linux内核,超详细解析子系统

    Perface 前面已经写过一篇<嵌入式linux内核的五个子系统>,概括性比较强,也比较简略,现在对其进行补充说明. 仅留此笔记,待日后查看及补充! Linux内核的子系统 内核是操作系 ...

  3. Node和Electron开发入门(四):操作PC端文件系统

    一.调用PC端默认方式打开本地文件 在main.js里 // 打开系统本地文件或者网页链接 const {shell} = require('electron'); // Open a local f ...

  4. shell 全局剔除标点符号

    vim打开文件 []如果是单个字符的话,加上中括号就代表“或”了 :%s/[`~!@#$^&*()=|{}':;',\[\].<>?�/¥……——|[]‘::”“'.,.]//g ...

  5. js实现复制功能,将需要复制的内容放入剪切板上

    方法一:使用ZeroClipboard.js插件 <html> <head> <meta charset="UTF-8"> </head& ...

  6. BAT-局域网内在线电脑IP

    相关资料:朋友发来的,来源不明. 问题现象:有个朋友问我都在一个内网中,电脑A没有显示器,怎么找到它的IP. 问题处理: 1.登陆路由器查看IP在线情况. 2.用BAT文件显示出在线IP. 显示局域网 ...

  7. 4. EM算法-高斯混合模型GMM详细代码实现

    1. EM算法-数学基础 2. EM算法-原理详解 3. EM算法-高斯混合模型GMM 4. EM算法-高斯混合模型GMM详细代码实现 5. EM算法-高斯混合模型GMM+Lasso 1. 前言 EM ...

  8. 纯真ip导入mysql

    先从纯真官网右侧下载ip数据库 更新后,点击解压,可以把数据库保存为txt格式 格式化数据 ip格式如下图 可见并不是很规范,而且最底部字段数也不一致 先用正则表达式,查找替换一下 (\d+.\d+. ...

  9. bootstrap插件(对话框)bootbox参数和自定义弹出框宽度设置

    参考:https://hisune.com/post/view/17/bootstrap-plugin-bootbox-and-custom-width-dialog 官网:http://bootbo ...

  10. .net 循环引用是否会造成内存泄漏

    一直想做这么一个测试,人和手的测试.类型"人"有一个属性"手",需要"手"也可以读取"人"的数据.则"手&qu ...