zoukankan      html  css  js  c++  java
  • 弹出输入框后,将listview内容遮住,解决方案

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

    更改listview的布局属性

    之前的布局:

    [html] view plaincopy
     
    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" />  
    [html] view plaincopy
     
    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" />  


    更改后的

    [html] view plaincopy
     
    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" />  
    [html] view plaincopy
     
    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后正常图片:

     

  • 相关阅读:
    K2 的Workspace 遭遇400 RequestLength 错误修复
    从APM角度上看:NoSQL和关系数据库并无不同
    Mono的Google Native Client(NaCl)技术支持
    FastReport.Mono 一款为Mono Framework设计的功能全面的报表生成工具
    修改 Windows Host 文件工具
    采用Mono进行移动开发图书推荐
    MonoDevelop添加NuGet支持
    WCF Service Hosting的线程关联性Mono实现比.NET统一?
    [转]WiX v3.7——支持MSBuild、自更新及引用计数
    [转]度量驱动开发
  • 原文地址:https://www.cnblogs.com/kobe8/p/4338796.html
Copyright © 2011-2022 走看看