Android Question B4XDialog Center alignment

yejian

Member
Licensed User
Longtime User
Sub Process_Globals
Private xui As XUI
End Sub
Sub Globals
Private dialog As B4XDialog
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
dialog.Initialize(Activity)
dialog.Title = "Input Dialog Example"
End Sub
Sub btnWhole_Click
Dim input As B4XInputTemplate
input.Initialize
input.lblTitle.Text = "Whole:"
input.ConfigureForNumbers(False, True)
Wait For (dialog.ShowTemplate(input, "OK", "", "CANCEL")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
Dim res As Int = input.Text 'no need to check with IsNumber
dialog.Show($"2 * $1.2{res} = $1.2{2 * res}"$, "OK", "", "")
End If
End Sub
123.jpg
 
Upvote 0
Top