Upgrade to Pro — share decks privately, control downloads, hide ads and more …

リッチなアニメーションどうやって実装していますか?

OG1
April 20, 2023

 リッチなアニメーションどうやって実装していますか?

OG1

April 20, 2023
Tweet

More Decks by OG1

Other Decks in Programming

Transcript

  1. ํ๏ᶃɹgifϦιʔεͱͯ͠ඳը͢Δ //... val url = "gifϦιʔεͷURL΍Ϧιʔε໊" Glide.with(fragment) .load(url) .into(imageView) //....

    ͍͍ײ͡👍 🤔gifϦιʔεͷαΠζେ͖͍ 🤔ιʔε಺Ͱ৭Λม͍͑ͨ Androidͷ৔߹ͷҰྫ https://bumptech.github.io/glide/
  2. ํ๏ᶄɹLottieϥΠϒϥϦΛ࢖͏ //… ɹval composition by rememberLottieComposition( ɹ LottieCompositionSpec.RawRes(LottieͷJSONϦιʔε) ɹ) val

    dynamicProperties = rememberLottieDynamicProperties { //ΞχϝʔγϣϯϦιʔεͷ৭ΛมߋͰ͖Δ val property = LottieProperty.STROKE_COLOR val newColor = Color(0xFFFF0000) val keyPath = "Fill 1".toKeyPath() rememberLottieDynamicProperty(property, newColor, keyPath) } LottieAnimation( composition = composition, dynamicProperties = dynamicProperties, ) //.... ͞Βʹ͍͍ײ͡👍 👍ϦιʔεϑΝΠϧ͕ܰྔ 👍ιʔε಺Ͱಈతʹ৭ΛมߋՄ Androidͷ৔߹ͷҰྫ 👍એݴతUIʹ΋ରԠ Ξχϝʔγϣϯදࣔ