Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid LinearLayout not stretching full screen
    primarykey
    data
    text
    <p>Hi I'm writing an app for DroidX which is 480x854. I set up my AVD as follows:</p> <p>target:API level 7<br> skin:480x854<br> hw.lcd.density:160 </p> <p>That's it. The emulator loads fine and looks great but my app doesn't fill_parent for some reason. See here:</p> <p><img src="https://i.stack.imgur.com/8oHQZ.png" alt="alt text"></p> <p>It doesn't scale all the way up and I'm not sure why. Here is my XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&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"&gt; &lt;ImageView android:src="@drawable/logo_recruiting" android:background="#FF000000" android:adjustViewBounds="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="30dip" /&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:gravity="center" android:background="@drawable/menu_background"&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginBottom="25dip" android:text="@string/events" android:textColor="#FFFFFFFF" android:textSize="22dip" android:paddingBottom="5dip" android:background="@drawable/events_button" android:onClick="launchEventsMap" android:id="@+id/events_button" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginBottom="25dip" android:text="@string/jobs" android:textColor="#FFFFFFFF" android:textSize="22dip" android:paddingBottom="5dip" android:background="@drawable/jobs_button" android:id="@+id/jobs_button" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginBottom="25dip" android:text="@string/applicants" android:textColor="#FFFFFFFF" android:textSize="22dip" android:paddingBottom="5dip" android:background="@drawable/applicants_button" android:id="@+id/applicants_button" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginBottom="25dip" android:text="@string/resumes" android:textColor="#FFFFFFFF" android:textSize="22dip" android:paddingBottom="5dip" android:background="@drawable/resumes_button" android:id="@+id/resumes_button" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginBottom="25dip" android:text="@string/settings" android:textColor="#FFFFFFFF" android:textSize="22dip" android:paddingBottom="5dip" android:background="@drawable/settings_button" android:id="@+id/settings_button" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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