Closed draskosaric closed 5 years ago
Hi, I've solved it. When you reference SegmentedControl
instance, like top_matches_segmented
, you should cast it to SegmentedControl<D>
, so the last line should be in my case:
(top_matches_segmented as SegmentedControl<Long>).addSegments( list )
By the way, great control!
Great, if any question fill free to ask
Hi,
this is my segment_item.xml:
These are
SegmentAdapter
andSegmentViewHolder
:In Fragment I tried to set segmentedControl this way:
For last line I get this error:
How should I send those parameters to
addSegments()
method?Thanks!