question

archergod avatar image
0 Votes"
archergod asked RobCaplan edited

Xamarin.Forms and Andriodx.Core .. Is it important?

Okay, I am new to Xamarin and making this app. Since day one (as I read different article) that Xamarin Apps are slow over the native app. Although my app load somewhat decent speed but still I can see it take around 700ms to 1 sec to change page to show 3 item from Async Sqlite on Bindable Object. (no other stuff). I feel it is not natural.

Now, Due to some conflict in libraries my App stop compile and after hours of frustration I found that Adding Xamarin.Androidx.Core v 1.5 might help my application (In stackoverflow). So I go and install the Latest Version of Library Xamarin.Androidx.Core (1.6.1) now my application compile in Debug mode and it become amazingly fast. The page that took 700ms to 1s before now load in say 100 or 200 ms only. I can visually see that application become throughout very fast. But this version didn't work in Release Compile on Real Mobile, so I have to roll back to Xamarin.Andriodx.Core 1.5 version and then it works everywhere. But the speed goes back bit faster but normal speed I was getting.

So, I understand that I have to wait for next few release to try faster version in future. But Is it important to Add Core Library in all project? Does this or any other library out there which might help the speed? Frankly the speed I see with 1.6 version is the speed I always believe to have in Xamarin Apps, but now that I touch it I really want it to have in my application. But I am not sure of tech involve and what base library should I include to speed up a other regular boring app, that just show data on screen in collectionviews.

dotnet-xamarin
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can add Xamarin.Androidx.Core to Xamarin.Android project, Do not need to add it the PCL.

The NuGet Xamarin.AndroidX.Core use binding-library to binds the AndroidX library androidx.core:core. When you release your application, which lInker settings did you choose? You can try to set Linker to none, if this performance will be the same as the debug mode.

0 Votes 0 ·

I have to add it as XCT is not supporting latest XF version (2083) with other plugins I have So to get all compatibility right I have to add Androidx.Core 1.5 to get it working. Frankly the Plugins/Nuget package are hell to understand for me. with every release there is compatibility break and then hours of google search. Sometime Linker = SDK Only works sometime not. So I mostly use Linker = none for debug and SDK only for APK built for real device testing (in non debug mode).

And yes I add that library to Android only.

0 Votes 0 ·

0 Answers