Releases: skydoves/PowerSpinner
Releases · skydoves/PowerSpinner
1.1.7
1.1.6
🎉 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 topreference-ktx
dependency internally. (3ebc58f) - Refactored
DefaultSpinnerAdapter
andIconSpinnerAdapter
internally. - Updated Kotlin version to
1.4.20
and Gradle/Wrapper versions.
1.1.5
1.1.4
1.1.3
🎉 Released a new version 1.1.3
! 🎉
What's New?
- Added
OnSpinnerDismissListener
interface andsetOnSpinnerDismissListener
function for listening dismissed spinner popup. - Added
setIsFocusable
function. SetsisFocusable
of the spinner popup. The spinner popup will got a focus and [onSpinnerDismissListener] will be replaced. - Added a Boolean type
disableChangeTextWhenNotified
field andsetDisableChangeTextWhenNotified(Boolean)
function. If the value is true, disables changing text automatically when an item selection notified.