Last active
April 10, 2022 12:36
-
-
Save andrewbel31/c5ac8effd6b1afcd28cae30afabe2b1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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