android - 底部 ContextMenu 与 actionbar sherlock

标签 android android-layout

我在我的项目中使用 ActionBar Sherlock + 滑动菜单。在一个 Activity 中,我有一个 ListView。我希望ListItem ContextMenu在选择项目时出现在Gmail应用中的底部。我该怎么做?

最佳答案

你是说数字 4 吗?

enter image description here

那是一个拆分操作栏。

To enable split action bar, simply add uiOptions="splitActionBarWhenNarrow" to your <activity> or <application> manifest element.

(来自docs)

要了解此信息,请访问 contextual action mode developer.android.com 上关于开发者指南的部分

编辑:

splitActionBarWhenNarrow一直deprecated .

关于android - 底部 ContextMenu 与 actionbar sherlock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14922205/

相关文章:

Android后台蓝牙处理: What's the best approach?

android - 使用FeatureDetector OpenCv Android时出错

java - 当我启动 apk 文件时出现以下错误

android - 使用 PlaybackOverlayFragment 隐藏当前时间

android - Eclipse 项目资源管理器上出现未知错误

android - 尝试播放声音时ImageButton崩溃

android - 移动共享对话框上的 Facebook 共享按钮被切掉

android - 如何在 Android 上创建可扩展的表单布局

Android:对文本后的图像使用 alignBaseline

android - 将自定义 View (tileview)添加到布局?