-
Notifications
You must be signed in to change notification settings - Fork 14
No animation is displayed on Angular #6
Comments
Can you try a different |
tried to change the modes, but all have no animation |
Hello, im having this same issue. Im trying to find the option where is a circle animation instead of a bar. Actually the bar works with animation (mode:indeterminate) but i need a Circle, how can i achieve that? because the only circle option is the one reported here and it doesn't have animation. Thank you |
I have the same issue, too. I'm using nativescript 6.0.1 + angular 8.2 |
I have the same issue using NS 6.1 without Angular, but for me the issue occurs only on Android 4 devices |
Must be an Android version issue. I've got this working fine in a NS 6.1 angular app running on Android 21+ |
Maybe there is an API being used internally not available on lower Android version. Can anyone confirm the results across different Android OS versions |
@bradmartin I re-tested this behaviour using the demo app on multiple Android devices and emulators and Mode.Indeterminate works as expected on our test devices with Android 5, 6, 7, 8, 9 and Q, but it does not work on Android 4.2, 4.3 and 4.4 devices and emulators (it just shows a circle without any animated spinner) |
that's good to know 👍 - no promises from me on when I can look at it. However, that seems to indicate some API we're using internally in the android side doesn't work on Android 4x so we should be able to find a workaround or... drop support 😄. Hate to but ugh when it comes to that old of Android 🙃 |
@bradmartin I made one more investigation and I found out, that the animation works on Mode.Indeterminate for Android 4 devices, if you define backgroundColor OR color in the options, not both at the same time 😄 |
If you have an idea to propose a fix, be glad to help sort thru it for a PR with you 👍 |
i have the same problems when i run the APP get this error |
@edrick27 your issue is that your app is looking in node_modules when it shouldn't be analyzing those type defs. |
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Is there any code involved?
###Service with the loading indicator
`
import { LoadingIndicator, Mode, OptionsCommon } from '@nstudio/nativescript-loading-indicator';
import { Injectable } from "@angular/core";
@Injectable({
providedIn: 'root',
})
export class LoadingIndicatorHelper {
public loader = new LoadingIndicator();
public options: OptionsCommon = {
message: 'Loading...',
details: 'Additional detail note!',
progress: 0.65,
margin: 10,
dimBackground: true,
color: '#4B9ED6',
backgroundColor: 'yellow',
userInteractionEnabled: false,
hideBezel: true,
mode: Mode.AnnularDeterminate,
android: {
cancelable: true,
cancelListener: function (dialog) {
console.log('Loading cancelled');
}
},
};
}
###Show of the indicator in components
that.loadingIndicator.loader.show(that.loadingIndicator.options);`Results
The text was updated successfully, but these errors were encountered: