07 May

Android Repaint or Redraw

Usually we create custom view with extends “View” class.
But how can we redraw or repaint it?

Kadang kita membuat custom view dengan melakukan extends kelas “View”
Tapi bagaimana cara untuk melakukan redraw atau repaint?

Answer:
call method invalidate() will call draw() method in the class

Jawaban:
panggil method invalidate() maka akan terpanggil kembali fungsi draw() di dalam kelas turunan

Leave a Reply

Your email address will not be published. Required fields are marked *