本文介绍了在ListView的丑分隔线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感受到三星都和I5500 I5800这样的问题:

I experience this problem on both samsung i5500 and i5800:

貌似分频器的高度为0和1的像素之间,所以它有时四舍五入为0,并且有时为1,如果我滚动它的图像变化。
如果我增加dividerHeight(我试过2像素和2点),那么它就变成正好1像素厚:从0像素变成1像素,并从1px的成为2px的,看起来像一种波

Looks like height of divider is between 0 and 1 pixels, so it sometimes rounds to 0 and sometimes to 1. The picture changes if i scroll it.And if i increase dividerHeight (i tried 2px and 2pt), then it becomes exactly 1 pixel thicker: from 0px it becomes 1px and from 1px it becomes 2px, looking like a kind of wave.

推荐答案

尝试设置机器人:anyDensity =真,民政事务局类似的问题时,未设置/设置为false

try setting android:anyDensity = "true", hab similar problems when not set / set to "false"

<supports-screens
    android:smallScreens="true"
    android:normalScreens = "true"
    android:largeScreens="true"
    android:anyDensity="true"
     />

这篇关于在ListView的丑分隔线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:10