I decided to develop an app using .NET MAUI (xaml), that is now in RC. I use shell page as a base, and found out that there's a significant lag/glitch in a following scenario:
Open flyout menu
Click on some navigation button
Flyout menu starts closing. At this moment there's a glitch, like it tries to render a page you navigate to and close the menu in the same thread. The more complex page you have, the longer the glitch takes place. But even if you have a blank page, it still happens. I think it's either me doing it wrong or there are issues with .NET MAUI shell.
Looking through the Internet I found an issue in github about similar problem in Xamarin: https://github.com/xamarin/Xamarin.Forms/issues/7521 . I suppose it happens in MAUI because the issue migrated from Xamarin, but it's ridiculous that it hasn't been fixed for 2 years. There are some workarounds there, but all of them are not good for me to use.
Does anyone know how to resolve this app freeze in MAUI/Xamarin?
Also, is it possible to have a fully functional flyout menu in MAUI Blazor (a menu that can respond to swipe gestures)?
P.s. I don't attach the code as it's pretty basic, you can just add 2 blank pages to navigate to, and you'll notice the time delay when the menu closes. I test it on Samsung Galaxy A8.
Related
Recently around Dec 1st reset my pc and installed visual studio. Previously when I last installed visual studio, it showed Xamarin forms in the installation directory. This time it showed MAUI and provided Xamarin as an addon to work with Xamarin. Until this its fine. After installation, I was able to load Xamarin forms project properly. Now, when I deploy to the android device for debugging, everything worked fine. But as I interacted more, UI started misbehaving with stack layout or frame view elements not resizing.
Below screen shots will explain the situation
Normal Behavior
Parent page for the above page
When interacting with the page in the first picture, elements like stack layout and frame are not resizing.
When navigated from the current page to parent page, UI misbehavior continues
When clicked on an item in the above page, instead of getting page that looks like 1st pic, getting empty page
When navigated back still same mal-formed page
On turning off and on the screen, UI refreshing to normal.(Before any crash happens)
While the above process happens, anytime application is crashing particularly when any data was being updated on the UI.
Debug Logs when crashed
I presume this is a Xamarin renderer or some library issues. How do I over come this as my app is in production stage.
I tried to reinstall entire visual studio and also cleared all the cache of Xamarin and Android like NuGet packages etc. It the same result. A workaround would be good and a solution would be excellent.
From Android I know Master detail flow which allows you to have this side by side master detail activity on bigger devices while having two separate activities on a smaller device. As shown on this page in the figures 23-1 and 23-2.
Now I am implementing in Xamarin for cross platform development and I would like to recreate this behavior as I really like it. The MasterDetailPage as it is called in Xamarin works correctly on a tablet, however on a small phone it shows a side menu for the master list view instead of a separate page. (this side menu is triggered by the burger menu button) Since my master page should already show more information than just a title in the list view, I would prefer it to be the normal android master detail flow with two pages. Is there a way to do this with Xamarin where I don't have to code it completely from scratch?
I haven't found any answers to it, but maybe that is because I search a bit wrong. I just don't know how to describe it better than as the "normal master detail" on android. But that doesn't give me useful results. Thanks for any help, also references to where I can find this.
Edit: Thanks to SushiHangover I now know that this behavior is called Split by xamarin. However they do not allow it on phones. Is there a workaround?
I am working on a simple Home Automation project, using Raspberry Pi3. The basic idea is to have an Android app which can switch on/off an electric bulb. I have created a simple HTML web page which runs a python script to turn on/off the connected relay to the light bulb, whenever I press the corresponding buttons on the web page.
What i want to achieve is to have the buttons on the web page somehow toggled from buttons on a simple Android app.
Please understand that I am almost entirely new to app development and have no interests in further pursuing it. So I am looking for some workaround maybe, or a quick solution that helps me use my already functional web page, just from a simple android app. I would be able to implement the development part, hopefully, if I can get an idea of what exactly do I have to develop for achieving the above mentioned functionality.
I've made an app where I display a map. On the same page I also have a button. When the button is clicked I want to display a modal page to enter some data. It works except from Android, where the app crashes when I do the navigation. It's this issue https://forums.xamarin.com/discussion/81768/launching-a-modal-over-a-page-containing-a-map-maps-ad-m-cannot-be-cast-to-android-view-viewgroup
So far I haven't found a solution that fixes the issue. I'm running latest XF 2.3.4.247 stable
best regards
I'm creating my first app in iOS and I'm very accustomed to developing in eclipse for Android. My first step is that I need to create a dashboard as the homescreen. I'm a little "confused" as of which layout I should choose in xcode. In android I always select the most basic of settups, and I end up with a blank activity and a blank layout. That's where I would like to start, since that's what I'm used to. I'm wondering if any experienced iOS dev can point me in the right direction into which template to start with.
It seems really easy to just say to use an empty application, but If I'm going to have to do a lot more settup that is not worth my time, then please enlighten me.
You' probably want to go with a single view application. This will give you a template with a view controller and a blank interface file (your choice of xib or storyboard) that you can build from. From there you can add what ever you want.
Using this template you will immediately be able to build your app to the simulator or to your device. However, if you already have an idea of how you would like your app to work, you could choose tab based if your app should have multiple tabs and most of the work will be done for you, or a utility based app will give you two view controllers, one of which will be presented modally. Etc, etc...