listView滚动条不是自已会出现的么,你内容多的时候它就会出现,内容少当然就没有啦~
解决方案 »
- NDK的SO 文件的生存周期
- android4.0 开机启动后,显示的墙纸(称它为墙纸A)是存在什么地方呢?
- Android google map 如何实现基于位置的服务,像查询银行,搜索路线等等的功能
- 在android中如何获取主activity的实例
- A手机开启了热点, B手机连上了这台手机开启的热点。问:为什么B手机用socket连接不上A手机
- 大牛们,请问瘦脸、美白之类的照片美化功能是用什么库实现的?
- Notification intent
- 关于android4.4里基于主机的卡模拟有点疑惑
- 下滑效果实现
- Android studio第一次创建项目失败
- android联系人
- 英语不太好,新手入门,求教,求帮助该怎么搞定
android:id="@+id/lv"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="#ffffff"
android:dividerHeight="5dp"
android:fadingEdge="none"
android:cacheColorHint="#00000000"
android:descendantFocusability="afterDescendants"
>
</ListView>
转自 http://blog.csdn.net/airy_t/article/details/7646958
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/locationtitle"
android:orientation="vertical" >
<include
layout="@layout/title"
android:layout_width="match_parent"
android:layout_height="48dp"
android:id="@+id/title"
/>
<LinearLayout
android:id="@+id/open_statisitics_title"
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="vertical"
/>
<include
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progress"
android:layout_gravity="center_horizontal"
android:visibility="gone"
layout="@layout/progress"/>
<ListView
android:id="@+id/commonListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:fadingEdge="none"
android:cacheColorHint="#00000000"
android:descendantFocusability="afterDescendants"
android:divider="@color/locationtitle"
android:dividerHeight="2dp"
/>
</LinearLayout>
但是这个listveiw的滚动条可以。