Liste: nicht alle Einträge werden vollständig angezeigt

R

RED-BARON

Fortgeschrittenes Mitglied
19
Hallo Forum,

( Tablet 3.2 )

die Listeneinträge sind nicht immer identisch hoch ( 2 oder 3 Zeilen )

die Liste ist in der Höhe auf "fill_parent" eingestellt.

Das Problem tritt nur auf wenn wenige Einträge und nicht alle Zeilen
gleiche Höhe haben.

Die Liste hört dann z.B. in der Mitte des Bildschirmes auf ( weil wenig Einträge ) und die letzte Zeile ist nur zur Hälfte zu sehen.

1. Zeile komplett, die 2 Zeile wird schon etwas "ausgeblendet", die
3. Zeile fehlt und wird erst beim Scrollen sichtbar.

Auf deutsch - die Liste ist einfach etwas zu kurz, obwohl "fill_parent"
und alle Einträge sichtbar dargestellt werden müssten, vom Platz her.

Ich erkenne das so, dass die Höhe der Liste falsch berechnet wird.

Das Layout eines Listen-Eintrages ist etwas kompliziert ...

textHinweis wird manchmal ausgeblendet, daher die unterschiedlichen Höhen !


<
RelativeLayout

xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">



<!-- section 1 -->



<!-- line 1 -->
<TextView
style="@style/ListTextColor"
android:id="@+id/textSkz"
android:textSize="@dimen/textSizeSmall"
android:layout_marginLeft="@dimen/listdetailsmarginleft"
android:gravity="left"
android:layout_width="80dip"
android:layout_height="wrap_content"/>



<TextView
android:id="@+id/textStatusSoll"
android:layout_toRightOf="@+id/textSkz"
style="@style/ListTextColor"
android:textSize="@dimen/textSizeSmall"
android:layout_width="150dip"
android:layout_height="wrap_content"/>



<TextView
android:id="@+id/textHdz"
android:layout_toRightOf="@+id/textStatusSoll"
style="@style/ListTextColor"
android:textSize="@dimen/textSizeSmall"
android:layout_marginLeft="@dimen/listdetailsmarginleft"
android:gravity="right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>



<!-- line 2 -->
<TextView
android:id="@+id/textName"
android:layout_below="@+id/textSkz"
style="@style/ListTextColor"
android:textSize="@dimen/textSizeMedium"
android:layout_marginLeft="@dimen/listdetailsmarginleft"
android:layout_marginRight="50dip"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>



<!-- line 3 -->
<TextView
android:id="@+id/textHinweis"
android:layout_below="@+id/textName"
style="@style/ListTextColor"
android:textSize="@dimen/textSizeMedium"
android:layout_marginLeft="@dimen/listdetailsmarginleft"
android:layout_marginRight="125dip"
android:layout_marginBottom="20dip"
android:paddingRight="10dip"
android:paddingLeft="10dip"
android:background="@color/yellow_light"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>



<!-- section 2 -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/listdetailsmarginleft"
android:layout_centerVertical="true"
android:orientation="horizontal">



<TextView
style="@style/ListTextColor"
android:id="@+id/textStatusIst"
android:textSize="@dimen/textSizeMedium"
android:textStyle="bold"
android:layout_alignParentRight="true"
android:layout_gravity="center_vertical"
android:layout_marginRight="20dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>



<ImageView
android:layout_gravity="center_vertical"
android:id="@+id/radioMarker"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="0dip"
android:src="@drawable/btn_radio_off"/>



</LinearLayout>



</


RelativeLayout>



Vielen Dank für Hinweise !
 

Ähnliche Themen

SaniMatthias
Antworten
19
Aufrufe
871
swa00
swa00
Jansenwilson
Antworten
1
Aufrufe
675
Mazuch
Mazuch
A
Antworten
10
Aufrufe
1.005
swa00
swa00
Zurück
Oben Unten