ListView 的高度设为0dp,然后设置 layout_weight="1",通过权重设置高度
解决方案 »
- MyEclipse 10.0 配置Android 开发环境
- android service中能否进行模拟按键?
- Camera类如何拍照并返回byte[]
- 两个问题,标题要长长长长长长长长长长长长长长长长长
- Android新手有没有正在看mars的Android开发视频教程的?xml解析那一节有个不明白的地方?
- andorid raw文件夹下的bin文件如何读取???
- repo sync 卡在Unpacking objects: 90% (50/55)
- 实现Android上录制mp4在iPad和SwfPlayer上播放
- 二台android4.3系统的手机,它们之间蓝牙已经互连了。一台手机上的APK发广播,另一台手机上能收到该广播吗?
- 安卓小白一个,各位大神帮忙看看客户的要求能不能实现的了
- Android 刚刚学习
- 关于android mediaplayer 播放m3u8
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:paddingBottom="8dp" > <ListView
android:id="@+id/companyListView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:divider="@drawable/divier"
android:listSelector="#00000000" />
<!--<include layout="@layout/my_company_item_layout" />-->
</LinearLayout>
好吧,发现了你的 ListView 外面包了一层 LinearLayout, 这一层去掉吧,就 ok 了