问题描述
我加入我的ListView头视图2不同的看法,但由于某种原因,它创建这些2次之间的20dp空间。我应该如何去除呢?
I'm adding 2 different views in my ListView header view but for some reason it create a 20dp space between those 2 views. How should I remove it?
谢谢!
编辑:2次我加没有任何顶部/底部填充或利润率,我问是否有关于在视图之间空间/分离器的ListView headerView任何特殊的功能。
Edit : The 2 views I add don't have any top/bottom padding or margins, I'm asking if there is any special "feature" in the ListView headerView about space/separator between views.
编辑2:似乎在我的头部视图的视图之间的空间被拴在dividerHeight参数。为什么?我的意思是它应该只为行分隔符可以应用。有没有什么办法可以从我的headerView删除它,保持它作为实际行分隔符? headerDividersEnabled =假没有做任何事情。
Edit 2: it seems that the space between the view in my header view is tied to the dividerHeight parameter. Why? I mean it should only be applied as rows separator. Is there any way to remove it from my headerView and keep it as actual row separator ? headerDividersEnabled=false don't do anything.
推荐答案
尝试设置的android:headerDividersEnabled =FALSE
在ListView
try to set android:headerDividersEnabled="false"
in the ListView
这篇关于标题视图之间的Android的ListView不必要的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!