example: refactor lottieview to test both c and cpp api

This commit is contained in:
subhransu mohanty
2019-04-17 16:47:11 +09:00
committed by Subhransu
parent e0d60eb058
commit 6efe7e23f5
6 changed files with 506 additions and 344 deletions

View File

@@ -57,7 +57,7 @@ public:
private:
void show() {
mView = std::make_unique<LottieView>(mApp->evas(), mRenderMode);
mView = std::make_unique<LottieView>(mApp->evas(), Strategy::renderCAsync);
mView->setFilePath(mResourceList[mCurIndex].c_str());
mView->setPos(0, 0);
mView->setSize(mApp->width(), mApp->height());