Skip to content

Instantly share code, notes, and snippets.

@andrewbel31
Last active April 10, 2022 12:36
Show Gist options
  • Save andrewbel31/c5ac8effd6b1afcd28cae30afabe2b1b to your computer and use it in GitHub Desktop.
Save andrewbel31/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