nativescript-loading-indicator
nativescript-loading-indicator copied to clipboard
Android: loading-indicator and orientation change
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
When showing a loading indicator and then changing the device orientation, the layout of the loading indicator is not updated correctly on Android.
On iOS, everything works as expected.
A workaround for this is triggering the orientationChange event of the application, hiding the old dialog and create a new dialog within that event-handler. But before doing that, I just wanted to ask if there is a possible fix for that within the plugin.
Which platform(s) does your issue occur on?
- Android
- tested on Android 5.1, 7.1.1, 8.1, 9 and 10
- emulator and device
Please, provide the following version numbers that your issue occurs with:
- CLI: 6.5.0
- Cross-platform modules: @nativescript/core 6.5.1
- Runtime(s): tns-android 6.5.0
- Plugin(s): @nstudio/nativescript-loading-indicator 3.0.4
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it. Just follow the steps on the provided demo app or use the demo app of this repository (it is reproducable on all types of loading dialogs).
Is there any code involved?
First of all, thanks for this plugin, it is easy to use and saves a lot of time.
We also see this issue when changing android device orientation. Furthermore we noticed that in landscape mode on android the loading indicator is not fully centered on the screen. This can be seen in the gif as well when the device is in landscape mode and the indicator is opened. It is more noticable the smaller the device is e.g on phones.
- CLI: [email protected]
- Cross-platform modules: @nativescript/[email protected]
- Runtime(s): @nativescript/[email protected]
- Plugin(s): @nstudio/[email protected]