Android: imeOption & imeActionLable does not change keyboard Enter label using Next

I tried to understand this, but did not have time. It seems very simple, but I don’t know why the following two xml tags ( android:imeOptions="actionNext" android:imeActionLabel="Next" ) do not work in the code.

 <EditText android:id="@+id/stcnTxt" style="@style/DetailFormTextField" android:singleLine="true" android:imeOptions="actionNext" android:imeActionLabel="Next"> </EditText> 

Enter the key according to the upper code keypad. The label should be replaced with the following label. But the enter key on the keyboard is still displayed. I use HTC wildfire for output.

+6
source share
3 answers

I had some kind of similar problem, but android:inputType="text" solved my problem

+12
source

Worked well for me when I made a short message.

 <EditText android:id="@+id/stcnTxt" android:singleLine="true" android:imeOptions="actionNext" android:imeActionLabel="Next" android:layout_height="150px" android:layout_width="fill_parent" android:inputType="textShortMessage"/> 
0
source

For me, this works on HTC Evo, but not on the Galaxy S3. I have this code:

 <EditText android:id="@+id/decimalFarenheit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/decimalCelsius" android:ems="10" android:inputType="number|numberSigned|numberDecimal" android:imeOptions="actionSend" android:imeActionLabel="@string/calculate" > </EditText> 

on my Galaxy s3, the text for the submit button is “Submit”. But on HTC Evo, the text for the submit button is “Calculate.”

0
source

Source: https://habr.com/ru/post/906219/


All Articles