Skip to content

Simple soundboard app for Android written in Kotlin

Notifications You must be signed in to change notification settings

evroon/kotlin-soundboard

Repository files navigation

Kotlin Soundboard

tests

A very basic soundboard for Android, written in Kotlin.

alt text

Adding sounds

Add a sound to the view by doing the following:

  1. Place a sound file (such as example.wav) in the raw directory.
  2. Add a string to strings.xml, which represents the displayed text in the button. Like this:
<resources>
    <string name="app_name">kotlin-soundboard</string>
    <string name="splash_sounds">Splash sounds</string>
    <string name="splash">splash</string>
    <string name="example">example sound</string>
</resources>
  1. Register the button in MainActivity.kt, by adding it to layout:
val layout = arrayOf(
    "textview_splash_sounds",
    "button_splash",
    "button_example"
)

It is also possible to add textviews to the layout to split the sounds in categories.

About

Simple soundboard app for Android written in Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published