使用操作栏夏洛克
我对如何使用操作栏 sherlock 感到非常困惑。我已经在我的应用程序中成功“安装”了它(我已经可以在应用程序顶部看到操作栏),但是如何“配置”它?例如,我使用它,
<item name="abDisplayOptions">useLogo|showHome|homeAsUp|showTitle</item>
这样我就可以在操作栏中看到应用程序徽标,徽标左侧的“后退”按钮,但我不知道应该将代码(以及要编写的代码)放在哪里启用操作栏上的“后退”按钮,单击徽标会将用户带到应用程序主页,以及其他操作,例如在操作栏上放置搜索图标等等。我尝试查看actionbarsherlock google groups,但我不知道该搜索什么来帮助 我...
i'm pretty confused on how to use action bar sherlock.. i've 'installed' it successfully in my apps (I can already see the bar at the top of my apps), but how do I 'configure' it? for example i use this
<item name="abDisplayOptions">useLogo|showHome|homeAsUp|showTitle</item>
so I can see the apps logo in the action bar, the 'back' button at the left side of the logo, but I don't know where should I put the code (and what code to write) to enable the 'back' buttons on action bar, clicking on logo will bring the user to the apps home, and other things such as put a search icon on the action bar and so on.. i tried looking at the actionbarsherlock google groups but I don't know what to search to help me...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需查看此处的示例:https://play.google .com/store/apps/details?id=com.actionbarsherlock.sample.demos
以及相应的代码:https://github.com/JakeWharton/ActionBarSherlock
Just check the samples here : https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos
And the corresponding code here : https://github.com/JakeWharton/ActionBarSherlock