删除列表视图项目之间的间距

编程入门 行业动态 更新时间:2024-10-24 21:34:58
本文介绍了删除列表视图项目之间的间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图使含在Android的图像一个ListView。我想要的图像,是正对着列表中的对方,但我似乎无法得到的间距了。

I am trying to make a ListView containing images in Android. I want the images to be right up against each other in the list, but I can't seem to get the spacing away.

下面是我的listview.xml

Here is my listview.xml

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="schemas.android/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@id/android:list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false" android:divider="@android:color/transparent" android:dividerHeight="0.0px" android:padding="0dip" android:layout_margin="0dip" /> </LinearLayout>

和这里是我的listrow.xml

and here is my listrow.xml

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="schemas.android/apk/res/android" android:id="@+id/vw01" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:id="@+id/img01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="0dip" android:layout_margin="0dip"/> </LinearLayout>

您可以看到我这里所说的间距: imgbucket.info/img/kad67sjsg/stackoverflow.png

You can see the spacing I am talking about here: imgbucket.info/img/kad67sjsg/stackoverflow.png

推荐答案

我解决它。

我缩放图片下来,这并获得成功,所以问题甚至没有在code。感谢您的建议。

I scaled the pictures down, which did the trick, so the problem wasn't even in the code. Thanks for your suggestions.

更多推荐

删除列表视图项目之间的间距

本文发布于:2023-11-12 01:07:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580074.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:间距   视图   项目   列表

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!