Skip to content

lottie动画框

石头 edited this page Aug 2, 2018 · 1 revision
        new CircleDialog.Builder()
            .setTitle("提示")
            .setWidth(0.7f)
            .setLottieAnimation("loading.json")//动画文件 assets 中
            .setLottieLoop(true)//循环
            .playLottieAnimation()//动画开始
            .setLottieSize(width, height)//只是动画宽高
            .setLottieText("正在加载...")
            .setOnCreateLottieListener(OnCreateLottieListener)//更多属性配置
            .show(getSupportFragmentManager());
Clone this wiki locally