0

can I use MVVMCross library as MVVM platform outside Xamarin With any Android Native project?

if no , is there any native MVVM framework for android applications ?

Arash GM
  • 10,316
  • 6
  • 58
  • 76
Ahmed Emad
  • 550
  • 2
  • 7
  • 25

2 Answers2

3

Currently MvvmCross relies on C# - so using it on Android requires Xamarin.Android.

You could possibly port it to Java, or could try the dot42.com platform which compiles C# to Dalvik.

For pure Java alternatives, you could also try a couple of library answers from Android data-binding (similar to WPF)?

Community
  • 1
  • 1
Stuart
  • 66,722
  • 7
  • 114
  • 165
  • dot42 might be an option for you - it's currently in a transition from byte code generation to source code generation using Roslyn - looks promising and I'm sure they'd welcome additional assistance/contributions. – Stuart Sep 09 '14 at 07:36
1

Hi I would like to recommend RoboBinding to you, A data-binding Presentation Model(MVVM) framework for the Android platform. There are a minimal sample app AndroidMVVM and an album sample, which is an android translation of Martin Fowler's original sample created to explain the Presenation Model(called MVVM in microsoft community) pattern. Both samples can be imported into Android Studio with no extra config. The pattern is an involvement from old MVC pattern and its major motivation is to further decouple UI state and logic to a PURE POJO presenation model, which allows to be easily unit tested. If you like RoboBinding, i encourage you to have a look into its source code and have a feel of its code quality.

Cheng
  • 572
  • 8
  • 12