Skip to content

Instantly share code, notes, and snippets.

@andreymusth
Last active April 10, 2022 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreymusth/c5ac8effd6b1afcd28cae30afabe2b1b to your computer and use it in GitHub Desktop.
Save andreymusth/c5ac8effd6b1afcd28cae30afabe2b1b to your computer and use it in GitHub Desktop.
public class CustomView extends View {
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
// slightly change some value comparing to previous onDraw call
// do some actual drawing using canvas
invalidate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment