How to set the inflated view full screen or fill_parent?
<p>This XML is inflated from my main activity, I would like to know if how do I set the inflated view as full screen or fill_parent as shown in the XML, because when I test my app it will give me a half size screen shown on the right side.</p>

<p><a href="https://i.stack.imgur.com/usBWT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/usBWT.png" alt="enter image description here"></a></p>

<p>The first pic is from my pc, and the second is from my tab.</p>

<p>Here's my XML Code:</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"
    android:gravity="center_horizontal|center_vertical"
    android:background="@drawable/splash"
    android:paddingBottom="@dimen/_16sdp"
    android:paddingLeft="@dimen/_16sdp"
    android:paddingRight="@dimen/_16sdp"
    android:paddingTop="@dimen/_16sdp" &gt;

    &lt;Button
        android:id="@+id/g1btn1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/g1tv2"
        android:layout_centerHorizontal="true"
        android:text="BUTTON"
        android:textSize="@dimen/_70sdp" /&gt;

    &lt;TextView
        android:id="@+id/g1tv2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:text="&amp;quot;THIS&amp;quot;"
        android:textSize="@dimen/_70sdp" /&gt;

    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/g1tv2"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="66dp"
        android:text="TAP"
        android:textSize="@dimen/_70sdp" /&gt;

    &lt;TextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:text="GAME 1"
        android:textSize="@dimen/_50sdp" /&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>Here's my MainActivity.Java</p>

<pre><code>public class MainActivity extends Activity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                                        WindowManager.LayoutParams.FLAG_FULLSCREEN);   
        setContentView(R.layout.activity_main); 

        View game1 = getLayoutInflater().inflate(R.layout.game1, null);
        RelativeLayout item = (RelativeLayout)findViewById(R.id.Main);
        item.addView(game1);
}
</code></pre>