MvvmCross:Android应用程序属性 [英] MvvmCross: Android Application attribute

查看:149
本文介绍了MvvmCross:Android应用程序属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用MvvmCross为Android,哪里是通常使用由Android的实际应用对象呢?并不总是需要这样的对象,除非你想定制清单中的标签。单为Android有一个ApplicationAttribute,你可以用它来装点应用类和更改主题,图标等我怎么会做这种使用时MvvmCross?

When using MvvmCross for Android, where is the actual Application object normally used by Android? This object is not always needed unless you want to customize the tag in the manifest. Mono for Android has a ApplicationAttribute that you can use to decorate the Application class and change themes, icons, etc. How would I do this when using MvvmCross?

推荐答案

MvvmCross坐在Xamarin.Android顶部

MvvmCross sits on top of Xamarin.Android

所以,你可以为你定制一个正常Xamarin.Android applciation自定义完全相同的方式的MvvmCross Android应用程序 - 如果你需要之一,创建应用程序重写

So you can customise an MvvmCross Android application in exactly the same way as you customise a normal Xamarin.Android applciation - create an Application override if you need one.

还请注意,某些应用程序属性可以通过项目设置和装配调整属性的http://docs.xamarin.com/guides/android/advanced_topics/working_with_androidmanifest.xml

Note also that some application properties can be adjusted through project settings and assembly attributes http://docs.xamarin.com/guides/android/advanced_topics/working_with_androidmanifest.xml

这篇关于MvvmCross:Android应用程序属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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