Good afternoon all. I'm looking for some clarific...
# compose
m
Good afternoon all. I'm looking for some clarification on the semantic tree of a time picker in compose 1.9. When i set the time picker into 24 hour mode, it looks like hours 0-11 are in the main part of the collection, and 12-23 are in a sub tree. However, hours 11 and 12 share the same traversal index. I'm curious why this is
Copy code
|-Node #161 at (l=0.0, t=116.0, r=256.0, b=372.0)px
         [SelectableGroup]
          |-Node #162 at (l=104.0, t=119.0, r=152.0, b=167.0)px
          | ContentDescription = '[0 hours]'
          | Focused = 'false'
          | Selected = 'false'
          | TraversalIndex = '1.0'
          | Actions = [OnClick, RequestFocus]
          | MergeDescendants = 'true'
          ...
          |-Node #184 at (l=54.0, t=133.0, r=102.0, b=181.0)px
          | ContentDescription = '[11 hours]'
          | Focused = 'false'
          | Selected = 'false'
          | TraversalIndex = '12.0'
          | Actions = [OnClick, RequestFocus]
          | MergeDescendants = 'true'
          |-Node #186 at (l=0.0, t=116.0, r=256.0, b=372.0)px
             |-Node #187 at (l=104.0, t=151.0, r=152.0, b=199.0)px
             | ContentDescription = '[12 hours]'
             | Focused = 'false'
             | Selected = 'false'
             | TraversalIndex = '12.0'
             | Actions = [OnClick, RequestFocus]
             | MergeDescendants = 'true'
This is making it hard to programatically select the value that i'm looking for, as the traversal index for hours 0 - 11 is always 1 more than the hour (ie, 11:00 is 12), but after that, it's the same value (12:00 is also 12).