0

I have a custom view and I have to set background color for it every two seconds.I can use canvas.drawARGB() or view.setBackgroundColor().Both change color but I need to increase performance,because that change repeats every two seconds.So I want to know which way is faster?canvas.drawARGB() or view.setBackgroundColor()?

Micha
  • 4,959
  • 8
  • 32
  • 46
hasanghaforian
  • 13,142
  • 8
  • 71
  • 144

1 Answers1

0

Use traceview tool if you really have to actually see what works faster.

Vlad K.
  • 320
  • 3
  • 18