Lottie-android: support of full screen animation?

Created on 13 Mar 2017  路  3Comments  路  Source: airbnb/lottie-android

Is there a way to implement a splash animation(i.e. to match_parent )?

I tried to use a full screen lottie player, but the issue is the json file do specify size and a fixed size won't fit on every devices.

Most helpful comment

@nick1Jian Set your LottieAnimationView to match_parent and the scaleType to centerCrop. That should work.

All 3 comments

@nick1Jian Set your LottieAnimationView to match_parent and the scaleType to centerCrop. That should work.

can't it be stretched instead based on the screen width?

How to play animation over status bar?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dfpalomar picture dfpalomar  路  5Comments

Nabeel-khalid picture Nabeel-khalid  路  4Comments

11hhlin1 picture 11hhlin1  路  3Comments

anitoledo picture anitoledo  路  4Comments

dpmaycry picture dpmaycry  路  3Comments