Last active
March 20, 2018 10:14
-
-
Save ssaurel/6229d3835afe890ed9391e06c9d3131a to your computer and use it in GitHub Desktop.
Constructor for the PianoView
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 PianoView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
black = new Paint(); | |
black.setColor(Color.BLACK); | |
white = new Paint(); | |
white.setColor(Color.WHITE); | |
white.setStyle(Paint.Style.FILL); | |
yellow = new Paint(); | |
yellow.setColor(Color.YELLOW); | |
yellow.setStyle(Paint.Style.FILL); | |
soundPlayer = new AudioSoundPlayer(context); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment