Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid List doesn't slide down
    primarykey
    data
    text
    <p>I'm at the very beginning of Android.</p> <p>While I've been playing around with the views, I've encountered this problem, googled a little bit but couldn't find anything. I've listed some rows(textviews) horizontally.(See the picture). My problem is I cannot slide down the list to see the elements below. For slide to work, should I add some library/function/xml value?</p> <p>What am i missing?</p> <p>This is part of my java code (i take the data from the db and put it on screen with a while loop)</p> <pre><code>LinearLayout l = (LinearLayout)findViewById(R.id.myList); TextView t = new TextView( getApplicationContext() ); t.setText("some text"); t.setClickable(true); l.addView(t, 250, 30); </code></pre> <p>and my xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Add" /&gt; &lt;EditText android:id="@+id/title" android:singleLine="true" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;EditText android:id="@+id/body" android:singleLine="true" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/myList" &gt; &lt;Button android:id="@+id/ok" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Ok -----------&gt; " /&gt; &lt;Button android:id="@+id/delete" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Delete All" /&gt; &lt;/LinearLayout&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/list" /&gt; &lt;/LinearLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/bhyyS.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    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