Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/4.0.0 #64

Merged
merged 4 commits into from
Jul 6, 2019
Merged

Release/4.0.0 #64

merged 4 commits into from
Jul 6, 2019

Conversation

zawadz88
Copy link
Owner

@zawadz88 zawadz88 commented Jul 5, 2019

[4.0.0]

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 e.g. to achieve the following
    Screenshot_1562347760

Piotr Zawadzki added 3 commits July 3, 2019 16:47
…thod so that it's possible to override values set by it in callbacks.

Updated `MaterialPopupMenuBuilder.SectionHolder.label` and `MaterialPopupMenuBuilder.ItemHolder.label` to be of type `CharSequence` rather than `String` to allow the use of `Spannables`.
Prepared for release 4.0.0.
This can be used e.g. so that the popup menu has the same width as the anchor view. There was a sample added for this use case.
This solves issue #62
Added an option to set a fixed width of the popup menu.
This can be used e.g. so that the popup menu has the same width as the anchor view. There was a sample added for this use case.
To achieve this effect an option to override offset was also added.
@zawadz88 zawadz88 added this to the 4.0.0 milestone Jul 5, 2019
@zawadz88 zawadz88 merged commit 0b21ef7 into master Jul 6, 2019
@zawadz88 zawadz88 deleted the release/4.0.0 branch December 8, 2019 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant