How to split a menu like chrome

How to split a menu, such as a Chrome browser, as shown in the image:

image

This is my actual code.

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="materialtest.vivz.slidenerd.activities.MainActivity">

    <item
        android:id="@+id/action_settings"
        android:orderInCategory="100"
        android:title="@string/action_settings"
        app:showAsAction="never" />

</menu>
+4
source share
1 answer

You can implement dialogFragment, and you can find on the screen where you want.

Here is an example:

http://www.androidbegin.com/tutorial/android-dialogfragment-tutorial/

You can change the position of the dialog. You can find out how it works here:

Change the position of the dialog box on the android screen

+3
source

All Articles