Android ActionBar overflow menu style -
Android ActionBar overflow menu style -
i've set simple menu 1 position this:
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".mainactivity"> <item android:id="@+id/action_language" android:title="@string/language" android:orderincategory="100" /> </menu>
using
theme.appcompat.light.darkactionbar
style. when click 3 dots menu position appears instead of icon, not below it? there way create appear under icon, not 'on' it?
actually can't icon, can create menu item android:actionlayout="@layout/custom_lauout"
. can create popup window, allows such positioning. in popupwindow show items must show under "three dots item".
here rea few links can help you: http://developer.android.com/reference/android/widget/popupwindow.html http://stackoverflow.com/a/23516493/3864698
android
Comments
Post a Comment