SegmentedControl Versions Save

Android SegmentedControl + multi row support

1.2.0

5 years ago
  1. supportedSegmentsCount - Will enabled multy selection, default value is 1, only one item can be selected at the time, if the selection count is reached the elder selection will be unselected

  2. reselectionEnabled - true each section width with will be equal to each other, false each section width will be measured depending on its content width

1.2.0.1-alpha

5 years ago

implementation 'com.github.RobertApikyan:SegmentedControl:1.2.0.1-alpha'

Fixed

java.util.NoSuchElementException at java.util.LinkedList.getLast(LinkedList.java:257) W/System.err: at segmented_control.widget.custom.android.com.segmentedcontrol.SegmentedControlControllerComponent.getLastSelectedViewHolder(SegmentedControlControllerComponent.java:103) W/System.err: at segmented_control.widget.custom.android.com.segmentedcontrol.SegmentedControlControllerComponent.recreate(SegmentedControlControllerComponent.java:201) W/System.err: at segmented_control.widget.custom.android.com.segmentedcontrol.SegmentedControlControllerComponent.notifyConfigIsChanged(SegmentedControlControllerComponent.java:156) W/System.err: at segmented_control.widget.custom.android.com.segmentedcontrol.SegmentedControl.notifyConfigIsChanged(SegmentedControl.java:620)

1.2-alpha

5 years ago

{@link #setSupportedSelectionsCount(int)}

implementation 'com.github.RobertApikyan:SegmentedControl:1.2-alpha'

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

Two features are added.

  • First one is for background color animation while selection. Animation duration can be changed with selectionAnimationDuration attribute from xml (or programmaticallysetSelectionAnimationDuration(int duration))
  • Second one is for focused background color, which default value is selected background color with 16% of alpha. Default value can be changed with focusedBackgroundColor attribute from xml (or programmatically setFocusedBackgroundColor(int color))

1.0.7.3

5 years ago

1.0.7.2

5 years ago