have some trouble with my listview.
The x-position of the second textview shall be the same in every listviewitem, independent of its content. I tried fill_parent and layout_weight:1 for both textviews, but it didn't help.
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent" android:layout_height="wrap_content"
- android:orientation="horizontal">
- <ImageView android:id="@+id/icon" android:layout_width="25px"
- android:layout_height="25px" />
- <TextView android:id="@+id/name" android:layout_width="wrap_content"
- android:layout_height="wrap_content" android:layout_weight="1" />
- <TextView android:id="@+id/secondname" android:layout_width="wrap_content"
- android:layout_height="wrap_content" android:layout_weight="1" />
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4