Are Lottie animations supported in Xamarin.Forms UWP projects? - xamarin

I am trying to add Lottie animations to my project.
So far I've only tested on android and I got it working.
Now I'm also trying to add them to my UWP app but I can't find a guide on how to do this.
There is this link that tells me lottie is supported on UWP.
And this post and (probably as a reaction) this post suggests it is possible within xamarin forms uwp.
I can't find a clear reference (or a tutorial) online if this is supported for Xamarin.Forms UWP projects. I'm mainly in doubt because I'm not sure if the Xamarin.Forms.UWP 'flavor' is the same as a 'normal' UWP application.
I could really appreciate a nudge in the right direction.

I think it has something to do with this bug.
Although this sample with an older version (2.5.4) was not built with "support" for UWP
I did get it working by adding the resources to the root dir and setting the build action to Content.
Downgrading the library in my own project to 2.5.4 fixed the problem for me.

Related

Is Xamarin Forms CollectionView working on macOS?

I've migrated a settings page from Xamarin Forms ListView to CollectionView. All is working on iOS, but nothing is rendered on macOS.
I downgraded Xamarin Forms to 4.7 and pushed it all of the way up to the current preview of 5.0.0.1829-pre6. I've searched the source on git, and I can't even find a renderer for CollectionView. My searches on the web come back with nothing specific.
Is CollectionView supported on macOS? If not, what is the roadmap for support?
As of the current production release (4.8.X), 'CollectionView' is not supported on macOS, it is supported on the following platforms:
iOS
Android
UWP
There is no timeline for official support but I would hope it would become available in 5.X since that version will go into LTS when MAUI takes over. I checked the Xamarin GitHub repo and couldn't find an issue so I raised one for macOS support for CollectionView. Going to the repository is the best way to keep updated, if you show your support they are more likely to do the work 😊

Extending an existing Xamarin Forms app to Uno to enable it to run in a browser using WASM

I am attempting to extend my Xamarin Forms app to Uno to enable it to run in a browser using WASM. I am following the Xamarin Forms porting document at https://platform.uno/xamarin-forms. The article on that page entitled "Uno Platform for Xamarin.Forms Developers" has, as its Get Started, Step 1: Create a Xamarin.Forms project, Check “Place project and solution in the same directory”. My existing Xamarin Forms project (which I want to port) was not created with "Place project and solution in the same directory". How can I port this project which was not created with "Place project and solution in the same directory". Thank you.
To use Uno Platform renderers for Xamarin.Forms, you need to make sure you are using Xamarin.Forms version 4.5.0-uno.571.

Creating 3 tabs using MVVMCross for both Xamarin.android and Xamarin.ios application

I am creating a mobile application using MVVMCross and xamarin for both android and ios devices.
In my application I want to create 3 tabs on a screen where each of the tabs are editable.
Can anyone please help me with some example where MVVMCross is used targeting both xamarin.andriod and xamarin.ios applications.
Many Thanks,
Santosh
https://github.com/klzig/CycleTrip
Is a really good, starting project to give you a basic understanding, be aware that it's written using 5.7 though.
https://github.com/MvvmCross/MvvmCross
Also has a mix of different projects with the Playground and TestProjects folders.
And finally
https://mvvmcross.wordpress.com/
https://github.com/MvvmCross/NPlus1DaysOfMvvmCross

Appcelerator App Conversion iOS to Android.

One of our developer developed an app in appcelerator using alloy framework for iOS which works fine. Now we want to run the same app in Android, since the appcelerator is a cross platform tool, we wish to make the Android version of the App. I tried searching about it and explored the applcelerator ide for options but couldn't find it. Can some one please guide me into the right direction?
First of all have a look at this link : http://docs.appcelerator.com/platform/latest/#!/guide/Supporting_Multiple_Platforms_in_a_Single_Codebase this will guide you to update the application for multiple platforms.
Their are basically two different ways to port any application from android to iOS or vise-versa, but before that just let me clear one more thing to you about tiapp.xml.
In the tiapp.xml of your project you need to updated the Development Target by checking for which platform you are developing the application for (iPhone, iPad, android, Mobile Web).
Option 1 :
Cross Platform is build to make code re-usable (i.e. re-use same code for all the platforms), but we have exceptions with many things. Their are lot of components that work fine in iOS but when you use them in android then you will face errors. So in that case you just need to apply conditions for android and iOS like below :
if(OS_ANDROID)
// do something
else if(OS_IOS)
// do something
What you need to do is that you need run the application in android simulator and test the application for these changes and then apply the changes accordingly.
Basically a developer has to target the UI for both the platforms, as their will not be any logical differences between the two. Also their will be UI changes between the same components, like for example a picker in iOS will not look the same as it will when you look it in an android application.
Option 2 :
Now in the project you have assets folder with the platform that you have selected in the tiapp.xml (i.e. iPhone, android etc).
You can create similar structure in the style and view folder, create two folders iOS and android in both the directory (i.e. style and view).
First, move .tss of style folder (except app.tss and index.tss) in the iOS folder, then copy the files in the android folder also.
Repeat the similar process with the View folder also.
Now you have two different structures (i.e. view and styles) according to their platform. Now you can run the application in android simulators and resolve the error that you face.
Hope this small information helps the cause, you can also have look at the documentation of all the components from below link :
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView

Xamarin.Forms.Labs Mediapicker not working on iOS 8

Apparently Mediapicker functionality was changed in iOS 8, resulting in Xamarin.Forms.Lab's mediapicker solution failing. Does anyone know of a workaround for this or, lacking that, and alternate multiplatform solution for accessing the camera and media library for Android and iOS in Xamarin?
Error on my part. This is working just fine - the problem was that calling mediapicker functionality from DisplayActionSheet was causing problems.

Resources