How to Split the menu like chrome

℡╲_俬逩灬. 提交于 2019-12-12 11:21:43

问题


How to split a menu like chrome browser as shown in the 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>

回答1:


You can implement dialogFragment and you can locate 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 it out how it works here :

Changing position of the Dialog on screen android



来源:https://stackoverflow.com/questions/28722907/how-to-split-the-menu-like-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!