xml - my list view in android seems like a square how to fix that and what is the error? -
i have android application uses php
, mysql
, after fetching database, result displayed in listview handled baseadapter.
the problem rows in list seem square.
can tell me mistake in xml files ???
activity_user_list.xml
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/background_1"> <listview android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </linearlayout>
list_item.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="wrap_content" android:background="@drawable/background_1" android:orientation="vertical" > <textview android:id="@+id/uid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:visibility="gone" /> <textview android:id="@+id/name" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="text view" android:textcolor="#ffffff" android:textsize="17dip" android:textstyle="bold" /> <textview android:id="@+id/txtcreatedate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:layout_alignparenttop="true" android:text="textview" android:textcolor="#ffffff" /> </relativelayout>
try remove background of relative layout.
Comments
Post a Comment