Csaba Szugyiczki
12/14/2022, 2:51 PMBryan Herbst
12/14/2022, 3:01 PMModifier.clearAndSetSemantics()
to get rid of the progress semantics, and then maybe use a contentDescription
with “slow”, “medium”, or “fast” in combination with a liveRegion
to ensure that you read out updates as the slider movesCsaba Szugyiczki
12/14/2022, 3:03 PMCsaba Szugyiczki
12/14/2022, 3:05 PMBryan Herbst
12/14/2022, 3:07 PMCsaba Szugyiczki
12/14/2022, 3:08 PMCsaba Szugyiczki
12/14/2022, 3:11 PMsetProgress
SemanticsAction
but that did not seem to make any difference for some strange reason https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]csProperties.kt;l=983?q=SemanticsPropertyReceiver.setProgressBryan Herbst
12/14/2022, 3:16 PMAndroidComposeViewAccessibilityDelegateCompat
(which is the bridge between Compose and the accessibility framework) has the bits that wire up the scroll left/scroll right actions to incrementing/decrementing the slider: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]idcomposeviewac&ss=androidx%2Fplatform%2Fframeworks%2FsupportBryan Herbst
12/14/2022, 3:16 PMscrollBy
semantics?Csaba Szugyiczki
12/14/2022, 3:19 PMscrollBy
only kick in, if the user is scrolling directly on the “View”? Meaning the pointer input has to be within the bounds of my ComposableBryan Herbst
12/14/2022, 3:23 PMhorizontalScrollAxisRange
), but overall it does feel like maybe there’s a missing API here.Csaba Szugyiczki
12/14/2022, 3:23 PMCsaba Szugyiczki
12/14/2022, 3:31 PMstateDescription
property can be used to override the percent value the Slider reads
https://github.com/Skyscanner/backpack-android/blob/ef36b52dfece0947b08c480151d678[…]main/kotlin/net/skyscanner/backpack/compose/nudger/BpkNudger.ktCsaba Szugyiczki
12/14/2022, 3:38 PMBryan Herbst
12/14/2022, 3:45 PMc wei
02/08/2024, 4:19 PMc wei
02/08/2024, 4:20 PMc wei
02/08/2024, 4:23 PMCsaba Szugyiczki
02/08/2024, 4:33 PMc wei
02/08/2024, 4:34 PMc wei
02/08/2024, 4:35 PMc wei
02/08/2024, 4:46 PMc wei
02/08/2024, 4:47 PMBryan Herbst
02/08/2024, 8:20 PMclearAndSetSemantics{}
to remove those semantics.
Just my opinion - if I were in need of TalkBack to use an app and something other than my direct actions were to change the state of the slider I would definitely want a TalkBack announcement telling me it changed.c wei
02/08/2024, 8:26 PM