Android Question Show time picker dialog

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone,
there is a way to show this native-looking dialog to choose a time with B4A?
1623099740488.png

From: https://androidexample365.com/material-time-picker-for-developer/

Or something like:
1623100063522.png



Thanks in advance!
 

Mike1970

Well-Known Member
Licensed User
Longtime User
Dialogs2 preferably as it supersedes Dialogs by providing Async calls for all the dialogs. Neither show that actual dialog though the style is similar.
Thanks, yes i think i will use the TimeDialog2, it's the nearest looking

I changed the TimeDialog2 to accept NULL Bitmap. Replaced icon as Bitmap with icon as Object
with:
B4X:
Public Sub Show(Title As String, Positive As String, Cancel As String, Negative As String, icon As Object) As Int
    Dim ret As Int = cd.Show(Title, Positive, Cancel, Negative, icon) 'ignore
    Return ret
End Sub
 
Upvote 0
Top