Liste sans faire défiler sur Android

Je veux mettre listview pour afficher tous les articles sans défilement.

Ci-dessous est ma mise en page:

<LinearLayout
          android:id="@+id/layout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" >

      <TextView
      android:id="@+id/tv1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="Large Text"
      android:textColor="@android:color/black"
      android:textAppearance="?android:attr/textAppearanceLarge" />

      <ListView
        android:id="@+id/list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >
    </ListView>

    <TextView
         android:id="@+id/tv2"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:text="Large Text"
         android:textColor="@android:color/black"
         android:textAppearance="?android:attr/textAppearanceLarge" />

     </LinearLayout>

Le linearlayout est appartenir à une scrollview.

Je tiens donc à définir la liste de tous les articles et de les faire défiler par la société mère de défilement.

Comment puis-je le faire?

  • listview dans un scrollview?
  • C'est mission impossible. Utiliser d'autres alternatives pour afficher les données fixes.
  • ce n'est pas mission impossible, mais surtout, c'est une mauvaise pratique, regarde ma réponse ci-dessous
InformationsquelleAutor brian | 2013-09-04