Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Landscape mode cutting off my buttons on top
    primarykey
    data
    text
    <p>I am having an issue with my application. I recently added ScrollView as the Parent of LinearLayout. When flip my device orientation to Landscape, my buttons get cut off on the top. I can see the last button just fine with extra "black space" at the end of it when I scroll down, only the top gets cut off. I looked around and I am not sure why this is happening. Here are some pictures so you can understand how it looks.</p> <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:gravity="center_vertical"&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center"&gt; &lt;Button android:id="@+id/BeefButton" android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_gravity="center" android:background="@drawable/backgroundlayer" android:drawableLeft="@drawable/beefbutton" android:text="Beef" android:textColor="#FFFFFF" android:textSize="32px" android:textColorHighlight="#FF6600"/&gt; &lt;Button android:id="@+id/PoultryButton" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_width="match_parent" android:background="@drawable/backgroundlayer" android:drawableLeft="@drawable/chickenbutton" android:text="Poultry" android:textColor="#FFFFFF" android:textSize="32px" android:textColorHighlight="#FF6600"/&gt; &lt;Button android:id="@+id/FishButton" android:layout_height="wrap_content" android:background="@drawable/backgroundlayer" android:drawableLeft="@drawable/fishbutton" android:text="Fish" android:textColor="#FFFFFF" android:textSize="32px" android:textColorHighlight="#FF6600" android:layout_gravity="center" android:layout_width="match_parent"/&gt; &lt;Button android:id="@+id/PorkButton" android:layout_height="wrap_content" android:background="@drawable/backgroundlayer" android:drawableLeft="@drawable/porkbutton" android:text="Pork" android:textColor="#FFFFFF" android:textSize="32px" android:textColorHighlight="#FF6600" android:layout_gravity="center" android:layout_width="match_parent"/&gt; &lt;Button android:id="@+id/VegetablesButton" android:layout_height="wrap_content" android:background="@drawable/backgroundlayer" android:drawableLeft="@drawable/vegetablesbutton" android:text="Vegetables" android:textColor="#FFFFFF" android:textSize="32px" android:textColorHighlight="#FF6600" android:layout_gravity="center" android:layout_width="match_parent"/&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre>
    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