Note that there are some explanatory texts on larger screens.

plurals
  1. POEdit Text Focus
    text
    copied!<pre><code>&lt;LinearLayout android:id="@+id/footer" android:layout_width="fill_parent" android:layout_height="90dip" android:layout_alignParentBottom="true" android:background="@layout/footer_repeat" android:orientation="vertical" &gt; &lt;/LinearLayout&gt; &lt;!-- Footer Ends --&gt; &lt;!-- Login Form --&gt; &lt;LinearLayout android:id="@+id/midheader" android:layout_width="500dp" android:layout_height="wrap_content" android:layout_below="@id/header" android:layout_centerHorizontal="true" android:orientation="vertical" android:onClick="layoutClick" android:padding="10dip" &gt; &lt;!-- Email Label --&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/stk_location" android:textColor="#ffffff" android:textSize="20dip" /&gt; &lt;Spinner android:id="@+id/cmbstock" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="15dip" android:layout_marginTop="5dip" android:textColor="#ff0000" android:textSize="50dip" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/RONO" android:textColor="#ffffff" android:textSize="20dip" /&gt; &lt;EditText android:id="@+id/txtRO" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15dip" android:layout_marginTop="5dip" android:background="@drawable/back" android:focusableInTouchMode="true" android:inputType="text" android:paddingLeft="10dp" android:singleLine="true" android:textColor="#000000" android:textSize="35dip" android:width="@dimen/padding_large" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/ITEMNO" android:textColor="#ffffff" android:textSize="20dip" /&gt; &lt;EditText android:id="@+id/txtItemNO" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15dip" android:layout_marginTop="5dip" android:background="@drawable/back" android:clickable="false" android:cursorVisible="false" android:focusable="false" android:focusableInTouchMode="false" android:inputType="text" android:paddingLeft="10dp" android:singleLine="true" android:textColor="#000000" android:textSize="35dip" android:width="@dimen/padding_large" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/ITEMDESC" android:textColor="#ffffff" android:textSize="20dip" /&gt; &lt;EditText android:id="@+id/txtItemDesc" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15dip" android:layout_marginTop="5dip" android:background="@drawable/back" android:clickable="false" android:cursorVisible="false" android:focusable="false" android:focusableInTouchMode="false" android:inputType="text" android:paddingLeft="10dp" android:singleLine="true" android:textColor="#000000" android:textSize="35dip" android:width="@dimen/padding_large" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/BIN" android:textColor="#ffffff" android:textSize="20dip" /&gt; &lt;EditText android:id="@+id/txtBin" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15dip" android:layout_marginTop="5dip" android:background="@drawable/back" android:inputType="text" android:paddingLeft="10dp" android:singleLine="true" android:textColor="#000000" android:textSize="35dip" android:width="@dimen/padding_large" /&gt; &lt;LinearLayout android:id="@+id/botbtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingBottom="5dip" android:paddingLeft="5dip" android:paddingTop="5dip" &gt; &lt;Button android:id="@+id/btnLogin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginRight="5dip" android:layout_marginTop="2dip" android:background="@drawable/bgbutton" android:height="60dip" android:onClick="onBtnClicked" android:text="@string/btnSubmit" android:textColor="#000000" android:textSize="30dip" android:width="240dip" /&gt; &lt;Button android:id="@+id/btnCancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginLeft="5dip" android:background="@drawable/bgbutton" android:height="60dip" android:onClick="onBtnResetClicked" android:text="@string/btnReset" android:textColor="#000000" android:textSize="30dip" android:width="240dip" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>I have four edit text. When I input some value in first edit text and if it does not have the focus a condition is checked. Now if the condition is false then the focus should on First Edit Text but it is in Last One.</p> <p>I want if the condition <code>strRO.equals("12345")</code> fails then focus should be on first edit text. But Currently it in last Edit Text.</p> <p>Please Healp me.</p>
 

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