本文介绍了删除列表视图项目之间的间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图使含在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.
更多推荐
删除列表视图项目之间的间距
发布评论