Skip to content

A custom View for Android which displays a piano keyboard.

Notifications You must be signed in to change notification settings

rparejo/AndroidPianoView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidPianoView

A custom View for Android which displays a piano keyboard. I built and released this library to help developers who are making music applications and do not want to implement their own piano.

Example PianoView screenshot

The PianoView can be either defined in XML or programmatically:

<com.twobard.pianoview.Piano 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    piano:keyCount="24"
    piano:blackKeyDrawable="@drawable/key_black_custom"
    piano:whiteKeyDrawable="@drawable/key_white_custom"
/> 
Piano = new Piano(this, R.id.white_button, R.id.black_button, 24);
layout.addView(piano);

Remember to add the project as a library project.

About

A custom View for Android which displays a piano keyboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%