你如何关闭股历史上使用ShareActionProvider什么时候? [英] How do you turn off share history when using ShareActionProvider?

查看:111
本文介绍了你如何关闭股历史上使用ShareActionProvider什么时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在的Andr​​oid 4.0中的新ShareActionProvider(或更早的版本,如果你正在使用ActionBarSherlock)具有这样的最近使用的项目显示在操作栏的功能。反正是有关闭这个功能?

The new ShareActionProvider available in Android 4.0 (or in earlier versions if you're using ActionBarSherlock) has a feature where the last used item is displayed in the action bar. Is there anyway to turn this off?

推荐答案

有没有API来做到这一点。然而,类是非常简单的,你可以很轻松地创建自己的版本 ShareActionProvider 的未保存的历史。你可能只需要使用排序的其他方法(如按字母顺序)来确定可能的目标的排序顺序。

There is no API to do this. However, the class is really simple and you could very easily create your own version of ShareActionProvider that did not keep a history. You would just have to determine the sort order of the possible targets using some other means of ordering (e.g., alphabetically).

这篇关于你如何关闭股历史上使用ShareActionProvider什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆