[英]Styling Android Menu (Android Lollipop)
How I can style my android menu like given image. 我如何设置我的Android菜单像给定的图像。 When I click on the second tab I need to highlight the icon with Blue color, Something similar to first one with orange color. 当我点击第二个标签时,我需要突出显示蓝色的图标,类似于第一个橙色的图标。
So my doubt regarding designing the menu are: 所以我对设计菜单的疑问是:
What control I need to use for implementing the feature 我需要使用什么控件来实现该功能
If it is possible How I can customize the control to display like this. 如果可能我如何自定义控件以显示如下。
I am a windows phone developer, Don't have that much expertise in android UI controls. 我是一名Windows手机开发者,在Android UI控件中没有那么多的专业知识。 Recently only I started developing an Android using Xamarin. 最近我才开始使用Xamarin开发Android。
So anyone please help me to learn the control. 所以任何人都可以帮助我学习控制。 I don't need a ready made answer. 我不需要现成的答案。 Please guide me to implement the same, by sharing some code snippets or web links 请指导我通过共享一些代码段或Web链接来实现相同的功能
Assuming those are ActionBar Tabs, I'd recommend using this tool. 假设这些是ActionBar标签,我建议使用此工具。 You can configure the colors you'd like, then add the generated files to your project as a custom Style. 您可以配置所需的颜色,然后将生成的文件作为自定义样式添加到项目中。
I have used this exact site with my Xamarin Android projects, and can verify it works as intended. 我已经在我的Xamarin Android项目中使用了这个确切的站点,并且可以验证它是否按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.