Android7.0中文文档(API)-- PopupMenu
来源:互联网 发布:什么软件买东西便宜 编辑:程序博客网 时间:2024/06/18 02:39
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/PopupMenu.html
PopupMenu
public class PopupMenu
extends Object
A PopupMenu displays a Menu
in a modal popup window anchored to aView
. The popup will appear below the anchor view if there is room, or above it if there is not. If the IME is visible the popup will not overlap it until it is touched. Touching outside of the popup will dismiss it.
PopyoMenu在模态弹出窗口中显示一个Menu
,并附着在一个View
上。如果有空间,则弹出窗口将显示在所附着的视图下,如果没有,则会显示在它上面。如果显示了IME,则弹出窗口将不会重叠,直到它被触摸。触摸弹出窗口外面的地方,则将会关闭弹出窗口。
摘要
嵌套类
interface
PopupMenu.OnDismissListener
Callback interface used to notify the application that the menu has closed.
回调接口,用于通知应用程序菜单已关闭。
interface
PopupMenu.OnMenuItemClickListener
Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.
如果项本身没有单独的项点击监听器,则此接口负责接收菜单项的点击事件。
Public构造方法
PopupMenu(Context context, View anchor)
Constructor to create a new popup menu with an anchor view.
构造方法,其创建指定附着视图的一个新弹出菜单。
PopupMenu(Context context, View anchor, int gravity)
Constructor to create a new popup menu with an anchor view and alignment gravity.
构造方法,其创建指定附着视图和对齐重力参数的一个新弹出菜单。
PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes)
Constructor a create a new popup menu with a specific style.
构造方法,其创建指定样式的一个新弹出菜单。
- Android7.0中文文档(API)-- PopupMenu
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- centos 6.5 编译 安装 folly指南
- 谈谈对Java中Unicode、编码的理解
- 【leetcode】valid-palindrome
- Java学习笔记-《Java程序员面试宝典》-第四章基础知识-4.5字符串与数组(4.5.1-4.5.3)
- BroadcastReceiver 详解
- Android7.0中文文档(API)-- PopupMenu
- 组件的使用
- 安卓活动的启动模式
- selenium web 自动化环境搭建(Windows7 环境, Chrome, Python)
- java:14-类型转换与接口
- 注解(Annotation)那点事
- LeetCode | 41. First Missing Positive
- Spring MVC整合beetl之后添加国际化
- HBase flush issue