0

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.

user2372490
  • 81
  • 1
  • 6
  • search so before you ask question, so many question already there http://stackoverflow.com/questions/14100482/how-to-change-the-softkeyboard-enter-button-text-in-android – Iftikar Urrhman Khan May 20 '13 at 07:23
  • i already try that one but till i cant get the next instead of that arrow in keyboard – user2372490 May 20 '13 at 07:52
  • on which device you are testing ? i got same issue on some motorola device like motorola atrix – Iftikar Urrhman Khan May 20 '13 at 07:54
  • now i get the solution i change input type in my phone default android keyboard before i use swipe keyboard thats problem its not changed now i get the output thanks for reply – user2372490 May 20 '13 at 09:48

2 Answers2

2

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"
                 />
Niranj Patel
  • 32,980
  • 10
  • 97
  • 133
0

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>
OMAK
  • 1,031
  • 9
  • 25