Assign max width to layout in landscape like Gmail app compose page
<p>I'm creating compose page just like gmail app, how do I create layout that limits the maxWidth of activity/fragment?</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:padding="7dp"&gt;
                &lt;EditText
                    android:id="@+id/title_text"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/title_hint"
                    android:padding="7dp"
                    android:textSize="17sp"
                    android:inputType="textCapSentences"
                    android:singleLine="true"
                    android:textColor="@android:color/black"/&gt;
                &lt;EditText
                    android:id="@+id/contents"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/contents_hint"
                    android:padding="7dp"
                    android:textSize="17sp"
                    android:inputType="textCapSentences"
                    android:textColor="@android:color/black"/&gt;

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

<p><img src="http://i.stack.imgur.com/Cc46R.jpg" alt="enter image description here"></p>
