Note that there are some explanatory texts on larger screens.

plurals
  1. POCode for EditText box underneath the ScrollView?
    text
    copied!<p>Hi there I want to put my EditText box above my ScrollView so the user can still scroll down but at the same time still see the EditText at a fixed view at the top how do I do that ? / /</p> <p>This is my code</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="match_parent" android:background="#000000" tools:context=".BitActivity" &gt; &lt;EditText android:id="@+id/input" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:ems="10" android:gravity="center" android:hint="Type In Your Value" android:inputType="numberDecimal" android:textColor="#2FB3E3" android:textSize="30px" &gt; &lt;requestFocus /&gt; &lt;/EditText&gt; &lt;ScrollView android:id="@+id/scrollView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" &gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;TextView android:id="@+id/byte1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_below="@+id/input" android:gravity="center" android:text="Please Enter a Value" android:textAppearance="?android:attr/textAppearanceLarge" android:textColor="#FFFF00" android:textSize="40px" /&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&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