0

I am trying for small application . In that I have two Image bitmap on top of each other which is draw on canvas , on touch I need to make above image bitmap transparent as I touch the canvas screen so I can see the below Image. I also refers this link

but it showing the only black circle not below image. I tested it on kitkat OS that 4.4.2.

Please help me, Thanx in Advance .....

Community
  • 1
  • 1
Sachin
  • 528
  • 5
  • 17

1 Answers1

0

Try to use Hardware acceleration

In AndroidManifest for application:
<application android:hardwareAccelerated="true" ...>

Or if you draw in View's onDraw method, you can do for this view:
view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

More information you can read in documentation here

Hope it helps

krossovochkin
  • 12,030
  • 7
  • 31
  • 54