Skip to content

Latest commit

 

History

History
140 lines (112 loc) · 5.38 KB

CHANGELOG.md

File metadata and controls

140 lines (112 loc) · 5.38 KB

Changelog

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.

Fixed

  • Robolectric test failures (issue #73)

Changed

  • changed visibility of some internal classes i.e. MaterialRecyclerViewPopupWindow & SectionedRecyclerViewAdapter as they were not meant to be exposed anyway
  • target API version 28 -> 29

Fixed

  • Popup couldn't be dismissed on Lollipop (issue #66)

Changed

  • Breaking change: minimum SDK version raised to API 19 (Kitkat)
  • Breaking change: replaced mpm_paddingLeft with mpm_paddingStart and mpm_paddingRight with mpm_paddingEnd and other inter layout attributes accordingly for better RTL support
  • Breaking change: updated MaterialPopupMenuBuilder.SectionHolder.label and MaterialPopupMenuBuilder.ItemHolder.label to be of type CharSequence rather than String to allow the use of Spannables.
  • Moved super.bindItem call to the end of ItemViewHolder#bindItemmethod so that it's possible to override values set by it in callbacks.

Added

  • an option to override the defaults and set menu width & dropdown offsets programmatically via MaterialPopupMenuBuilder

Added

  • 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)

Fixed

  • Disabled clipToPadding on menu RecyclerView (#54, thanks to @Tunous)
  • Take margins under account when calculating popup height (#56, thanks to @Tunous)

Added

  • 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)

Changed

  • new project & sample app logos (#48, thanks to @ghostofiht)

Fixed

  • Incorrect menu height in case of dynamic content (#49, reported by @Tunous)
  • Fix background clipping when using rounded corners (#47, thanks to @Tunous)

Changed

  • Updated Kotlin to 1.3.21, AndroidX AppCompat to 1.0.2
  • Updated internal AGP to 3.3.2 & Gradle to 5.3.1

Added

  • A listener to get notified when popup menus get dismissed

Changed

Added

  • A way to set custom vertical offsets via android:dropDownVerticalOffset and by setting Gravity.BOTTOM

Changed

  • Updated Android Support Library to 27.1.1
  • Updated Kotlin to 1.2.61
  • Changed kotlin-stdlib-jre7 dependency to kotlin-stdlib-jdk7

Added

  • A way to dismiss popup menus programmatically

Fixed

  • Overriding of Android Themes as raised by @plshapkin in #18. This introduces breaking changes hence 2.0.0 version update.

Changed

  • Updated Android Support Library to 27.1.0
  • Updated Kotlin to 1.2.31

Fixed

  • Order of items ruined if menu has to scroll (issue #14)

Added

  • A way to set background color of the entire popup window

Changed

  • Light & dark themes use correct backgrounds & selectors by default without the need of setting an Activity theme.

Added

  • A way to set an icon Drawable for an item

Added

  • A way to set custom items

Added

  • A way to set individual item label & icon colors.

Changed

  • Compilation against Oreo MR1
  • Updated a bunch of dependencies including Android Support Library to 27.0.2 & Kotlin to 1.2.20

Added

Initial release of the library.