Android Question B4XDialog, how to increase height?

james_sgp

Active Member
Licensed User
Longtime User
I`m using a standard B4X dialog to display a message to the user, but the message is too long, and being cut off. How do I increase the height of the dialog?

B4X:
    Dim dlg As Object = Dialog.Show("Your email address needs to be verified, before it will be included." & CRLF & "Click 'Verify Email' from the menu the send the verification email to this address, once received click the [Enter Pin] button to the left for final verifiation.","OK","","")
    Dim Content As B4XView = Dialog.Base.GetView(Dialog.Base.NumberOfViews - 1)       
    Content.GetView(0).SetTextAlignment("CENTER", "CENTER")
    Wait For (dlg) Complete (Result As Int)
    If Result = xui.DialogResponse_positive Then
        Return' which consumes the event and doesnt exit
    End If
 

JohnC

Expert
Licensed User
Longtime User
Keep in mind that depending on the user's device screen resolution, size and DPI, the message may still get cut-off no matter what you do.
 
Upvote 0

james_sgp

Active Member
Licensed User
Longtime User
Right now, I`m getting this and the message box isn`t big...Understand your point about screen size, i always confirm my apps across multiple devices before releasing ;)
 

Attachments

  • 1.png
    1.png
    77.9 KB · Views: 194
Upvote 0
Top