Note that there are some explanatory texts on larger screens.

plurals
  1. POListView and ScrollView not showing correctly
    primarykey
    data
    text
    <p>I'm having problems with a layout in wich I have two buttons (working fine) and a <strong>listview wrapped by a scrollview</strong>. </p> <p>The problem is that the list is shown but I can only see one element, I can scroll but the rest of the screen is wasted and I want the listview to be displayed as big as it can be.</p> <p>Here is my layout XML:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".Enviar" &gt; &lt;LinearLayout android:id="@+id/layhoriz" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;Button android:id="@+id/b_arriba" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Arriba" /&gt; &lt;Button android:id="@+id/b_salir_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Salir" /&gt; &lt;/LinearLayout&gt; &lt;ScrollView android:id="@+id/scrollView1" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;ListView android:id="@+id/ListView1" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;/ListView&gt; &lt;/ScrollView&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload