search

Home  >  Q&A  >  body text

android - 如何使用view group的bitmap做一个倒影效果,同时忽略scale的view

要做如图所示效果

但是每次获取到的bitmap都有scale的view,怎么才能规避这个问题?

PHP中文网PHP中文网2810 days ago553

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-17 17:38:01

    Question and answer
    Originally we used the entire View to do reflection in order to avoid memory problems
    Later we found that the memory consumption of doing separate reflection for each picture was within the acceptable range, so This is achieved by reflecting each image individually.

    p.s. Lazy loading is a problem

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:38:01

    Split into two bitmaps? Cache before setting the effect, otherwise there is nothing you can do.

    reply
    0
  • Cancelreply