Android Question B4XFloatTextField in landscape mode 'feature'

winjiadh

Active Member
Licensed User
Longtime User
Use EditText,we can use the code
Dim jo As JavaObject jo = edtSource jo.RunMethod("setImeOptions", Array(33554432)) ' IME_FLAG_NO_FULLSCREEN
use the B4XFloatTextField replaced the EditText
when an activity is in landscape mode tapping an EditText control replaces the B4XFloatTextField by some sort of input control that occupies the entire space above the keyboard with a 'Done' button to the right.
 

Attachments

  • 111.jpg
    111.jpg
    203.1 KB · Views: 123
  • 222.jpg
    222.jpg
    389.3 KB · Views: 113

winjiadh

Active Member
Licensed User
Longtime User
I found that your code is as follows

[CODE lang="b4x" highlight="

Private Sub SetEditTextNoUI(ET As EditText)
Dim jo As JavaObject = ET
jo.RunMethod("setImeOptions", Array As Object(IME_FLAG_NO_FULLSCREEN))
End Sub

"][/CODE]

In B4XFloatTextField if there are other way
 
Last edited:
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I found that your code is as follows

[CODE lang="b4x" highlight="

Private Sub SetEditTextNoUI(ET As EditText)
Dim jo As JavaObject = ET
jo.RunMethod("setImeOptions", Array As Object(IME_FLAG_NO_FULLSCREEN))
End Sub

"][/CODE]

In B4XFloatTextField if there are other way
Please, try:
B4X:
SetEditTextNoUI(B4XFloatTextField1.TextField.As(EditText))

EDIT: Just tried and it works fine :)
 
Last edited:
Upvote 1

winjiadh

Active Member
Licensed User
Longtime User
There seems to be another problem I can't solve
When I checked the B4XFloatTextField Properties "Password Field"
In the way you say
When entering characters, the input method keyboard is only half。
When I click the eye icon next to it, the input method keyboard fills the whole screen again
passeye.jpg

Is there any way to solve it?
thanks again
 
Upvote 0
Top