Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate bigger screensize with scrollbar
    primarykey
    data
    text
    <p>I have a task, a screen where I want to give the user information in the form of text view of strings and I want to give the user a few choices by including radio buttons. The problem is it will not fit on the screen. Therefore, I would enlarge the screen so I can add more things. But how? I have tested with scroll view and various layouts but I don't get it to work.</p> <p>Below I have my code that I have so far. I have two buttons that should always be at the bottom.</p> <p>I hope someone can help me. :)</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="fill_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".SetupActivity" &gt; &lt;LinearLayout android:id="@+id/linearLayout2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="18dp" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/btnMain" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:onClick="MainActivity" android:paddingLeft="8dp" android:paddingRight="8dp" android:text="@string/btnCalori" /&gt; &lt;Button android:id="@+id/btnSetup" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/btnSetup" /&gt; &lt;/LinearLayout&gt; &lt;TextView android:id="@+id/txtViewSetup" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:text="@string/txtViewSetup" /&gt; &lt;TextView android:id="@+id/txtViewHeader1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/linearLayout2" android:layout_below="@+id/txtViewSetup" android:layout_marginTop="16dp" android:text="@string/txtViewAttribut" /&gt; &lt;RadioButton android:id="@+id/radioBtnFemale" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/txtViewHeader1" android:layout_below="@+id/txtViewHeader1" android:text="@string/strFemale" /&gt; &lt;TextView android:id="@+id/txtViewHeader2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/radioBtnMale" android:layout_below="@+id/radioBtnMale" android:layout_marginTop="14dp" android:text="@string/txtViewWeight" /&gt; &lt;RadioButton android:id="@+id/radioBtnMale" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/radioBtnFemale" android:layout_below="@+id/radioBtnFemale" android:text="@string/strMale" /&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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