Note that there are some explanatory texts on larger screens.

plurals
  1. POSoftKeyboard on EditText
    text
    copied!<p>This is my layout:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="Introduzca codigo de comercial" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; &lt;ImageView android:id="@+id/imageView1" android:layout_width="400dp" android:layout_height="190dp" android:layout_above="@+id/textView1" android:layout_centerHorizontal="true" android:layout_marginBottom="60dp" android:src="@drawable/logo" /&gt; &lt;EditText android:id="@+id/textocontrasena" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/textView1" android:layout_marginTop="30dp" android:ems="5" &gt; &lt;/EditText&gt; &lt;Button android:id="@+id/loginlogin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/textocontrasena" android:layout_marginTop="20dp" android:background="@drawable/xmlbotonzarko" android:text="Login" android:textColor="#FFF" android:textSize="19sp" android:textStyle="bold" /&gt; </code></pre> <p></p> <p>My problem is that the softkeyboard is opening automatically when I enter on the Activity. What I want is the softkeyboard to open just when the user clicks on the EditText(not before).</p> <p>Thanks!</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