Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>if you want that your screen scrollable , you should add a <code>ScrollView</code> as a root layout like this : </p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_heigth="fill_parent" android:layout_width="fill_parent"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Text in Hindi-&gt;" /&gt; &lt;TextView style="@style/PassageStyle" android:id="@+id/hindi" android:textSize="30sp" android:gravity="center" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Corresponding Text in English-&gt;" /&gt; &lt;TextView style="@style/PassageStyle" android:id="@+id/english" android:textSize="30dip" android:gravity="center" /&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;Button android:id="@+id/listen_Button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="60dip" android:text="@string/listen" /&gt; &lt;Button android:id="@+id/slow_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Slow" android:layout_marginLeft="30dip" android:layout_toRightOf="@id/listen_Button" android:layout_alignTop="@id/listen_Button" /&gt; &lt;Button android:id="@+id/voice" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/voice" android:layout_alignLeft="@id/listen_Button" android:layout_below="@id/listen_Button" /&gt; &lt;Button android:id="@+id/next_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Next" android:layout_below="@id/slow_button" android:layout_alignLeft="@id/slow_button" /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre>
 

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