B4A Library afollestad material-dialogs

Ian Garton

Member
Licensed User
Longtime User
Thanks for this great work. Have you any plans to implement support for custom views?
Also wondering if/how the existing input dialog can be used for password entry?
 

mshafiee110

Active Member
Licensed User
Longtime User
@tchart
Thanks a lot,for this lib.

Please add another view (color picker,custom view,... )of material-dialog to your lib.tnx
 
Last edited:

Scantech

Well-Known Member
Licensed User
Longtime User
Hey, thanks for this nice library. It appears to be non modal just what I am looking for. However, can we make an option to pass the value to a variable like this

B4X:
dim Ret as string
Ret = ld1.Show("Social Networks",items,"","Cancel")

or

Ret = ld1.ValueSelected
Index or String value passed to Ret will be helpful. I prefer index for my situation.

I am trying to replace all of my inputlist and dialogs with this wonderful library, but using the event procedure can complicate things in my source. I will donate if you can add this option.
 

joneden

Active Member
Licensed User
Longtime User
Hi Trevor,

This lib looks great, thank you.

I am seeing some odd colours but haven't played with the themeing yet so hope a couple of tweaks will have it matching my theme, first job tomorrow morning.

Couple of questions for you.
1) I see on the github that Aidan has his version up to 0.8.5.0 now and that that includes things like custom dialogs. Are you going to update the lib to atch his one at somepoint? If not any chance of postinng the source of it so far so that i can have a try at getting it working?
2) Has anyone managed to get a decent date dialog and time dialog working based off this lib? The original dialog lib fails to work properly with material colours and there doesn't appear to be any other decent material date or time dialog libs. I have seen a few on github but haven't tried making a wrapper from scratch yet!

Cheers

Jon
 

BarryW

Active Member
Licensed User
Longtime User
This lib is very nice...

Is it possible to do custom dialog with this library?

Tnx...
 

tchart

Well-Known Member
Licensed User
Longtime User
No not yet. The latest version has a dependency on another library so I am unable to compile it at the moment.
 

bermooda

Member
Licensed User
Longtime User
thank you for your great job.
i have a strange problem with input dialog. in your sample project input dialog is ok but in my own project it shows input dialog without edit text field and i have no clue why?!
there is no error message and i use sdk and support lib 23.
also i have not problem with other dialogs.
can you suggest any fix?
 

BarryW

Active Member
Licensed User
Longtime User
how to set the progressdialog as cancellable touch outside... Tnx
 

Prosg

Active Member
Licensed User
Longtime User

Hello i had the same problem that you describe and i fix it this way :

In reality their is not bug... it's only if the event is not on the activity it's bugging

Example :
I had this to my activity

B4X:
sd1.Initialize("sd1")

    Dim items As List
    items.Initialize
    items.Add("Twitter")
    items.Add("Google+")
    items.Add("Instagram")
    items.Add("Facebook")

    sd1.Show("Social Networks",items,-1,"OK","Cancel")

It's bugging their is no radiobutton in the dialogs

if i add the event of the activity it's working
B4X:
Sub....
sd1.Initialize("sd1")

    Dim items As List
    items.Initialize
    items.Add("Twitter")
    items.Add("Google+")
    items.Add("Instagram")
    items.Add("Facebook")

    sd1.Show("Social Networks",items,-1,"OK","Cancel")

End sub


Sub sd1_SingleChoice(Index As Int,Text As String)
    ToastMessageShow(Index & " : " & Text,False)
End Sub


Hope your understand my explanation

Regards
 

bermooda

Member
Licensed User
Longtime User

Thank you for answering my question.
i have tried this but there was no difference on the result. i think this occurs when i have multiple dialogs of same type (Ex. 2 inputDialog) and separate event handler for each one of them. because if i use just one input dialog in my app every thing works fine.
 

tchart

Well-Known Member
Licensed User
Longtime User
I have compiled the latest version but have not yet tested it or wrapped any of the new features. Hopefully I will get time to do that soon.
 

wimpie3

Well-Known Member
Licensed User
Longtime User
Thanks, this does indeed resolve the problem. However, now I get this:
B4X:
java.lang.NoClassDefFoundError: android.support.graphics.drawable.VectorDrawableCompat
I've noticed this is (also!) a known bug, referenced here: https://github.com/afollestad/material-dialogs/issues/1013

However, the original library has not been updated yet, so I'm afraid there is not much you can do at the moment. A fix is listed in the issue details but is not yet checked in on github.
 

tchart

Well-Known Member
Licensed User
Longtime User
Ok thanks for letting me know. I'll keep an eye out for the next update.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…