Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make a LinearLayout scrollable
    primarykey
    data
    text
    <p>After I start the activity I am unable to scroll down to see other buttons and options in the xml defined below. </p> <p>Does anyone know how to make this scrollable?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="fill_parent" android:background="#000044" android:isScrollContainer="true" android:orientation="vertical"&gt; &lt;TextView android:id="@+id/title" android:text="@string/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/&gt; &lt;EditText android:id="@+id/editTitle" android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"/&gt; &lt;TextView android:id="@+id/description" android:text="@string/description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/&gt; &lt;EditText android:id="@+id/editDescription" android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"/&gt; &lt;TextView android:id="@+id/location" android:text="@string/location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/&gt; &lt;EditText android:id="@+id/editLocation" android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"/&gt; &lt;TextView android:id="@+id/startTime" android:text="@string/startTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/&gt; &lt;DatePicker android:id="@+id/DatePicker01" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;TimePicker android:id="@+id/TimePicker01" android:layout_width="wrap_content" android:layout_height="wrap_content"/&gt; &lt;TextView android:id="@+id/endTime" android:text="@string/endTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff"/&gt; &lt;DatePicker android:id="@+id/DatePicker02" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;TimePicker android:id="@+id/TimePicker02" android:layout_width="wrap_content" android:layout_height="wrap_content"/&gt; &lt;Button android:id="@+id/buttonCreate" android:text="Create" android:layout_width="wrap_content" android:layout_height="wrap_content"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>My class code is</p> <pre><code>package com.example.blah; import android.app.Activity; import android.os.Bundle; public class example extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } </code></pre> <p>The output is <a href="http://img265.imageshack.us/img265/7601/linearlayout.jpg" rel="noreferrer">http://img265.imageshack.us/img265/7601/linearlayout.jpg</a></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.
    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