We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Define progress bar in xaml

Hello,

I am using SfCircularProgressBar in  the Android toolbar Layout.

Is it possible to include the progress bar in the Toolbar xaml layout file?

My issue is that the toolbar get reset by Android during configuration change. And any layout defined in code is no longer accessible. 
I am using Xamarin forms so need to include ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation
in the Main Activity to avoid recreating the Xforms app.

Thank you very much for your help.

Djamila


1 Reply

BK Bharathiraja K Syncfusion Team February 8, 2019 01:07 PM UTC

Hi Djamila, 
  
Greetings from Syncfusion.

Query: “Toolbar get reset by Android during configuration change”

We have analyzed the reported issue and when removing the ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation in MainActivity.cs file means it’s recreated the app is a general behavior. We have checked with the Xamarin Progress control, same behavior is reproduced.

In our latest Xamarin Forms project, the configuration changes lines will be added automatically when creating a app. So, if you using a Xamarin forms project, the configuration lines will be automatically added in your android project.

Please let us know if you have any other concern.

Regards,
 
Bharathiraja. 


Loader.
Live Chat Icon For mobile
Up arrow icon