M Mike1970 Well-Known Member Licensed User Longtime User Jun 7, 2021 #1 Hi everyone, there is a way to show this native-looking dialog to choose a time with B4A? From: https://androidexample365.com/material-time-picker-for-developer/ Or something like: Thanks in advance!
Hi everyone, there is a way to show this native-looking dialog to choose a time with B4A? From: https://androidexample365.com/material-time-picker-for-developer/ Or something like: Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2021 #2 Check Dialogs or Dialogs2 libraries. Upvote 0
M Mike1970 Well-Known Member Licensed User Longtime User Jun 8, 2021 #3 Erel said: Check Dialogs or Dialogs2 libraries. Click to expand... Thanks Erel, I will take a look Upvote 0
agraham Expert Licensed User Longtime User Jun 8, 2021 #4 Dialogs2 preferably as it supersedes Dialogs by providing Async calls for all the dialogs. Neither show that actual dialog though the style is similar. Upvote 0
Dialogs2 preferably as it supersedes Dialogs by providing Async calls for all the dialogs. Neither show that actual dialog though the style is similar.
M Mike1970 Well-Known Member Licensed User Longtime User Jun 8, 2021 #5 agraham said: Dialogs2 preferably as it supersedes Dialogs by providing Async calls for all the dialogs. Neither show that actual dialog though the style is similar. Click to expand... 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: Copy 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
agraham said: Dialogs2 preferably as it supersedes Dialogs by providing Async calls for all the dialogs. Neither show that actual dialog though the style is similar. Click to expand... 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: Copy 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
agraham Expert Licensed User Longtime User Jun 8, 2021 #6 Mike1970 said: I changed the TimeDialog2 to accept NULL Bitmap. Click to expand... Good point, I missed that. Unless you just used it as an example don't use Show, use ShowAsyncComplete as modal dialogs can cause problems in recent versions of Android. Upvote 0
Mike1970 said: I changed the TimeDialog2 to accept NULL Bitmap. Click to expand... Good point, I missed that. Unless you just used it as an example don't use Show, use ShowAsyncComplete as modal dialogs can cause problems in recent versions of Android.
M Mike1970 Well-Known Member Licensed User Longtime User Jun 8, 2021 #7 agraham said: ShowAsyncComplete Click to expand... yes i noticed it later, i changed it also there Upvote 0