Releases: RobertApikyan/SegmentedControl
Added supportedSegmentsCount and reselectionEnabled
-
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
-
reselectionEnabled - true each section width with will be equal to each other, false each section width will be measured depending on its content width
Bug fix
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)
Multi selection
{@link #setSupportedSelectionsCount(int)}
implementation 'com.github.RobertApikyan:SegmentedControl:1.2-alpha'
Resolved Gradle 3.4.0 and white color issues
1.1.3 1.1.1
Resolved Gradle 3.4.0 and white color issues
1.1.2 1.1.1
Added methods to remove OnSegmentClickListener and OnSegmentSelectListener
Merge pull request #17 from Envative/master Added methods to remove OnSegmentClickListener and OnSegmentSelectListener
Updated dependencies
1.0.9 1.0.9
Background Animation & Focused Background
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))
Background Animation
1.0.7.3 1.0.7.3
Background Animation
1.0.7.2 1.0.7.2