Note that there are some explanatory texts on larger screens.

plurals
  1. POResizing issue in android
    text
    copied!<p>I have a layout that is displayed in an activity. When i run it on the clique it takes up the whole screen but when i run it on the droid 3 there is a black bar at the bottom and sides. How do i make it so it takes up the whole screen? I thought android was suppose to do that for you?</p> <p>update:</p> <p>I am just setting the contentView of the Activity like this:</p> <pre><code>activity.setContentView(R.layout.home); </code></pre> <p>Heres the XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/home_screen_lay" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/home_screen"&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Heres my manifest:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp" android:versionCode="1" android:versionName="1.0"&gt; &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt; &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt; &lt;activity android:name=".Viewer" android:label="@string/app_name" android:configChanges="orientation|keyboard|keyboardHidden" android:screenOrientation="landscape"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>Heres a picture:</p> <p><img src="https://i.stack.imgur.com/euekA.png" alt="Problem"></p> <p>you can see where it won't resize.</p> <p>if anyone needs anymore info i can update again.</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