Android操作栏标题自定义下拉菜单布局

问题描述 投票:-4回答:1

如何在标题中创建下拉菜单,如图所示?enter image description here

android drop-down-menu android-actionbar android-titlebar
1个回答
0
投票

为此使用Popupwidow,您可以将弹出窗口显示到屏幕的任何位置

跟随此链接Popupwidow:

https://developer.android.com/reference/android/widget/PopupWindow

对于Popupwidow教程,

https://medium.com/@evanbishop/popupwindow-in-android-tutorial-6e5a18f49cc7

© www.soinside.com 2019 - 2024. All rights reserved.