Android Question Next / Done keys not shown in landscape orientation

johnaaronrose

Active Member
Licensed User
Longtime User
This thread has been opened as Erel asked me to do so on thread http://www.b4x.com/android/forum/th...with-the-ime-library.14832/page-7#post-223401

In Portrait orientation, the Next/Done keys are not shown for EditText views (but the Return key is) when using the FOrder class: stevel05 states "The FOrder class only changes the order of the EditText view's entry, it should have no other effect on the views.". The coding from the FOrder class to set FOrder involves the use of "Refl.RunMethod2("setImeOptions",IME,"java.lang.int")" where IME=5 for all EditText views requiring 'Next' and IME=6 for the EditText view requiring 'Done'. The only EditText view requiring 'Done' is the last one in the "FieldOrder.Initialize(Array As Object(edtMap, edtAcross, edtUp), False)" command, namely edtUp.

NB this question was also asked in thread http://www.b4x.com/android/forum/threads/class-edittext-field-order.28002/page-2

A small Test project is attached which demonstrates this issue.
 

Attachments

  • Test.zip
    9.7 KB · Views: 207

stevel05

Expert
Licensed User
Longtime User
I get the Next and Finished keys on my Nexus 7 tablet. What device and OS version are you running it on?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I tested it with the stock keyboard on Nexus 4 and the next / done buttons did show.

Note that you can use the Accessibility library to set the EditTexts order.

Eventually it is the soft keyboard implementation that is responsible to show the correct keyboard layout. You can try to switch to a different keyboard. It will probably show the correct buttons.
 
Upvote 0
Top