MVVMCross是否支持ActionBar? [英] Does MVVMCross support ActionBar?

查看:64
本文介绍了MVVMCross是否支持ActionBar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个快速实验,我想知道是否必须使用MvxTabsFragmentActivity还是可以使用标准ActionBar逻辑来做到这一点?我尝试实现它,但是如果我执行与此类似的操作示例我遇到了MvxFragment无法转换为Android.App.Fragment的问题.

I was doing a quick experiment and I was wondering if I have to use MvxTabsFragmentActivity or is it possible to do this using the standard ActionBar logic? I tried to implement it but if I do something similar to this example I get issues with MvxFragment not being able to be converted to Android.App.Fragment.

我对此进行了一些研究,这可能是由于与v4支持库的命名空间冲突所致.谁能对此有所启示?

I was researching this a little and it may be due to a namespace conflict with the v4 support library. Can anyone shed any light on this?

MvxTabsFragmentActivity是Android的旧"标签制作方式吗?

Is MvxTabsFragmentActivity Android's "old" way of doing tabs?

推荐答案

MvxTabsFragmentActivity是Android的旧"标签制作方式吗?

Is MvxTabsFragmentActivity Android's "old" way of doing tabs?

否-Android的制表符的旧方法是使用活动"

No - Android's old way of doing tabs is using Activities

MvxFragment无法转换为Android.App.Fragment

MvxFragment not being able to be converted to Android.App.Fragment

MvxFragment基于支持库的Fragment实现,允许使用回到Android 2.x

MvxFragment is based on the support library's Fragment implementation, allowing use back to Android 2.x

您可以在 http://developer.android中阅读有关此支持库的更多信息. .com/tools/support-library/index.html ,并且在 Xamarin对支持库的支持记录在 http://docs中.xamarin.com/guides/android/platform_features/fragments/part_4 _-_ providing_backwards_compatibility_with_the_android_support_package

Xamarin's support for the support lib is documented in http://docs.xamarin.com/guides/android/platform_features/fragments/part_4_-_providing_backwards_compatibility_with_the_android_support_package

但是,Xamarin支持最新版本似乎存在一些问题-请参阅 http ://forums.xamarin.com/discussion/7018/xamarin-support-for-the-new-july-2013-revision-18-v7-compatibility-library 进行讨论和可能的选择-从我的阅读开始该线程,Xamarin的建议似乎是使用ActionBarSherlock-尽管我也考虑使用LegacyBar

However, there seems to be some problem with Xamarin supporting the latest version - see http://forums.xamarin.com/discussion/7018/xamarin-support-for-the-new-july-2013-revision-18-v7-compatibility-library for discussion and possible alternatives - from my reading on that thread, Xamarin's suggestion seems to be to use ActionBarSherlock - although I'd also consider LegacyBar

这篇关于MVVMCross是否支持ActionBar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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