Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You are using LinearLayout and you have used <code>android:layout_height="fill_parent</code>" to the first element so the first element will fill the whole screen height and there will be no space for the second element (com.projects.timeline2.TimelineView) thats why you are unable to see second element. </p> <p><strong>Use Relative Layout instead</strong>. and mention <code>android:layout_alignParentBottom="true"</code> for second element so that it will always stay to the buttom of the screen and align the first element to the above of second by putting <code>android:layout_above</code> to first element</p> <p><strong>Your XML will be</strong></p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;com.projects.timeline2.TimelineView android:id="@+id/timeline_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" /&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_above="@+id/timeline_view"&gt; &lt;Button android:id="@+id/zoomall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Zoom All" /&gt; &lt;Button android:id="@+id/zoomout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" /&gt; &lt;Button android:id="@+id/zoomin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="+" /&gt; &lt;Spinner android:id="@+id/category_spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:prompt="category_prompt" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
 

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