当我滚动列表时,ListView 分隔线会像线条一样累积
红色圆圈中显示多行
I附加了一个图像,显示列表视图顶部的多个分隔线,如线条,我不确定它们如何以及为什么出现在我被遗弃的列表视图中。它们往往仅在我滚动列表时出现。我已将位置四舍五入为红色彩色圆圈。您还注意到由于同样的原因,视频缩略图底部模糊。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/white"
>
<Gallery
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_marginTop="10dip"
android:layout_marginBottom="10dip"
android:layout_height="wrap_content"></Gallery>
<ListView
android:id="@id/android:list"
android:layout_below="@id/gallery"
android:layout_width="fill_parent"
android:cacheColorHint="#00000000"
android:paddingBottom ="55dip"
android:divider="@color/listdivider"
android:dividerHeight="1px"
android:layout_alignWithParentIfMissing="true"
android:layout_height="fill_parent"/>
<!-- bottom buttoms -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="50dip"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:weightSum="3">
......
</LinearLayout>
</RelativeLayout>
我的列表视图和下面是 row.xml,我从中填充视图
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/white"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:paddingTop="10dip"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/greyborder_with_solid_white"
>
.......
</LinearLayout>
</LinearLayout>
multiple lines shown in red circle
I have attached an image which shows multiple divider like lines at the top of list view ,i am not sure how and why they appear in my forsaken list view .They tend to appear only when i scroll the list.I have rounded the place by red colored circle.You also note that video thumbnail is blurred at the bottom because of the very same reason.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/white"
>
<Gallery
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_marginTop="10dip"
android:layout_marginBottom="10dip"
android:layout_height="wrap_content"></Gallery>
<ListView
android:id="@id/android:list"
android:layout_below="@id/gallery"
android:layout_width="fill_parent"
android:cacheColorHint="#00000000"
android:paddingBottom ="55dip"
android:divider="@color/listdivider"
android:dividerHeight="1px"
android:layout_alignWithParentIfMissing="true"
android:layout_height="fill_parent"/>
<!-- bottom buttoms -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="50dip"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:weightSum="3">
......
</LinearLayout>
</RelativeLayout>
my list view and below is the row.xml from which i inflate a view
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/white"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:paddingTop="10dip"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/greyborder_with_solid_white"
>
.......
</LinearLayout>
</LinearLayout>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论