All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Robolectric test failures (issue #73)
- changed visibility of some internal classes i.e.
MaterialRecyclerViewPopupWindow
&SectionedRecyclerViewAdapter
as they were not meant to be exposed anyway - target API version 28 -> 29
- Popup couldn't be dismissed on Lollipop (issue #66)
- Breaking change: minimum SDK version raised to API 19 (Kitkat)
- Breaking change: replaced
mpm_paddingLeft
withmpm_paddingStart
andmpm_paddingRight
withmpm_paddingEnd
and other inter layout attributes accordingly for better RTL support - Breaking change: updated
MaterialPopupMenuBuilder.SectionHolder.label
andMaterialPopupMenuBuilder.ItemHolder.label
to be of typeCharSequence
rather thanString
to allow the use ofSpannables
. - Moved
super.bindItem
call to the end ofItemViewHolder#bindItem
method so that it's possible to override values set by it in callbacks.
- an option to override the defaults and set menu width & dropdown offsets programmatically via
MaterialPopupMenuBuilder
- An option to display an icon at the end of each item which indicates a nested submenu.
viewBoundCallback
added to default items as well- Allow customizing default popup style via theme attribute (#53, thanks to @Tunous)
- Make it possible to dismiss popup from
viewBoundCallback
(#57, thanks to @Tunous)
- Disabled
clipToPadding
on menuRecyclerView
(#54, thanks to @Tunous) - Take margins under account when calculating popup height (#56, thanks to @Tunous)
- An option to keep popup open after clicking on item (#45, thanks to @Tunous)
- Allow setting item label via string resource (#42, thanks to @Tunous)
- A flag to dim background behind popup (#43, thanks to @Tunous)
- A way to customize popup padding (#44, thanks to @Tunous)
- new project & sample app logos (#48, thanks to @ghostofiht)
- Incorrect menu height in case of dynamic content (#49, reported by @Tunous)
- Fix background clipping when using rounded corners (#47, thanks to @Tunous)
- Updated Kotlin to 1.3.21, AndroidX AppCompat to 1.0.2
- Updated internal AGP to 3.3.2 & Gradle to 5.3.1
- A listener to get notified when popup menus get dismissed
- Migrated to AndroidX package structure (https://developer.android.com/topic/libraries/support-library/androidx-overview)
- Updated Kotlin to 1.2.71
- A way to set custom vertical offsets via android:dropDownVerticalOffset and by setting Gravity.BOTTOM
- Updated Android Support Library to 27.1.1
- Updated Kotlin to 1.2.61
- Changed kotlin-stdlib-jre7 dependency to kotlin-stdlib-jdk7
- A way to dismiss popup menus programmatically
- Overriding of Android Themes as raised by @plshapkin in #18. This introduces breaking changes hence 2.0.0 version update.
- Updated Android Support Library to 27.1.0
- Updated Kotlin to 1.2.31
- Order of items ruined if menu has to scroll (issue #14)
- A way to set background color of the entire popup window
- Light & dark themes use correct backgrounds & selectors by default without the need of setting an Activity theme.
- A way to set an icon Drawable for an item
- A way to set custom items
- A way to set individual item label & icon colors.
- Compilation against Oreo MR1
- Updated a bunch of dependencies including Android Support Library to 27.0.2 & Kotlin to 1.2.20
Initial release of the library.