android - Remove unnessecary Spaces in ListView of Images -
i rendering listview
consists of image. wish rid plane grey color. how rid of ? seems, weird , rather easy 1 unable figure out solution.
list_view.xml
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#efefef" android:orientation="vertical" > <listview android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:cachecolorhint="#00000000" android:divider="@android:color/black" android:dividerheight="1.0sp" android:textcolor="#000000" /> </relativelayout>
image.xml
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#a4a4a4" android:orientation="horizontal" > <imageview android:id="@+id/imagestatus" android:layout_alignparenttop="true" android:layout_width="match_parent" android:layout_height="wrap_content" android:adjustviewbounds="true" /> </linearlayout>
<imageview android:id="@+id/imagestatus" android:layout_alignparenttop="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaletype="fitxy" <!-- --> android:adjustviewbounds="true" />
you can set minimum width & height using >>>
android:minheight="120dp" android:minwidth="100dp"
Comments
Post a Comment