commit 632fd007e75af0e00cc24bff55caa73b76be5b8b Author: Eoin Mcloughlin Date: Tue May 12 20:58:31 2020 +0100 Basic app layout, with a sounder mode diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..603b140 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx diff --git a/TODO b/TODO new file mode 100644 index 0000000..a2b1402 --- /dev/null +++ b/TODO @@ -0,0 +1,18 @@ +Basic: +* Multithreaded sounder +* Correct tone length calculation +* Settings + +* Koch lesson select +* Run a koch lesson +* Koch result analysis screen +* Remember last lesson + +Polish: +* Better user input +* Visual styling + +Bonus: +* Morse machine +* Score/training history +* Send mode diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/DitDahGenerator.kts b/app/DitDahGenerator.kts new file mode 100644 index 0000000..947d06a --- /dev/null +++ b/app/DitDahGenerator.kts @@ -0,0 +1 @@ + aswd \ No newline at end of file diff --git a/app/DitDahGenerator.ws.kts b/app/DitDahGenerator.ws.kts new file mode 100644 index 0000000..e69de29 diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..905bb73 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,52 @@ +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.3" + + defaultConfig { + applicationId "com.example.ecwt" + minSdkVersion 23 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + +// To inline the bytecode built with JVM target 1.8 into +// bytecode that is being built with JVM target 1.6. (e.g. navArgs) + + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = "1.8" + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.appcompat:appcompat:1.0.2' + implementation 'androidx.core:core-ktx:1.0.2' + implementation 'com.google.android.material:material:1.0.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'androidx.navigation:navigation-fragment-ktx:2.0.0' + implementation 'androidx.navigation:navigation-ui-ktx:2.0.0' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'androidx.test.ext:junit:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/app/src/androidTest/java/com/example/ecwt/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/ecwt/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..76fd855 --- /dev/null +++ b/app/src/androidTest/java/com/example/ecwt/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.ecwt + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.ecwt", appContext.packageName) + } +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..ac1731e --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/ecwt/CWSettingsActivity.kt b/app/src/main/java/com/example/ecwt/CWSettingsActivity.kt new file mode 100644 index 0000000..ae8c181 --- /dev/null +++ b/app/src/main/java/com/example/ecwt/CWSettingsActivity.kt @@ -0,0 +1,12 @@ +package com.example.ecwt + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle + +class CWSettingsActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_cw_settings) + } +} diff --git a/app/src/main/java/com/example/ecwt/DitDahGenerator.kt b/app/src/main/java/com/example/ecwt/DitDahGenerator.kt new file mode 100644 index 0000000..24c76a7 --- /dev/null +++ b/app/src/main/java/com/example/ecwt/DitDahGenerator.kt @@ -0,0 +1,209 @@ +package com.example.ecwt + +import android.media.AudioAttributes +import android.media.AudioFormat +import android.media.AudioTrack +import android.media.MediaDataSource +import android.view.KeyEvent +import kotlin.math.PI +import kotlin.math.sin + +enum class SoundTypes { + DIT, DAH, LETTER_SPACE, WORD_SPACE +} + +fun StringToSoundSequence(s : String) : List { + if(s.isEmpty()) + { + return listOf(); + } + + val first = when(s[0]) { + ' ' -> listOf(SoundTypes.WORD_SPACE) + 'A' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'B' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'C' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'D' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'E' -> listOf(SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'F' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'G' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'H' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'I' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'J' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'K' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'L' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'M' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'N' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'O' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'P' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'Q' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'R' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'S' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + 'T' -> listOf(SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'U' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'V' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'W' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'X' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'Y' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + 'Z' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + '0' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + '1' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + '2' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + '3' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.WORD_SPACE) + '4' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + '5' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + '6' -> listOf(SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + '7' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + '8' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + '9' -> listOf(SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.WORD_SPACE) + '.' -> listOf(SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.WORD_SPACE) + '?' -> listOf(SoundTypes.DIT, SoundTypes.DIT, SoundTypes.DAH, SoundTypes.DAH, SoundTypes.DIT, SoundTypes.DIT, SoundTypes.WORD_SPACE) + else -> { listOf() } + } + + return first + StringToSoundSequence(s.substring(1)); +} + +// Almost certainly the wrong way to do this +fun KeycodeToSoundSequence(keycode : Int) : List { + return when(keycode) { + KeyEvent.KEYCODE_A -> StringToSoundSequence("A"); + KeyEvent.KEYCODE_B -> StringToSoundSequence("B"); + KeyEvent.KEYCODE_C -> StringToSoundSequence("C"); + KeyEvent.KEYCODE_D -> StringToSoundSequence("D"); + KeyEvent.KEYCODE_E -> StringToSoundSequence("E"); + KeyEvent.KEYCODE_F -> StringToSoundSequence("F"); + KeyEvent.KEYCODE_G -> StringToSoundSequence("G"); + KeyEvent.KEYCODE_H -> StringToSoundSequence("H"); + KeyEvent.KEYCODE_I -> StringToSoundSequence("I"); + KeyEvent.KEYCODE_J -> StringToSoundSequence("J"); + KeyEvent.KEYCODE_K -> StringToSoundSequence("K"); + KeyEvent.KEYCODE_L -> StringToSoundSequence("L"); + KeyEvent.KEYCODE_M -> StringToSoundSequence("M"); + KeyEvent.KEYCODE_N -> StringToSoundSequence("N"); + KeyEvent.KEYCODE_O -> StringToSoundSequence("O"); + KeyEvent.KEYCODE_P -> StringToSoundSequence("P"); + KeyEvent.KEYCODE_Q -> StringToSoundSequence("Q"); + KeyEvent.KEYCODE_R -> StringToSoundSequence("R"); + KeyEvent.KEYCODE_S -> StringToSoundSequence("S"); + KeyEvent.KEYCODE_T -> StringToSoundSequence("T"); + KeyEvent.KEYCODE_U -> StringToSoundSequence("U"); + KeyEvent.KEYCODE_V -> StringToSoundSequence("V"); + KeyEvent.KEYCODE_W -> StringToSoundSequence("W"); + KeyEvent.KEYCODE_X -> StringToSoundSequence("X"); + KeyEvent.KEYCODE_Y -> StringToSoundSequence("Y"); + KeyEvent.KEYCODE_Z -> StringToSoundSequence("Z"); + KeyEvent.KEYCODE_0 -> StringToSoundSequence("0"); + KeyEvent.KEYCODE_1 -> StringToSoundSequence("1"); + KeyEvent.KEYCODE_2 -> StringToSoundSequence("2"); + KeyEvent.KEYCODE_3 -> StringToSoundSequence("3"); + KeyEvent.KEYCODE_4 -> StringToSoundSequence("4"); + KeyEvent.KEYCODE_5 -> StringToSoundSequence("5"); + KeyEvent.KEYCODE_6 -> StringToSoundSequence("6"); + KeyEvent.KEYCODE_7 -> StringToSoundSequence("7"); + KeyEvent.KEYCODE_8 -> StringToSoundSequence("8"); + KeyEvent.KEYCODE_9 -> StringToSoundSequence("9"); + KeyEvent.KEYCODE_PERIOD -> StringToSoundSequence("."); + //KeyEvent.KEYCODE_S -> StringToSoundSequence("?"); + else -> { StringToSoundSequence(" ")} + } + +} + + +class DitDahGenerator : MediaDataSource { + constructor() : super() + + override fun close() { + } + override fun getSize() : Long { + return 80000; + } + + override fun readAt(position: Long, buffer: ByteArray?, offset: Int, size: Int): Int { + if(position > 10000000) + return -1; +/* + for(i in 0..size) { + val xt = sin((i + offset) / 44e3f) * 255.0f; + buffer?.set(i + offset, xt.toByte()); + } +*/ + return size; + } + +} + +class DitDahGeneratorSettings +{ + val toneFrequency = 650 + var WordsPerMinute = 20; +} + +class DitDahSoundStream { + constructor(config : DitDahGeneratorSettings) { + //TODO: Compute these properly + val ditLengthSeconds = 0.15f; + val dahLengthSeconds = ditLengthSeconds * 3.0f; + + val ditLengthInSamples = (ditLengthSeconds * mAudioSampleRate).toInt(); + val dahLengthInSamples = (dahLengthSeconds * mAudioSampleRate).toInt(); + val interCharacterSpacingInSamples = ditLengthInSamples; + + mDitSound = ShortArray(ditLengthInSamples + interCharacterSpacingInSamples); + mDahSound = ShortArray(dahLengthInSamples + interCharacterSpacingInSamples); + mWordSpacingSound = ShortArray((dahLengthSeconds * mAudioSampleRate).toInt()); + mCharacterSpacingSound = ShortArray((ditLengthSeconds * mAudioSampleRate).toInt()); + + //TODO: Ramp up? Make sound nicer? Seems to have clipping - just in the emulator? + val invSampleRate = 1.0 / mAudioSampleRate.toFloat() + for(i in 0 until ditLengthInSamples) { + mDitSound[i] = (0x7fff.toFloat() * sin( 2.0f * PI * i * config.toneFrequency * invSampleRate)).toShort(); + } + + for(i in 0 until dahLengthInSamples) { + mDahSound[i] = (0x7fff.toFloat() * sin(2.0f * PI * i * config.toneFrequency * invSampleRate) ).toShort(); + } + } + + fun enqueue(symbols : List) { + // TODO want to be able to call this multi-threaded, while this owns a thread which writes the samples + for (sym in symbols) { + when (sym) { + //TODO These sounds should include a blank space + SoundTypes.DIT -> mSoundPlayer.write(mDitSound, 0, mDitSound.size) + SoundTypes.DAH -> mSoundPlayer.write(mDahSound, 0, mDahSound.size) + SoundTypes.LETTER_SPACE -> mSoundPlayer.write(mCharacterSpacingSound, 0, mCharacterSpacingSound.size) + SoundTypes.WORD_SPACE -> mSoundPlayer.write(mWordSpacingSound, 0, mWordSpacingSound.size) + } + } + + if(mSoundPlayer.playState != AudioTrack.PLAYSTATE_PLAYING) + mSoundPlayer.play() + + } + + private val mAudioSampleRate = 44100; + + private val mDitSound : ShortArray; + private val mDahSound : ShortArray; + private val mWordSpacingSound : ShortArray; + private val mCharacterSpacingSound : ShortArray; + + private val mSoundPlayer : AudioTrack = AudioTrack.Builder() + .setAudioAttributes( + AudioAttributes.Builder() + .setUsage(AudioAttributes.USAGE_GAME) + .setContentType(AudioAttributes.CONTENT_TYPE_MUSIC) + .build() + ) + .setAudioFormat( + AudioFormat.Builder() + .setEncoding(AudioFormat.ENCODING_PCM_16BIT) + .setSampleRate(mAudioSampleRate) + .setChannelMask(AudioFormat.CHANNEL_OUT_MONO) + .build() + ) + .setBufferSizeInBytes(mAudioSampleRate) + .build(); +} \ No newline at end of file diff --git a/app/src/main/java/com/example/ecwt/MainActivity.kt b/app/src/main/java/com/example/ecwt/MainActivity.kt new file mode 100644 index 0000000..3b50d7a --- /dev/null +++ b/app/src/main/java/com/example/ecwt/MainActivity.kt @@ -0,0 +1,56 @@ +package com.example.ecwt + +import android.content.Intent +import android.os.Bundle +import com.google.android.material.snackbar.Snackbar +import androidx.appcompat.app.AppCompatActivity +import android.view.Menu +import android.view.MenuItem +import android.view.View + +import kotlinx.android.synthetic.main.activity_main.* + +const val SOUNDER_MODE = "es.eoinrul.ecwt.SOUNDER_MODE" +const val SOUNDER_MODE_USER_INPUT = "es.eoinrul.ecwt.SOUNDER_MODE.USER_INPUT"; + +class MainActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + //setSupportActionBar(toolbar) + + /*fab.setOnClickListener { view -> + Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) + .setAction("Action", null).show() + }*/ + } + + override fun onCreateOptionsMenu(menu: Menu): Boolean { + // Inflate the menu; this adds items to the action bar if it is present. + menuInflater.inflate(R.menu.menu_main, menu) + return true + } + + override fun onOptionsItemSelected(item: MenuItem): Boolean { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + return when(item.itemId) { + R.id.action_settings -> true + else -> super.onOptionsItemSelected(item) + } + } + + fun openSettings(view: View) { + val intent = Intent(this, CWSettingsActivity::class.java); + startActivity(intent); + } + + fun openSounder(view: View) { + val intent = Intent(this, TrainingActivity::class.java).apply { + putExtra(SOUNDER_MODE, SOUNDER_MODE_USER_INPUT) + } + startActivity(intent); + } +} diff --git a/app/src/main/java/com/example/ecwt/TrainingActivity.kt b/app/src/main/java/com/example/ecwt/TrainingActivity.kt new file mode 100644 index 0000000..2c1b16c --- /dev/null +++ b/app/src/main/java/com/example/ecwt/TrainingActivity.kt @@ -0,0 +1,58 @@ +package com.example.ecwt + +import android.media.* +import android.os.Bundle +import android.view.KeyEvent +import android.view.View +import android.widget.TextView +import androidx.appcompat.app.AppCompatActivity + +class TrainingActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_training) + + //val sounderMode = intent.getStringExtra(SOUNDER_MODE); + + mTextViewTest = findViewById(R.id.TestEnteredText); + + mSoundPlayer = DitDahSoundStream(DitDahGeneratorSettings()) + onKeyUp(KeyEvent.KEYCODE_E, KeyEvent(0,0)) + } + + fun startTraining(view: View) { + } + + override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { + val sequence = KeycodeToSoundSequence(keyCode); + + mTextViewTest?.text = sequenceToString(sequence); + + mSoundPlayer?.enqueue(sequence); + return true; + } + + override fun onPause() { + super.onPause(); + } + + + private fun sequenceToString(sequence: List) : String { + var ret = String() + for(symbol in sequence) { + ret += when(symbol) { + SoundTypes.DIT -> "ยท" + SoundTypes.DAH -> "-" + else -> " " + } + } + + return ret + } + + private var mTextViewTest : TextView? = null; + private var mMediaPlayer : MediaPlayer? = null; + + private var mSoundPlayer : DitDahSoundStream? = null; +} diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_cw_settings.xml b/app/src/main/res/layout/activity_cw_settings.xml new file mode 100644 index 0000000..7063a1e --- /dev/null +++ b/app/src/main/res/layout/activity_cw_settings.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..3c6b394 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,36 @@ + + + + + +