ListView scrollt nur bis zum Ende des ersten Items

  • 0 Antworten
  • Letztes Antwortdatum
T

theAydinator

Neues Mitglied
0
Hallo liebe Entwickler,

ich habe eine App entwickelt, die bereits auf dem Playstore sich befindet:

Beim Auswählen eines Bittgebetes erscheint im SingleView eine weitere ListView mit mindestens einem Eintrag.
Gehen wir von dem Beispiel des erstens Bittgebetes bei Öffnen der App aus: "Das Gedenken am Morgen und am Abend"

Eigentlich ist die Liste sehr groß, mit über 20 Einträgen, dies kann man beim Öffnen an dem kleinen Scrollbalken rechts oben feststellen, welches nach kurzer Zeit oder beim runterscrollen ausgeblendet wird.
Wie du merkst, ist die Liste groß, es kann aber nur zum Ende des ersten Eintrags gescrollt werden.

Ich weiß nicht genau woran das Problem liegt und wie ich es genau lösen könnte.

Bis jetzt habe ich folgedes ausprobiert:
- alle Attribute der TextViews in meinem Layout entfernen, dann kann ich die ganze Liste durchscrollen, jedoch ohne Style
- in google nach "android set listview height" gegoogelt: einer der Ergebnisse
Habe die Methode in mein Skript übernommen, die Liste ist scrollbar aber auch nicht richtig

Hat es eventuell auch was mit der größe des Display zutun?

single_list_item.xml

Code:
<?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="vertical"
  android:background="@color/white" >
 
   <TextView
    android:id="@+id/bittgebet_content"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="12dp"
    android:paddingLeft="10dp"
    android:paddingRight="10dp"
    android:paddingTop="12dp"
    android:text="Bittgebet"
    android:textColor="@color/list_item_text_color"
    android:textSize="14sp" />
 
   <RelativeLayout
  android:id="@+id/bittgebet_divider1"
    android:layout_width="fill_parent"
    android:layout_height="1dp"
       android:background="@color/app_gray" >
   </RelativeLayout>
     
   <TextView
     android:id="@+id/bittgebet_arabic"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:gravity="right"
  android:lineSpacingExtra="22sp"
     android:paddingTop="12dp"
     android:paddingBottom="0dp"
     android:paddingLeft="10dp"
     android:paddingRight="10dp"
  android:text="Arabic"
  android:textSize="24sp"
     android:textColor="@color/list_item_text_color" />
 
   <RelativeLayout
  android:id="@+id/bittgebet_divider2"
    android:layout_width="fill_parent"
    android:layout_height="1dp"
       android:background="@color/app_gray" >
   </RelativeLayout>
   <TextView
    android:id="@+id/bittgebet_latein"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
     android:paddingTop="12dp"
     android:paddingBottom="12dp"
     android:paddingLeft="10dp"
     android:paddingRight="10dp"
    android:text="Latein"
     android:textColor="@color/list_item_text_color" />
 
   <RelativeLayout
  android:id="@+id/bittgebet_divider3"
    android:layout_width="fill_parent"
    android:layout_height="1dp"
       android:background="@color/app_gray" >
   </RelativeLayout>

   <RelativeLayout
    android:id="@+id/bittgebet_options"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@color/white" >
     
     <TextView
    android:id="@+id/bittgebet_quelle"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="10dp"
    android:textSize="10sp"
    android:textStyle="italic"
    android:layout_alignParentLeft="true"
       android:layout_marginTop="2dp" />

     <LinearLayout
      android:id="@+id/bittgebet_options_ll"
      android:background="@color/white"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
       android:layout_alignParentRight="true"
       android:layout_marginRight="12dp"
      android:orientation="horizontal" >
     
       <Button
        android:id="@+id/bittgebet_teilen_b"
        android:background="@drawable/ic_share"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginRight="7dp"
        android:layout_marginTop="5dp"
        android:layout_marginBottom="4dp" />
 
       <Button
        android:id="@+id/bittgebet_copy_b"
        android:background="@drawable/ic_copy"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginTop="5dp"
        android:layout_marginBottom="4dp" />
     
     </LinearLayout>
   
   </RelativeLayout>
 
   <RelativeLayout
  android:id="@+id/bittgebet_divider"
    android:layout_width="fill_parent"
    android:layout_height="10dp"
       android:background="@color/farbe_0" >
   </RelativeLayout>

</LinearLayout>

Leider komme ich da nun nicht weiter und freue mich über positive Rückmeldung.
Danke schonmal!

Alles Gute
Aydin
 
Zurück
Oben Unten