Skip to content

Releases: davidmigloz/multi-state-switch

2.2.0

17 Jun 11:02
a59bec8
Compare
Choose a tag to compare
  • Able to configure background corner radius (#14) | Thanks @delacrixmorgan
  • Update dependencies

2.1.0

15 Mar 10:16
641592d
Compare
Choose a tag to compare
  • Add getCurrentState() and getCurrentStateIndex() methods
  • Update dependencies
  • Target Android 12 (API 31)
  • Migrate to Java 11
  • Remove buildToolsVersion
  • Remove JCenter

2.0.1

23 Mar 08:56
16a48d5
Compare
Choose a tag to compare
  • Listener called several times when dragging a state #10
  • NestedScrollView not considered as a VerticalScrollingContainer #11

2.0.0

22 Mar 18:24
8a9e2f2
Compare
Choose a tag to compare
  • 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 to replaceStateFromString(stateIndex: Int, stateText: String)

1.4.1

09 Aug 22:28
7a9e3b2
Compare
Choose a tag to compare
  • Prevent crash when OutOfMemoryError is thrown while creating bitmaps #4

1.4.0

17 Dec 10:24
Compare
Choose a tag to compare
  • Fix NPE when replacing state before view being measured #3
  • Add max number of states #1

1.3.1

14 Dec 16:03
Compare
Choose a tag to compare
  • Fix NPE when trying to create state bitmap #2

1.3.0

10 Dec 10:02
Compare
Choose a tag to compare
  • Add extra methods to add states from strings.
  • Fix wrong type for disabled_text_color attribute.

1.2.1

09 Dec 10:56
Compare
Choose a tag to compare
  • Prevent NPE when selecting state if view not initialised.

1.2.0

09 Dec 09:54
Compare
Choose a tag to compare
  • Allow replacing state directly from a string.