Actionbar Three-dot Dropdown Opens At The Wrong Place
I've implemented an ActionBar with the com.android.support:appcompat-v7:22.1.1 library. Here you can see the code and my question: ActionBar with appcompat library v7 (ava.lang.Ill
Solution 1:
Answering the first part of your question, the placement/location of the dropdown menu is supposed to be that way according to the Material Design guidelines, so that's not a bug.
Concerning the second part, to change the color of the dropdown menu to white, in styles.xml
, add the following lines:
<stylename="AppTheme"parent="@style/Theme.AppCompat.Light.DarkActionBar"><itemname="android:popupMenuStyle">@style/popupMenuStyle</item></style><stylename="popupMenuStyle"parent="@android:style/Widget.PopupMenu"><itemname="android:popupBackground">#FFFFFF</item></style>
And in your AndroidManifest.xml, replace:
android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
with:
android:theme="@style/AppTheme">
Post a Comment for "Actionbar Three-dot Dropdown Opens At The Wrong Place"