lottie-android

Lottie in react native can't find images?

依然范特西╮ 提交于 2021-02-08 04:01:16
问题 I have followed every Lottie example for React native and looked at questions that have the same problem like Lottie animation on Expo but I have successfully imported an animation exported to .json via Bodymovin using React native here: import React, {Component} from 'react'; import Animation from 'lottie-react-native'; import { StyleSheet, Text, View, Animated, Easing, ScrollView, RefreshControl, AppRegistry } from 'react-native'; export default class LottieTest extends Component {

Lottie Animation doesn't appear on Android device - Xamarin Forms

不问归期 提交于 2021-01-20 12:10:23
问题 I'm using VS 2019 xamarin Forms, I recently watched some videos about how to use lottie animations and looks pretty simple. I'm doing every step but when I run the app the animation never appears. Package Com.Airbnb.Lottie.Forms was added to all app projects (it's crossplatform) Then added Com.Airbnb.Android.Lottie to the Android app (first I tried without it, didn't work either) This is the code <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms

Lottie Animation doesn't appear on Android device - Xamarin Forms

眉间皱痕 提交于 2021-01-20 12:06:07
问题 I'm using VS 2019 xamarin Forms, I recently watched some videos about how to use lottie animations and looks pretty simple. I'm doing every step but when I run the app the animation never appears. Package Com.Airbnb.Lottie.Forms was added to all app projects (it's crossplatform) Then added Com.Airbnb.Android.Lottie to the Android app (first I tried without it, didn't work either) This is the code <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms

How to know when lottie animation is completed?

纵饮孤独 提交于 2019-12-21 07:22:24
问题 I have a fragment, here is the onCreateView method: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment mView = inflater.inflate(R.layout.fragment_added_to_cart_anim, container, false); ButterKnife.bind(this, mView); mAddedToCartAnimation.setAnimation("checked_done_.json"); mAddedToCartAnimation.loop(false); mAddedToCartAnimation.playAnimation(); // Remove fragment when animation is finished.