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

ScrollViewで
読了計測した話

ogapants
December 11, 2018

 ScrollViewで
読了計測した話

2018/12/11 Otemachi.apk

ogapants

December 11, 2018
Tweet

More Decks by ogapants

Other Decks in Technology

Transcript

  1. ฐࣾʹ͓͚Δಡྃܭଌͱ͸ • ୭͕ • ͲͷهࣄΛ • Ͳ͔͜Β • Ͳ͜·Ͱ •

    ͲΕ͘Β͍ͷ࣌ؒͰ • ಡΜ͔ͩʢεΫϩʔϧ͔ͨ͠ʣ
 
 Λܭଌͯ͠αʔόʔʹૹΓɺσʔλνʔϜ͕෼ੳ
  2. ૹΔ஋ • هࣄ͕ඇදࣔʹͳΔ·Ͱͷ࣌ؒɹˠ؆୯ͳλΠϚʔΫϥεΛ࡞ͬ ͨ • هࣄશମͷ௕͞ɹˠಡྃͷॏ͞Λ஌ΔͨΊ • هࣄදࣔ࣌ͷઌ಄஍఺ɹˠ࠷ॳ͔ΒಡΈ࢝Ίͨͷ్͔த͔Βͳ ͷ͔஌ΔͨΊ(ޙड़) •

    هࣄඇදࣔ࣌ͷ຤ඌ஍఺ɹˠͲ͜·ͰಡΜͩͷ͔஌ΔͨΊ(ޙड़) • ಡྃ཰ɹˠ຤ඌ஍఺/શମͷ௕͞෼ →View#getLocationInWindow →View#getLocalVisibleRect