Instantly share code, notes, and snippets.

Embed
What would you like to do?
Constructor for the PianoView
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