How I Can Place Overflow Menu Below Toolbar Instead Of Overflow Menu To Overlaps The Tool Bar
I have added the shareActionProvider for the tool bar my problem is as soon as i tap on share icon the popup menu will cover the toolbar content but when i tap on see all option
Solution 1:
According to the Material Design specifications (see the Menus section):
A menu is a temporary sheet of paper that always overlaps the app bar, rather than behaving as an extension of the app bar.
So what you are seeing is the correct Material design for menus.
To change it in your main style use <item name="actionOverflowMenuStyle">@style/OverflowMenu</item>
, where
<stylename="OverflowMenu"parent="Widget.AppCompat.PopupMenu.Overflow"><!-- Required for pre-Lollipop. --><itemname="overlapAnchor">false</item><itemname="android:dropDownVerticalOffset">-4.0dip</item><!-- Required for Lollipop. --><itemname="android:overlapAnchor">false</item><itemname="android:dropDownVerticalOffset">4.0dip</item></style>
For Lollipop style must be in values-v21
.
Post a Comment for "How I Can Place Overflow Menu Below Toolbar Instead Of Overflow Menu To Overlaps The Tool Bar"