Wish Wrap updated MBProgressHUD (iHUD) for multiline messages

jo1234

Active Member
Licensed User
Longtime User
Hi,

Toastmessage in B4A supports multiline messages, however iHUD v1.00 only supports single line messages.

Could you please wrap the updated version below to allow multiline messages?
https://github.com/jdg/MBProgressHUD/issues/329

That version also allows to select the position of the message. Nice.

Thanks a lot,
Johannes
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

you can also use the following code:

B4X:
Private HD As HUD

Sub ShowHud
    HD.ToastMessageShow("Multi-" & CRLF & "line ...", True)
    SetHudMultiline
End Sub

Sub SetHudMultiline
    Dim no1 As NativeObject = App.KeyController
    no1 = no1.GetField("view")
    Dim no2 As NativeObject
    Dim hud As NativeObject = no2.Initialize("MMBProgressHUD").RunMethod("HUDForView:", Array(no1))
    If hud.IsInitialized Then
        Dim L As Label = hud.GetField("label")
        L.Multiline = True
    End If
End Sub

Jan
 
Top