转自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. excel 添加换行符,去除换行符:

    excel 中添加换行符: :alt+enter 去掉excel中的换行符有三种方法: 注:解决过程中翻阅其他博客,看到如下方式: 1.看到有的说全选后“取消自动换行”,保存后,再打开,依然存在换行符 ...

  2. Android 编程下 Canvas and Drawables

    Canvas and Drawables 安卓提供了一组绘制二维图形的 API(参考官方文档:Canvas and Drawables | Android Developers),这组 API 允许开 ...

  3. 旧的flex

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  4. visual c++中预定义的宏

    一.主要目标 (由于visual studio通常包含很多开发环境,通常将其中c/c++的ide称为visual c++ 20xx) 整理下visual c++ 2010下预定义的宏.做一下备忘和了解 ...

  5. 管理 python logging 日志使用

    1.日志级别 日志一共分成5个等级,从低到高分别是:DEBUG INFO WARNING ERROR CRITICAL. DEBUG:详细的信息,通常只出现在诊断问题上INFO:确认一切按预期运行WA ...

  6. 使用 Trace 将日志输入到文件中

    工具没有好坏,只有适不适用.由于项目中用 Log4Net 过重,所以使用 Trace 代替了 Log4Net 输入一些简单的日志信息: 自定义监听文件 using System; using Syst ...

  7. How Not to Crash #6: Properties and Accessors(属性,存储器方法使问题)

    How Not to Crash #6: Properties and Accessorshtml, body {overflow-x: initial !important;}html { font ...

  8. 微信web开发者工具同时打开两个小程序项目

    在写小程序时,想要一边参考别人的Demo一边做,但是微信web开发者工具无法同时开两个实例,怎么办? 单个软件实例来回切换打开的项目太麻烦,一种办法是同时下载[微信web开发者工具]和[微信web开发 ...

  9. Linux shell 常用 加减乘除记录

    + 运算 count=0 let count=count+2 let count+=2 echo $count - 运算 count=0 let count=count-2 let count-=2 ...

  10. 【linux】——Ubuntu 12.04中文输入法的安装

    Ubuntu 12.04中文输入法的安装   Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等.其中Scim和Ibus是输入法框架. 在Ubuntu ...