afollestad MaterialDialogs reborn

DonManfred

Expert
Licensed User
Longtime User
without BUILD i encountered Problems when using the Progress-Dialog.
 

DonManfred

Expert
Licensed User
Longtime User

DonManfred

Expert
Licensed User
Longtime User

Not sure that i understand the question....

You can use itemsCallbackMultiChoice

B4X:
If dialog.isShowing Then
        dialog.hide
    End If
    Dim items(3) As String
    items(0) = "Hallo"
    items(1) = "B4X"
    items(2) = "World!"
    dialog.Initialize("Dialog")
    dialog.tag = CreateMap("action":"MultiSelect")
   
    dialog.positiveText("Yo").negativeText("Oh nooo").neutralText("I dont care").positiveColor(Colors.Green).neutralColor(Colors.Magenta).negativeColor(Colors.Red).content("test").contentLineSpacing(1).items(Array As String("Apple ", "Orange", "Grapes","Pineapple","Mango" )).itemColor(Colors.Blue).itemsCallbackMultiChoice(Array As Int(1,2)).alwaysCallMultiChoiceCallback.build.show
End Sub
 

wimpie3

Well-Known Member
Licensed User
Longtime User
@corwin42 I have dialog.autoDismiss(False) in my code, but when I click on the OK or CANCEL button the dialog is dismissed (shouldn't be the case). A bug?
 
Last edited:

Metalika

Member
hi @DonManfred

how i can chenge the height and width custom dialog ???
this lib dont have any method for this

i try to chenge hight and width with add panel but this dont work too.
its my simple code :

B4X:
    dialog.Initialize("Dialog")
    dialog.positiveText("Cool!")
    dialog.negativeText("Oh nooo")
    dialog.neutralText("I dont care")
    dialog.positiveColor(Colors.Green)
    dialog.neutralColor(Colors.Magenta)
    dialog.negativeColor(Colors.Red)
    dialog.title("DonManfred presents")
    
    dialog.dividerColor(Colors.red)
    dialog.autoDismiss(False)
    dialog.buttonRippleColor(Colors.Gray)
    Dim ppp As Panel
    ppp.Initialize("")
    ppp.LoadLayout("Layout1")
    ppp.Color=Colors.Green
    ppp.Height=10%y
    dialog.customView(ppp,True)

    dialog.build.show
 
Top