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.

有帮助吗?

解决方案

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"
                 />

其他提示

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>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top