Skip to content

Releases: skydoves/PowerSpinner

1.1.7

09 Dec 16:06
eae53d6
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.7! 馃帀

What's New?

  • In Java IconSpinnerItem can be created just with 9 parameters (#48)
  • Now the lifecycleOwner will be set automatically while initialization for preventing memory leaks.

1.1.6

29 Nov 07:45
944fdd9
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.6! 馃帀

What's New?

  • Removed overScrollMode in the body layout. (0e147d1)
  • Added more options on IconSpinnerItem for customizing related to text color, typeface, icon.
  val text: CharSequence,
  val icon: Drawable? = null,
  @DrawableRes val iconRes: Int? = null,
  @Px val iconPadding: Int? = null,
  val iconGravity: Int = Gravity.START,
  val typeface: Int? = null,
  val gravity: Int? = null,
  val textSize: Float? = null,
  @ColorInt val textColor: Int? = null,
  • Changed OnSpinnerItemSelectedListener for notifying the previous selected item and its index.
setOnSpinnerItemSelectedListener<String> { oldIndex, oldItem, newIndex, newText ->
   toast("$text selected!")
}

Here is the Java way.

powerSpinnerView.setOnSpinnerItemSelectedListener(new OnSpinnerItemSelectedListener<String>() {
  @Override public void onItemSelected(int oldIndex, @Nullable String oldItem, int newIndex, String newItem) {
    toast(item + " selected!");
  }
});
  • Changed preference dependency to preference-ktx dependency internally. (3ebc58f)
  • Refactored DefaultSpinnerAdapter and IconSpinnerAdapter internally.
  • Updated Kotlin version to 1.4.20 and Gradle/Wrapper versions.

1.1.5

13 Oct 11:36
535818c
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.5! 馃帀

What's New?

  • Added getSpinnerViewBody functionalitiy. (#41, #32)
  • Fixed popup height size does not change when using setItems with different item sizes. (#32)
  • Replaced preference dependency to preference-ktx internally.

1.1.4

08 Oct 10:37
d1440c8
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.4! 馃帀

What's New?

  • Removed updateSpinnerWindowSize. (#40)
  • Added xOff and yOff attributes to show() and showOrDismiss() functions. (#39)

1.1.3

03 Oct 16:01
27b27df
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.3! 馃帀

What's New?

  • Added OnSpinnerDismissListener interface and setOnSpinnerDismissListener function for listening dismissed spinner popup.
  • Added setIsFocusable function. Sets isFocusable of the spinner popup. The spinner popup will got a focus and [onSpinnerDismissListener] will be replaced.
  • Added a Boolean type disableChangeTextWhenNotified field and setDisableChangeTextWhenNotified(Boolean) function. If the value is true, disables changing text automatically when an item selection notified.

1.1.2

10 Sep 11:28
3cf3c8d
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.2! 馃帀

What's New?

  • Used JvmSynthetic for supporting Java APIs without adding a kotlin dependency.
  • Changed some public functionalities to internal.
  • Optimized properties and initializing attributes internally.

1.1.1

05 Sep 15:12
3405ead
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.1! 馃帀

What's New?

  • Updated compile SDK version to 30 internally.
  • Updated koltin version to 1.4.0 stable.
  • Intermittent failure to resize the dropdown view after calling spinner.setItems(choices); #32
  • Changed arrowPadding property's default value to 0.

1.1.0

19 Jul 16:27
85077a1
Compare
Choose a tag to compare

馃帀 Released a new version 1.1.0! 馃帀

What's New?

  • Change type of the item list String to CharSequence for supporting SpannableStringBuilder.
  • Update spinner popup width/height size when showing (#24)
  • Arrow color is not changeable on Android 6 device (#31)

1.0.9

28 May 12:17
c9928ee
Compare
Choose a tag to compare

馃帀 Released a new version 1.0.9! 馃帀

What's new?

  • Fixed recycling bugs since version 1.0.7 (#20)
  • A scrollbar is visible if the popup height is smaller than the item list size. (#21)

1.0.8

10 May 12:43
abc3551
Compare
Choose a tag to compare

Released a new version 1.0.8.

Fixed some issues

  • Debounce OnSpinnerOutsideTouchListener and onClickListener (#17)
  • The arrow toggle on empty list (#16)

Added a new attribute spinner_debounce_duration.
(A duration of the debounce for showing or dismissing)