Pregunta

In my application login screen i need to change the default keyboard last next arrow instead of some text like next,done like this is it possible for android? if anyone know can you answer this question.

¿Fue útil?

Solución

You can use android:imeActionLabel="YourText" or android:imeOptions="actionNext" property of EditText

below is sample code

           <EditText
                android:id="@+id/edit_user"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp"
                android:hint="@string/userprofile_email"
                android:inputType="textEmailAddress"
                android:imeActionLabel="@string/next"
                android:imeOptions="actionNext"
                 />

Otros consejos

use android:imeOptions="actionGo" with in your EditText view then click on this edittext view keyboard will appear with Go button

   <RelativeLayout
        android:id="@+id/relative"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/header"
        android:background="@drawable/rounded_corner_bg" >

        <EditText
            android:id="@+id/userName"
            android:layout_width="wrap_content"
            android:layout_height="60dp"
            android:layout_marginLeft="20dp"
            android:background="@android:color/transparent"
            android:ems="10"
            android:hint="@string/Username"
            android:inputType="textEmailAddress" >

            <requestFocus />
        </EditText>

        <View
            android:id="@+id/lineView"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_below="@+id/userName"
            android:background="@color/lineColor" />

        <EditText
            android:id="@+id/password"
            android:layout_width="wrap_content"
            android:layout_height="60dp"
            android:layout_alignLeft="@+id/userName"
            android:layout_below="@+id/lineView"
            android:background="@android:color/transparent"
            android:ems="10"
            android:hint="@string/Password"
            android:imeOptions="actionGo"
            android:inputType="textPassword"
            android:singleLine="true" />
    </RelativeLayout>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top