Making Overlaid image transparent on touch in Android?

后端 未结 3 2034
孤城傲影
孤城傲影 2020-12-03 00:00

I need help on making the touched areas of bitmap image transparent(seems like erasing) while I am moving my finger on that image.

I am having a PNG file with Alpha

3条回答
  •  既然无缘
    2020-12-03 00:52

    ImageView has a setAlpha method which takes an integer between 0 and 255. I don't know which is transparent and which is opaque but it shouldn't take a long time to try :P

提交回复
热议问题