如何从SocialBoo主题获取ActionBar以显示在GUI中? [英] How do you get ActionBar from SocialBoo theme to show up in your GUI?

查看:51
本文介绍了如何从SocialBoo主题获取ActionBar以显示在GUI中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的。从此开始。我看到 SocialBoo 主题与我想要实现的目标类似。如果我发现我可以工作和改善。我添加了一个新的 socialboo主题并创建了空白GUI。假设这是一个 Commandbehavior ,但这并没有解决问题,添加 tabs 也是如此。似乎这些组件不适合该特定栏...但是确实注意到了另一个问题。

Ok. Starting over with this. I see that the SocialBoo theme has something similar in what I want to achieve. If I find that I can work and improve. I Added a new socialboo theme and created blank GUI. Assumed it would be a Commandbehavior but that didnt do the trick, so did adding tabs. Seems like those components are not for that specific bar... However did notice another issue.

我如何获得社交 actionbar 是否显示在 socialboo主题中? (屏幕截图)。假设这些图像是默认主题的一部分,对。

How do I get the social actionbar as displayed in the socialboo theme? (Screen shot). Assuming those images etc are part of the default theme, right.

此外,如果我创建了 TouchCommand =栏,标题或本机。它在Gingerbread中显示正常,但在ICS中显示不佳。你知道那是为什么吗? (屏幕截图)

Also, If I create a TouchCommand = bar, title or native. It displays fine in Gingerbread but not ICS. DO you know why is that? (screen shot)

预先感谢。

推荐答案

这些图像不是主题的一部分,它们是主题的一部分。具体的演示。如果将Tabs组件添加到边框布局UI的中心,则会获得这些选项卡,其中的 icon属性将允许您自定义未选择的图标,并且还可以自定义选择的图标。您可以在下载部分。

Those images aren't a part of the theme, they are a part of the specific demo. If you add a Tabs component to the center of the border layout UI you will get thee tabs where the "icon" property will allow you to customize the unselected icon and you can customize the selected icon as well. You can see the full source/resource file of the social boo demo in the docs and demos zip in the download section.

由于平台的特定限制,通常,自定义命令有点复杂,在实际Android 4设备上运行时,默认情况下我们使用本机ActionBar来提供Android用户的使用体验过去。这对我们来说很难模拟,因此您只能在设备版本中正确看到这一点。我建议不要依赖命令,似乎您想要实现的目标很容易通过选项卡完成,这可能就是为什么您在其他问题上遇到困难的原因。

Generally customizing commands is a bit complex because of platform specific constraints, when running on an Actual Android 4 device we use the native ActionBar by default to provide the experience Android users are used to. This is hard for us to simulate so you will only see this properly in the device build. I suggest not relying on commands, it seems that what you are trying to achieve is easily doable with tabs and its possible that's why you had difficulties in your other question.

这篇关于如何从SocialBoo主题获取ActionBar以显示在GUI中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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