Android Question [SOLVED] MaterialDateTimePicker is buggy when used with TalkBack

rleiman

Well-Known Member
Licensed User
Hi Everyone,

I love the MaterialDateTimePicker but it's buggy when TalkBack is turned on. When the time picker is called with TalkBack on, it speaks 16:30 for the initial time of 04:30 and doesn't allow the circle selector to be moved easily.

Is there an update to this library or another one that's compatible with TalkBack?
 

rleiman

Well-Known Member
Licensed User
Samsung Time Picker.jpeg
Hi Don,

Is there a native Android time picker I can use if the user is using TalkBack? Maybe something like this default Samsung S8 time picker?
 

DonManfred

Expert
Licensed User
It is Dialogs library (already installed with b4a)

B4X:
Sub Activity_Click
    Dim td As TimeDialog
    td.TimeTicks = DateTime.Now
    td.Is24Hours = True
    Dim sf As Object = td.ShowAsync("", "Select time", "Yes", "", "Cancel", Null, False)
    Wait For (sf) Dialog_Result(Result As Int)
    If Result = DialogResponse.POSITIVE Then
        Log(DateTime.Time(td.TimeTicks))
    End If
End Sub
 
Last edited:

rleiman

Well-Known Member
Licensed User
It is Dialogs library (already installed with b4a)

B4X:
Sub Activity_Click
    Dim td As TimeDialog
    td.TimeTicks = DateTime.Now
    td.Is24Hours = True
    Dim sf As Object = td.ShowAsync("", "Select time", "Yes", "", "Cancel", Null, False)
    Wait For (sf) Dialog_Result(Result As Int)
    If Result = DialogResponse.POSITIVE Then
        Log(DateTime.Time(td.TimeTicks))
    End If
End Sub
Hi Don,

Thanks for the coding sample.

I looked at the library manager and did not find anything listed as Dialogs, TimeDialog or anything with time in it. Where can I download the library that contains TimeDialog?
 

Attachments

Top