Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try this layout</p> <pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="match_parent" &gt; &lt;Button android:id="@+id/get_address_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:onClick="getAddress" android:text="getAddress" /&gt; &lt;LinearLayout android:id="@+id/text_parent" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/get_address_button" &gt; &lt;TextView android:id="@+id/label_address" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginTop="21dp" android:text="Address this is line 1 this is line 2 this is line 3 " android:textSize="12sp" /&gt; &lt;TextView android:id="@+id/address" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBaseline="@+id/label_address" android:layout_marginLeft="10dp" android:layout_toRightOf="@+id/label_address" android:textIsSelectable="true" android:textSize="20sp" /&gt; &lt;/LinearLayout&gt; &lt;ProgressBar android:id="@+id/address_progress" style="@android:style/Widget.ProgressBar.Large" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/label_address" android:layout_centerHorizontal="true" android:indeterminate="true" android:visibility="gone" /&gt; &lt;TextView android:id="@+id/label_distance" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_below="@+id/get_address_button" android:layout_marginTop="21dp" android:text="Distance" android:textSize="12sp" /&gt; &lt;Spinner android:id="@+id/location_spinner" android:layout_width="120dp" android:layout_height="60dp" android:layout_below="@+id/text_parent" android:layout_centerHorizontal="true" android:layout_marginTop="20dp" /&gt; &lt;/RelativeLayout&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