- Able to configure background corner radius (#14) | Thanks @delacrixmorgan
- Update dependencies
- Add getCurrentState() and getCurrentStateIndex() methods
- Update dependencies
- Target Android 12 (API 31)
- Migrate to Java 11
- Remove buildToolsVersion
- Remove JCenter
- Listener called several times when dragging a state #10
- NestedScrollView not considered as a VerticalScrollingContainer #11
- Support remove states programmatically #6
- Support nested scroll when used inside a RecyclerView or ViewPager #8
- Migrate to Kotlin #9
- Update dependencies
Breaking change:
- Minimum API requirements: API >= 21 (Android 5.0 - LOLLIPOP)
replaceState(int stateIndex, String stateText)
renamed toreplaceStateFromString(stateIndex: Int, stateText: String)
- Prevent crash when OutOfMemoryError is thrown while creating bitmaps #4
- Fix NPE when replacing state before view being measured #3
- Add max number of states #1
- Fix NPE when trying to create state bitmap #2
- Add extra methods to add states from strings.
- Fix wrong type for disabled_text_color attribute.
- Prevent NPE when selecting state if view not initialised.
- Allow replacing state directly from a string.
- Allow replacing state without styles.
- Allow adding state directly from a string.
- Allow not to notify listeners when selecting state.
- Initial release.