-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved `super.bindItem` call to the end of `ItemViewHolder#bindItem`method 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`. * 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. * Updates minimum supported SDK version to API 19. 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. * Replaced xxLeft and xxRight attributes with xxStart and xxEnd RTL equivalents.
- Loading branch information
Showing
36 changed files
with
485 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
....zawadz88.materialpopupmenu/-material-popup-menu-builder/drop-down-horizontal-offset.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>MaterialPopupMenuBuilder.dropDownHorizontalOffset - material-popup-menu</title> | ||
<link rel="stylesheet" href="../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../index.html">material-popup-menu</a> / <a href="../index.html">com.github.zawadz88.materialpopupmenu</a> / <a href="index.html">MaterialPopupMenuBuilder</a> / <a href="./drop-down-horizontal-offset.html">dropDownHorizontalOffset</a><br/> | ||
<br/> | ||
<h1>dropDownHorizontalOffset</h1> | ||
<a name="com.github.zawadz88.materialpopupmenu.MaterialPopupMenuBuilder$dropDownHorizontalOffset"></a> | ||
<code><span class="keyword">var </span><span class="identifier">dropDownHorizontalOffset</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span></code> | ||
<p>Setting this to non-<code>null</code> value will override <code>android:dropDownHorizontalOffset</code> set by the style applied in <a href="style.html">style</a>.</p> | ||
</BODY> | ||
</HTML> |
15 changes: 15 additions & 0 deletions
15
...ub.zawadz88.materialpopupmenu/-material-popup-menu-builder/drop-down-vertical-offset.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>MaterialPopupMenuBuilder.dropDownVerticalOffset - material-popup-menu</title> | ||
<link rel="stylesheet" href="../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../index.html">material-popup-menu</a> / <a href="../index.html">com.github.zawadz88.materialpopupmenu</a> / <a href="index.html">MaterialPopupMenuBuilder</a> / <a href="./drop-down-vertical-offset.html">dropDownVerticalOffset</a><br/> | ||
<br/> | ||
<h1>dropDownVerticalOffset</h1> | ||
<a name="com.github.zawadz88.materialpopupmenu.MaterialPopupMenuBuilder$dropDownVerticalOffset"></a> | ||
<code><span class="keyword">var </span><span class="identifier">dropDownVerticalOffset</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span></code> | ||
<p>Setting this to non-<code>null</code> value will override <code>android:dropDownVerticalOffset</code> set by the style applied in <a href="style.html">style</a>.</p> | ||
</BODY> | ||
</HTML> |
16 changes: 16 additions & 0 deletions
16
...ub.zawadz88.materialpopupmenu/-material-popup-menu-builder/fixed-content-width-in-px.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<HTML> | ||
<HEAD> | ||
<meta charset="UTF-8"> | ||
<title>MaterialPopupMenuBuilder.fixedContentWidthInPx - material-popup-menu</title> | ||
<link rel="stylesheet" href="../../../style.css"> | ||
</HEAD> | ||
<BODY> | ||
<a href="../../index.html">material-popup-menu</a> / <a href="../index.html">com.github.zawadz88.materialpopupmenu</a> / <a href="index.html">MaterialPopupMenuBuilder</a> / <a href="./fixed-content-width-in-px.html">fixedContentWidthInPx</a><br/> | ||
<br/> | ||
<h1>fixedContentWidthInPx</h1> | ||
<a name="com.github.zawadz88.materialpopupmenu.MaterialPopupMenuBuilder$fixedContentWidthInPx"></a> | ||
<code><span class="keyword">var </span><span class="identifier">fixedContentWidthInPx</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a></code> | ||
<p>Setting this to a non-zero value will force the width of the popup menu to be exactly this value. | ||
If set to 0, the default mechanism for measuring popup menu width will be applied.</p> | ||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
$dokka.format:html | ||
$dokka.linkExtension:html | ||
|
||
androidx.appcompat.widget | ||
com.github.zawadz88.materialpopupmenu | ||
com.github.zawadz88.materialpopupmenu.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.