转自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. Android NDK之二:创建NativeActivity

    转:http://blog.csdn.net/xiruanliuwei/article/details/7560914 Android NDK为我们提供了两种方式来实现我们的native activi ...

  2. H3C交换机配置的备份与恢复(TFTP方法)

    局域网维护中,有时候我们需要对网络设备的配置进行备份与还原. 相信有很多网管员备份配置都是采用display current命令查询当前设备运行配置信息,然后采用ctrl+c,ctrl+v的方式将信息 ...

  3. 【机器学习】粗糙集属性约简算法与mRMR算法的本质区别

    1. 粗糙集属性约简算法仅仅选出属性重要度大的条件加入约减中,没有考虑约简中条件属性相互之间的冗余性,得到的约简往往不是都必要的,即含有冗余属性. 2. mRMR算法则除了考虑特征与类别之间的相关性, ...

  4. 机器学习集成算法--- 朴素贝叶斯,k-近邻算法,决策树,支持向量机(SVM),Logistic回归

    朴素贝叶斯: 是使用概率论来分类的算法.其中朴素:各特征条件独立:贝叶斯:根据贝叶斯定理.这里,只要分别估计出,特征 Χi 在每一类的条件概率就可以了.类别 y 的先验概率可以通过训练集算出 k-近邻 ...

  5. Linux 常用命令随笔(一)

    Linux 常用命令随笔(一) 1.检查linux服务器的文件系统的磁盘空间 df -h 说明: -h更具目前磁盘空间和使用情况 以更易读的方式显示 -H根上面的-h参数相同,不过在根式化的时候,采用 ...

  6. 出去html中的标签

    C#写法 public static string StripHTML(string strHtml) { string strOutput = strHtml; Regex regex = new ...

  7. 微服务之springCloud和docker-Eureka(一)

    前言    本文记录怎么搭建服务注册中心eureka,然后打包成docker镜像,用docker swarm部署eureka集群 1.环境 环境 版本及说明 参考地址 docker v1.13.1,D ...

  8. StreamingContext.getOrCreate

    /** */ object AppRealTime { def main(args: Array[String]): Unit = { ) { println("please input a ...

  9. Swift is Open Source 博客note

    Swift is Open Sourcehtml, body {overflow-x: initial !important;}html { font-size: 14px; } body { mar ...

  10. C语言 · C++中map的用法详解

    转载自:http://blog.csdn.net/sunquana/article/details/12576729 一.定义   (1) map<string,   int>   Map ...