ListView显示把底下的控件遮挡了,如何去掉遮挡? ListView 的高度设为0dp,然后设置 layout_weight="1",通过权重设置高度 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以看看关于线性布局的 layout_weight, 这样好一点,设置权重之后,他会将除了设定了高度的控件所占据的所有剩余高度按照权重平均分配,是通常用来做适配的利器 不行的,把ListView的高度设成0dp直接就报错了 <LinearLayout 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 了 我写一个相机拍摄程序,报错空指针,无法或许信息 android 调用 闪光灯问题 两台Android手机可以通过Wifi实现通讯吗? 关于android系统图形解锁 要写一个联机软件 问大家一个html字符串的问题 log信息输出问题 Rexsee的图片集应用工具源码说明 重力感应问题~~~ 请教一下线程为什么没有执行 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 了