diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..aa724b77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +*.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 +local.properties diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..26d33521 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 00000000..b589d56e --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 00000000..a2d7c213 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..44ca2d9b --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,41 @@ + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 00000000..e1eea1d6 --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..773fe0fb --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 9d3f4a24..ff81bd9f 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,18 @@ ## README.md must consist of the following information: -#### Team Name - -#### Problem Statement - -#### Team Leader Email - +#### Team Name - Tobena +#### Problem Statement - Personalized Entertainement for Kids +#### Team Leader Email - gandharv.bakshi@gmail.com ## A Brief of the Prototype: - This section must include UML Diagrams and prototype description - +An Android app that takes in a child's interests - basis the interests, the app then creates stories (with images and accompanying audio) that the child can enjoy! + ## Tech Stack: - List Down all technologies used to Build the prototype - +Kotlin for Front end, Python for back end. GPT-3.5-turbo for story generation, Google TTS / ElevenLabs for Voice generation, and Stable Diffusion XL 1.0 for Image generation + ## Step-by-Step Code Execution Instructions: - This Section must contain a set of instructions required to clone and run the prototype so that it can be tested and deeply analyzed + Open in Android Studio and make the app! ## What I Learned: - Write about the biggest learning you had while developing the prototype + Write about the biggest learning you had while developing the prototype: How to train Stable Diffusion XL on personal images to generate consistent images! diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 00000000..0927da3a --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,73 @@ +plugins { + id 'com.android.application' + id 'org.jetbrains.kotlin.android' + id 'com.google.relay' version '0.3.06' + +} + +android { + namespace 'com.example.buildathonstoryv0' + compileSdk 33 + + defaultConfig { + applicationId "com.example.buildathonstoryv0" + minSdk 28 + targetSdk 33 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + vectorDrawables { + useSupportLibrary true + } + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } + buildFeatures { + compose true + } + composeOptions { + kotlinCompilerExtensionVersion '1.3.2' + } + packagingOptions { + resources { + excludes += '/META-INF/{AL2.0,LGPL2.1}' + } + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.8.0' + implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0') + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' + implementation 'androidx.activity:activity-compose:1.5.1' + implementation platform('androidx.compose:compose-bom:2022.10.00') + implementation 'androidx.compose.ui:ui' + implementation 'androidx.compose.ui:ui-graphics' + implementation 'androidx.compose.ui:ui-tooling-preview' + implementation 'androidx.compose.material3:material3' + implementation 'com.android.volley:volley:1.2.1' + + implementation 'com.squareup.okhttp3:okhttp:4.9.1' + + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' + androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00') + androidTestImplementation 'androidx.compose.ui:ui-test-junit4' + debugImplementation 'androidx.compose.ui:ui-tooling' + debugImplementation 'androidx.compose.ui:ui-test-manifest' +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /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 \ No newline at end of file diff --git a/app/src/androidTest/java/com/example/buildathonstoryv0/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/buildathonstoryv0/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..0f800277 --- /dev/null +++ b/app/src/androidTest/java/com/example/buildathonstoryv0/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.buildathonstoryv0 + +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.buildathonstoryv0", appContext.packageName) + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..8a9d751a --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/buildathonstoryv0/MainActivity.kt b/app/src/main/java/com/example/buildathonstoryv0/MainActivity.kt new file mode 100644 index 00000000..70a73a34 --- /dev/null +++ b/app/src/main/java/com/example/buildathonstoryv0/MainActivity.kt @@ -0,0 +1,228 @@ +package com.example.buildathonstoryv0 + +import android.graphics.BitmapFactory +import android.os.Bundle +import android.speech.tts.TextToSpeech +import android.text.SpannableStringBuilder +import android.text.Spanned +import android.text.style.ImageSpan +import android.util.Base64 +import android.util.Log +import android.widget.Button +import android.widget.CheckBox +import android.widget.EditText +import android.widget.ImageButton +import android.widget.TextView +import android.widget.ToggleButton +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Surface +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.Preview +import com.android.volley.Request +import com.android.volley.Response +import com.android.volley.RetryPolicy +import com.android.volley.VolleyError +import com.android.volley.toolbox.StringRequest +import com.android.volley.toolbox.Volley +import com.example.buildathonstoryv0.ui.theme.BuildathonStoryV0Theme +import okhttp3.HttpUrl +import org.json.JSONObject +import java.util.Locale + +class MainActivity : ComponentActivity() { + private lateinit var pawpatrolbutton: ToggleButton + private lateinit var carbutton: ToggleButton + private lateinit var pikachubutton: ToggleButton + private lateinit var lionbutton: ToggleButton + private lateinit var peppapigbutton: ToggleButton + private lateinit var sciencebutton: ToggleButton + private lateinit var otherInterestsEditText: EditText + private lateinit var childNameEditText: EditText + private lateinit var submitButton: Button + private lateinit var addImagesCheckBox: CheckBox + private lateinit var resultTextView: TextView + private lateinit var playAudioButton: ImageButton + lateinit var tts: TextToSpeech + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + pawpatrolbutton = findViewById(R.id.pawpatrolbutton) + carbutton = findViewById(R.id.carbutton) + pikachubutton = findViewById(R.id.pikachubutton) + lionbutton = findViewById(R.id.lionbutton) + peppapigbutton = findViewById(R.id.peppapigbutton) + sciencebutton = findViewById(R.id.sciencebutton) + otherInterestsEditText = findViewById(R.id.other_interests_edittext) + childNameEditText = findViewById(R.id.child_name_edittext) + submitButton = findViewById(R.id.submit_button) + addImagesCheckBox = findViewById(R.id.add_images_checkbox) + playAudioButton = findViewById(R.id.play_audio) + resultTextView = findViewById(R.id.resultTv) + + tts = TextToSpeech(applicationContext, TextToSpeech.OnInitListener { + if(it == TextToSpeech.SUCCESS){ + Log.d("TTS: ", "Initialization successful") + tts.language = Locale("en", "IN") + } + else{ + Log.e("TTS", "Initialization failed with error code: $it") + } + }) + + submitButton.setOnClickListener { + val otherInterests = otherInterestsEditText.text.toString() + val childName = childNameEditText.text.toString() + performAction(childName, otherInterests) + } + + playAudioButton.setOnClickListener { + val storyText = resultTextView.text.toString() + if (tts.isSpeaking) { + // Stop the TTS engine if it is currently speaking + tts.stop() + } else if (storyText.isNotEmpty()) { + Log.d("TTS: ", "storyText is NOT empty") + tts.speak(storyText, TextToSpeech.QUEUE_FLUSH, null, null) + Log.d("TTS", "TTS has started") + Log.d("Contents of StoryText", "storyText: $storyText") + } else { + Log.d("TTS", "storyText is empty") + tts.speak("There is no story generated yet. Please generate a story first", TextToSpeech.QUEUE_FLUSH, null, null) + } + } + } + + private fun performAction(nameInput: String, otherInterests: String) { + resultTextView.text = "Generating Story..." + + val selectedButtons = mutableListOf() + if (pawpatrolbutton.isChecked) { + selectedButtons.add("Paw Patrol") + } + if (carbutton.isChecked) { + selectedButtons.add("Cars") + } + if (pikachubutton.isChecked) { + selectedButtons.add("Pikachu") + } + if (lionbutton.isChecked) { + selectedButtons.add("Lion") + } + if (peppapigbutton.isChecked) { + selectedButtons.add("Peppa Pig") + } + if (sciencebutton.isChecked) { + selectedButtons.add("Science") + } + + val selectedButtonsString = selectedButtons.joinToString(separator = ", ") + + // Instantiate the RequestQueue. + val queue = Volley.newRequestQueue(this) + val url = "https://593f-34-87-63-234.ngrok.io" + //Log.d("input", input) + val jsonObject = JSONObject() + var prompt:String + if (nameInput.isEmpty()) + { + if (selectedButtons.isEmpty()) { + prompt = "Make a story appropriate to a 3 year old. The story should also involve $otherInterests.The story should have many dialogs and an implicit moral. The story should be engaging for a 3 year old child. The story should approximately have 500 words" + } else { + prompt = "Make a story appropriate to a 3 year old. The story should also involve $otherInterests and $selectedButtonsString.The story should have many dialogs and an implicit moral. The story should be engaging for a 3 year old child. The story should approximately have 500 words" + } + } + else + { + if (selectedButtons.isEmpty()) { + prompt = "Make a story appropriate to a 3 year old. The story should star a 3 year old named $nameInput and also involve $otherInterests.The story should have many dialogs and an implicit moral. The story should be engaging for a 3 year old child. The story should approximately have 500 words" + } else { + prompt = "Make a story appropriate to a 3 year old. The story should star a 3 year old named $nameInput and also involve $otherInterests and $selectedButtonsString.The story should have many dialogs and an implicit moral. The story should be engaging for a 3 year old child. The story should approximately have 500 words" + } + + } + val addImagesIsChecked = if (addImagesCheckBox.isChecked) "true" else "false" + + val requestUrl = HttpUrl.Builder() + .scheme("https") + .host("593f-34-87-63-234.ngrok.io") + .addQueryParameter("prompt", prompt) + .addQueryParameter("isPictureStory", addImagesIsChecked.toString()) + .build() + + +// Request a string response from the provided URL. + val stringRequest = StringRequest( + Request.Method.GET, requestUrl.toString(), + Response.Listener { response -> + val jsonResponse = JSONObject(response) + val stories = jsonResponse.getJSONArray("stories") + val images = jsonResponse.getJSONArray("images") + + // Log the size of the stories and images arrays + Log.d("MyApp", "Stories array size: ${stories.length()}") + Log.d("MyApp", "Images array size: ${images.length()}") + + // Create a SpannableStringBuilder to hold the final text with images + val builder = SpannableStringBuilder() + + // Check if the images array is not empty + if (images.length() > 0) { + // Iterate over the stories and images arrays + for (i in 0 until stories.length()) { + // Append the current story to the builder + builder.append(stories.getString(i)) + + // Decode the current image from base64 and create a Bitmap + val imageBytes = Base64.decode(images.getString(i), Base64.DEFAULT) + val bitmap = BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.size) + + // Create an ImageSpan from the Bitmap + val imageSpan = ImageSpan(this, bitmap) + + // Append a space character to the builder and set its span to the ImageSpan + builder.append(" ") + builder.setSpan(imageSpan, builder.length - 1, builder.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) + } + } else { + // The images array is empty, so just append all of the stories to the builder + for (i in 0 until stories.length()) { + builder.append(stories.getString(i)) + } + } + + // Update the resultTextView with the final text with images + resultTextView.text = builder + }, + + Response.ErrorListener { + // Log the error message + Log.e("MyApp", "Error occurred: ${it.message}") + + resultTextView.text = "That didn't work!" + }) + + stringRequest.setRetryPolicy(object : RetryPolicy { + override fun getCurrentTimeout(): Int { + return 500000 + } + + override fun getCurrentRetryCount(): Int { + return 15 + } + + override fun retry(error: VolleyError?) { + + } + }) + + // Add the request to the RequestQueue. + queue.add(stringRequest) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Color.kt b/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Color.kt new file mode 100644 index 00000000..b716beb4 --- /dev/null +++ b/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package com.example.buildathonstoryv0.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) \ No newline at end of file diff --git a/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Theme.kt b/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Theme.kt new file mode 100644 index 00000000..b7bee873 --- /dev/null +++ b/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Theme.kt @@ -0,0 +1,70 @@ +package com.example.buildathonstoryv0.ui.theme + +import android.app.Activity +import android.os.Build +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.runtime.SideEffect +import androidx.compose.ui.graphics.toArgb +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.platform.LocalView +import androidx.core.view.WindowCompat + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 + + /* Other default colors to override + background = Color(0xFFFFFBFE), + surface = Color(0xFFFFFBFE), + onPrimary = Color.White, + onSecondary = Color.White, + onTertiary = Color.White, + onBackground = Color(0xFF1C1B1F), + onSurface = Color(0xFF1C1B1F), + */ +) + +@Composable +fun BuildathonStoryV0Theme( + darkTheme: Boolean = isSystemInDarkTheme(), + // Dynamic color is available on Android 12+ + dynamicColor: Boolean = true, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { + val context = LocalContext.current + if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) + } + + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + val view = LocalView.current + if (!view.isInEditMode) { + SideEffect { + val window = (view.context as Activity).window + window.statusBarColor = colorScheme.primary.toArgb() + WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme + } + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Type.kt b/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Type.kt new file mode 100644 index 00000000..b5317383 --- /dev/null +++ b/app/src/main/java/com/example/buildathonstoryv0/ui/theme/Type.kt @@ -0,0 +1,34 @@ +package com.example.buildathonstoryv0.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.sp + +// Set of Material typography styles to start with +val Typography = Typography( + bodyLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) + /* Other default text styles to override + titleLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 22.sp, + lineHeight = 28.sp, + letterSpacing = 0.sp + ), + labelSmall = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Medium, + fontSize = 11.sp, + lineHeight = 16.sp, + letterSpacing = 0.5.sp + ) + */ +) \ No newline at end of file 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 00000000..2b068d11 --- /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/button_toggle.xml b/app/src/main/res/drawable/button_toggle.xml new file mode 100644 index 00000000..63251bb4 --- /dev/null +++ b/app/src/main/res/drawable/button_toggle.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/car_background.xml b/app/src/main/res/drawable/car_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/car_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/doremon_background.xml b/app/src/main/res/drawable/doremon_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/doremon_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ellipse_1.xml b/app/src/main/res/drawable/ellipse_1.xml new file mode 100644 index 00000000..43060f2c --- /dev/null +++ b/app/src/main/res/drawable/ellipse_1.xml @@ -0,0 +1,9 @@ + + + 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 00000000..07d5da9c --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/lion_background.xml b/app/src/main/res/drawable/lion_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/lion_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/pawpatrol_background.xml b/app/src/main/res/drawable/pawpatrol_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/pawpatrol_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/peppapig_background.xml b/app/src/main/res/drawable/peppapig_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/peppapig_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/science_background.xml b/app/src/main/res/drawable/science_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/science_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/volume_background.xml b/app/src/main/res/drawable/volume_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/volume_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/volume_dark_background.xml b/app/src/main/res/drawable/volume_dark_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/volume_dark_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/whitecircle_background.xml b/app/src/main/res/drawable/whitecircle_background.xml new file mode 100644 index 00000000..ca3826a4 --- /dev/null +++ b/app/src/main/res/drawable/whitecircle_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 00000000..0463d6be --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +