Android Question What's the correct way to resize a B4XFloatTextField

Alessandro71

Well-Known Member
Licensed User
Longtime User
I have to change the height of a B4XFloatTextField following an IME_HeightChanged event
This code works, but the "X" and "checkmark" labels do not move and remain at the original location
B4X:
    Dim difference As Int = OldHeight - NewHeight

    B4X_Message.TextField.Height = B4X_Message.TextField.Height - difference
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
In the next version of XUI Views, Base_Resize will be a public method.

For now you can use this:
B4X:
CallSub3(B4XFloatTextField1, "Base_Resize", B4XFloatTextField1.mBase.Width, B4XFloatTextField1.mBase.Height)

Change the width and height of B4XFloatTextField.mBase. It will resize the other elements.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…