Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: Why does my view fill the entire screen and not display the buttons at bottom
    text
    copied!<p>How do I stop my view from filling the entire screen and not showing my buttons at the bottom of the screen?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;com.vig.comix.ImageZoomView android:id="@+id/zoomview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" /&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/zoomview" android:layout_alignParentBottom="true"&gt; &lt;ImageButton android:id="@+id/btnPrev" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/ic_media_rew" android:background="@null" android:layout_weight="1" android:width="0px" /&gt; &lt;ImageButton android:id="@+id/btnNext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/ic_media_ff" android:background="@null" android:layout_weight="1" android:width="0px" /&gt; &lt;ImageButton android:id="@+id/btnMove" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/btn_star" android:background="@null" android:layout_weight="1" android:width="0px" /&gt; &lt;ImageButton android:id="@+id/btnDelete" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/ic_menu_delete" android:background="@null" android:layout_weight="1" android:width="0px" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>When I change my code and put the buttons at the top, it works fine. I have tried relative layouts, linear layouts, lauout weights, ...</p> <p>What am I doing wrong?</p>
 

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