[
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n/.idea/caches\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n/.idea/navEditor.xml\n/.idea/assetWizardSettings.xml\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n.cxx\nlocal.properties\n"
  },
  {
    "path": ".idea/.gitignore",
    "content": "# Default ignored files\n/shelf/\n/workspace.xml\n"
  },
  {
    "path": ".idea/compiler.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"CompilerConfiguration\">\n    <bytecodeTargetLevel target=\"11\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/gradle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleMigrationSettings\" migrationVersion=\"1\" />\n  <component name=\"GradleSettings\">\n    <option name=\"linkedExternalProjectsSettings\">\n      <GradleProjectSettings>\n        <option name=\"testRunner\" value=\"GRADLE\" />\n        <option name=\"distributionType\" value=\"DEFAULT_WRAPPED\" />\n        <option name=\"externalProjectPath\" value=\"$PROJECT_DIR$\" />\n        <option name=\"gradleJvm\" value=\"Embedded JDK\" />\n        <option name=\"modules\">\n          <set>\n            <option value=\"$PROJECT_DIR$\" />\n            <option value=\"$PROJECT_DIR$/app\" />\n          </set>\n        </option>\n      </GradleProjectSettings>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/misc.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ExternalStorageConfigurationManager\" enabled=\"true\" />\n  <component name=\"ProjectRootManager\" version=\"2\" languageLevel=\"JDK_11\" default=\"true\" project-jdk-name=\"11\" project-jdk-type=\"JavaSDK\">\n    <output url=\"file://$PROJECT_DIR$/build/classes\" />\n  </component>\n  <component name=\"ProjectType\">\n    <option name=\"id\" value=\"Android\" />\n  </component>\n</project>"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "README.md",
    "content": "# ANDROID MASTER\n\n<p align=\"center\">\n<a href=\"https://youtu.be/vJapzH_46a8\"><img src=\"https://i.imgur.com/ma1kNJS.jpg\" style=\"height: 75%; width:75%;\"/></center></a></p>\n\n\nAprende a programar sin conocimientos previos. Empezaremos desde lo más básico hasta conseguir desarrollar una aplicación completa.\n\n## Aprende a PROGRAMAR aplicaciones ANDROID en KOTLIN desde CERO.\n\nEl curso se irá haciendo en DIRECTO en [TWITCH](https://www.twitch.tv/aristidevs), donde además de explicar resolveré dudas y haremos ejercicios. Una vez esté el contenido grabado y editado se irá subiendo a [YOUTUBE](https://www.youtube.com/@aristidevs). \n\nEl temario del curso será: \n<br />\n- [¿Qué es Kotlin?](https://youtu.be/vJapzH_46a8)\n- [Instalar Android Studio para Kotlin](https://youtu.be/vJapzH_46a8?t=200)\n- [Valores y variables en Kotlin](https://youtu.be/vJapzH_46a8?t=1097)\n- [Trabajando con variables en Kotlin](https://youtu.be/vJapzH_46a8?t=2275)\n- [Funciones en Kotlin](https://youtu.be/vJapzH_46a8?t=3128)\n- [Funciones con parámetros de entrada y salida](https://youtu.be/vJapzH_46a8?t=3699)\n- [Instrucciones if-else en Kotlin](https://youtu.be/vJapzH_46a8?t=4428)\n- [Expresión when en Kotlin](https://youtu.be/vJapzH_46a8?t=6334)\n- [Nulabilidad](https://youtu.be/vJapzH_46a8?t=7666)\n- [Ejercicios If-else/When](https://youtu.be/vJapzH_46a8?t=8097)\n- [Arrays en Kotlin](https://youtu.be/vJapzH_46a8?t=9141)\n- [Listas en Kotlin](https://youtu.be/vJapzH_46a8?t=10165)\n- [Desarrollando nuestra primera APP](https://youtu.be/vJapzH_46a8?t=11200)\n  - Navegación de pantallas\n- [Crear un menú para navegar entre apps](https://youtu.be/vJapzH_46a8?t=14874)\n- [Diseñar y programar app completa IMC](https://youtu.be/vJapzH_46a8?t=15773)\n  - Cambios entre pantallas\n  - Gestión y creación de colores\n  - Diseño de UI\n  - CardView\n  - RangeSlider\n  - Compatibilidad con múltiples idiomas (Strings)\n  - Listeners y clicks\n- [Diseñar y programar app completa TODO](https://youtu.be/vJapzH_46a8?t=23805)\n  - Recyclerview\n  - Dialog\n  - Sealed class\n  - Funciones lambdas\n- [Diseñar y programar una buscador de Superhéroes](https://youtu.be/ndqIqh6joGA?t=9)\n  - SearchView\n  - Consumo de APIs con Retrofit\n  - Funciones lambdas\n  - Recyclerview\n- [Diseñar y programar una pantalla de ajustes con persistencia de datos](https://youtu.be/ndqIqh6joGA?t=10446)\n  - Persistencia de datos con DataStore\n  - Switch y RangeSlider\n  - Modo noche\n\n\n---\n\n## Aplicaciones desarrolladas durante el curso.\n\n### Calculador IMC.\n\n|                               Pantalla principal                               |                                   Resultado                                    |\n|:------------------------------------------------------------------------------:|:------------------------------------------------------------------------------:|\n|  <img src=\"https://i.imgur.com/F6rSzsI.png\" style=\"height: 50%; width:50%;\"/>  |  <img src=\"https://i.imgur.com/lH1NBas.png\" style=\"height: 50%; width:50%;\"/>  |\n\n### Organizador de tareas.\n\n|                              Pantalla principal                              |                               Añadiendo tareas                               |\n|:----------------------------------------------------------------------------:|:----------------------------------------------------------------------------:|\n| <img src=\"https://i.imgur.com/uvVh4Q9.png\" style=\"height: 50%; width:50%;\"/> | <img src=\"https://i.imgur.com/GhHuj6c.png\" style=\"height: 50%; width:50%;\"/> |\n\n### Buscador de superhéroes.\n\n|                              Pantalla principal                              |                               Añadiendo tareas                               |\n|:----------------------------------------------------------------------------:|:----------------------------------------------------------------------------:|\n| <img src=\"https://i.imgur.com/XNwTHjy.png\" style=\"height: 50%; width:50%;\"/> | <img src=\"https://i.imgur.com/xYOssJf.png\" style=\"height: 50%; width:50%;\"/> |\n\n### Pantalla de ajustes.\n\n|                              Pantalla principal                              |                               Añadiendo tareas                               |\n|:----------------------------------------------------------------------------:|:----------------------------------------------------------------------------:|\n| <img src=\"https://i.imgur.com/HnYQIew.png\" style=\"height: 50%; width:50%;\"/> | <img src=\"https://i.imgur.com/p1Yn1gt.png\" style=\"height: 50%; width:50%;\"/> |\n\n---\n\n## Preguntas habituales.\n\n* **¿Necesito saber programar?**\n\t* NO, este curso es realmente DESDE CERO.\n\n* **¿Habrán ejercicios?**\n\t* Al final de la clase se pondrán ejercicios que se resolverán al inicio de la clase siguiente.\n\n* **¿Y si tengo dudas?**\n    * Tienes un canal exclusivo para dudas del curso en el [DISCORD](https://discord.com/invite/SVBExkcGyV?fbclid=IwAR02ojS9ErZfGhl3DQjEZHoX92LX8WWj98JYLVAn7OgMXVrrtf86kfYtvhE) llamado **🖥-twitch-curso-android**.\n\n---\n\n## COLABORA.\n\nEste proyecto es totalmente GRATUITO por lo que puedes aportar tu grano de arena de múltiples formas.\n\n- Dale a FAV al proyecto (Star)\n- Comparte el [tuit original](https://twitter.com/AristiDevs/status/1598613278430633984) para que llegue a más gente\n- Sígueme en mis [redes sociales](https://aristi.dev)\n- Nomíname a [GITHUB STAR](https://stars.github.com/nominate/)\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build"
  },
  {
    "path": "app/build.gradle",
    "content": "plugins {\n    id 'com.android.application'\n    id 'org.jetbrains.kotlin.android'\n}\n\nandroid {\n    namespace 'com.aristidevs.androidmaster'\n    compileSdk 32\n\n    defaultConfig {\n        applicationId \"com.aristidevs.androidmaster\"\n        minSdk 21\n        targetSdk 32\n        versionCode 1\n        versionName \"1.0\"\n\n        testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n    }\n\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'\n        }\n    }\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n    kotlinOptions {\n        jvmTarget = '1.8'\n    }\n\n    viewBinding {\n        enable = true\n    }\n}\n\ndependencies {\n\n    implementation 'androidx.core:core-ktx:1.7.0'\n    implementation 'androidx.appcompat:appcompat:1.5.1'\n    implementation 'com.google.android.material:material:1.7.0'\n    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'\n\n    //Retrofit\n    implementation \"com.squareup.retrofit2:retrofit:2.9.0\"\n    implementation \"com.squareup.retrofit2:converter-gson:2.9.0\"\n\n    //Picasso\n    implementation 'com.squareup.picasso:picasso:2.8'\n\n    //DataStore\n    implementation \"androidx.datastore:datastore-preferences:1.0.0\"\n\n    testImplementation 'junit:junit:4.13.2'\n    androidTestImplementation 'androidx.test.ext:junit:1.1.4'\n    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'\n\n\n}"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile"
  },
  {
    "path": "app/src/androidTest/java/com/aristidevs/androidmaster/ExampleInstrumentedTest.kt",
    "content": "package com.aristidevs.androidmaster\n\nimport androidx.test.platform.app.InstrumentationRegistry\nimport androidx.test.ext.junit.runners.AndroidJUnit4\n\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\nimport org.junit.Assert.*\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\n@RunWith(AndroidJUnit4::class)\nclass ExampleInstrumentedTest {\n    @Test\n    fun useAppContext() {\n        // Context of the app under test.\n        val appContext = InstrumentationRegistry.getInstrumentation().targetContext\n        assertEquals(\"com.aristidevs.androidmaster\", appContext.packageName)\n    }\n}"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n\n    <application\n        android:allowBackup=\"true\"\n        android:dataExtractionRules=\"@xml/data_extraction_rules\"\n        android:fullBackupContent=\"@xml/backup_rules\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/Theme.AndroidMaster\"\n        tools:targetApi=\"31\">\n        <activity\n            android:name=\".settings.SettingsActivity\"\n            android:exported=\"false\" />\n        <activity\n            android:name=\".superheroapp.DetailSuperheroActivity\"\n            android:exported=\"false\" />\n        <activity\n            android:name=\".superheroapp.SuperHeroListActivity\"\n            android:exported=\"false\" />\n        <activity\n            android:name=\".todoapp.TodoActivity\"\n            android:exported=\"false\"\n            android:theme=\"@style/Theme.TODOApp\">\n            <meta-data\n                android:name=\"android.app.lib_name\"\n                android:value=\"\" />\n        </activity>\n        <activity\n            android:name=\".imccalculator.ResultIMCActivity\"\n            android:exported=\"false\">\n            <meta-data\n                android:name=\"android.app.lib_name\"\n                android:value=\"\" />\n        </activity>\n        <activity\n            android:name=\".imccalculator.ImcCalculatorActivity\"\n            android:exported=\"false\">\n            <meta-data\n                android:name=\"android.app.lib_name\"\n                android:value=\"\" />\n        </activity>\n        <activity\n            android:name=\".MenuActivity\"\n            android:exported=\"true\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n\n            <meta-data\n                android:name=\"android.app.lib_name\"\n                android:value=\"\" />\n        </activity>\n        <activity\n            android:name=\".firstapp.ResultActivity\"\n            android:exported=\"false\">\n            <meta-data\n                android:name=\"android.app.lib_name\"\n                android:value=\"\" />\n        </activity>\n        <activity\n            android:name=\".firstapp.FirstAppActivity\"\n            android:exported=\"true\">\n            <meta-data\n                android:name=\"android.app.lib_name\"\n                android:value=\"\" />\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/MenuActivity.kt",
    "content": "package com.aristidevs.androidmaster\n\nimport android.content.Intent\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.widget.Button\nimport com.aristidevs.androidmaster.firstapp.FirstAppActivity\nimport com.aristidevs.androidmaster.imccalculator.ImcCalculatorActivity\nimport com.aristidevs.androidmaster.settings.SettingsActivity\nimport com.aristidevs.androidmaster.superheroapp.SuperHeroListActivity\nimport com.aristidevs.androidmaster.todoapp.TodoActivity\n\nclass MenuActivity : AppCompatActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_menu)\n        val btnSaludApp = findViewById<Button>(R.id.btnSaludApp)\n        val btnImcApp = findViewById<Button>(R.id.btnIMCApp)\n        val btnTODO = findViewById<Button>(R.id.btnTODO)\n        val btnSuperhero = findViewById<Button>(R.id.btnSuperhero)\n        val btnSettings = findViewById<Button>(R.id.btnSettings)\n\n        btnSaludApp.setOnClickListener { navigateToSaludApp() }\n        btnImcApp.setOnClickListener { navigateToImcApp() }\n        btnTODO.setOnClickListener { navigateToTodoApp() }\n        btnSuperhero.setOnClickListener { navigateToSuperheroApp() }\n        btnSettings.setOnClickListener { navigateToSettings() }\n    }\n\n    private fun navigateToSettings() {\n        val intent = Intent(this, SettingsActivity::class.java)\n        startActivity(intent)\n    }\n\n    private fun navigateToTodoApp() {\n        val intent = Intent(this, TodoActivity::class.java)\n        startActivity(intent)\n    }\n\n    private fun navigateToImcApp() {\n        val intent = Intent(this, ImcCalculatorActivity::class.java)\n        startActivity(intent)\n    }\n\n    private fun navigateToSaludApp(){\n        val intent = Intent(this, FirstAppActivity::class.java)\n        startActivity(intent)\n    }\n\n    private fun navigateToSuperheroApp(){\n        val intent = Intent(this, SuperHeroListActivity::class.java)\n        startActivity(intent)\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/exercises/Exercise1.kt",
    "content": "package com.aristidevs.androidmaster.exercises\n\n/**\nPor lo general, el teléfono te proporciona un resumen de las notificaciones.\n\nEn el código inicial que se proporciona en el siguiente fragmento de código,\nescribe un programa que imprima el mensaje de resumen según la cantidad de\nnotificaciones que recibiste. El mensaje debe incluir lo siguiente:\n\nLa cantidad exacta de notificaciones cuando haya menos de 100\n99+ como cantidad de notificaciones cuando haya 100 o más\n\n RESULTADO:\n - You have 51 notifications.\n - Your phone is blowing up! You have 99+ notifications.\n */\n\n\n\nfun main() {\n    val morningNotification = 51\n    val eveningNotification = 135\n\n    printNotificationSummary(morningNotification)\n    printNotificationSummary(eveningNotification)\n}\n\nfun printNotificationSummary(numberOfMessages: Int) {\n    if(numberOfMessages >= 100){\n        println(\"Your phone is blowing up! You have 99+ notifications.\")\n    }else{\n        println(\"You have $numberOfMessages notifications.\")\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/exercises/Exercise2.kt",
    "content": "package com.aristidevs.androidmaster.exercises\n\n/**\n * Las entradas de cine suelen tener un precio diferente según la edad de los espectadores.\n\nEn el código inicial que se proporciona en el siguiente fragmento de código, escribe un programa que calcule los precios de estas entradas basados en la edad:\n\nUn precio de entrada infantil de USD 15 para personas de 12 años o menos.\nUn precio de entrada estándar de USD 30 para personas de entre 13 y 60 años. Los lunes, un precio estándar con descuento de USD 25 para el mismo grupo etario\nUn precio para adultos mayores de USD 20 para personas de 61 años o más (asumimos que la edad máxima de un espectador es de 100 años)\nUn valor de -1 para indicar que el precio no es válido cuando un usuario ingresa una edad fuera de las especificaciones\n\nRESULTADO:\n- The movie ticket price for a person aged 5 is $15.\n- The movie ticket price for a person aged 28 is $25.\n- The movie ticket price for a person aged 87 is $20.\n */\n\nfun main() {\n    val child = 5\n    val adult = 28\n    val senior = 87\n\n    val isMonday = true\n\n    println(\n        \"The movie ticket price for a person aged $child is  \\$${\n            ticketPrice(\n                child,\n                isMonday\n            )\n        }.\"\n    )\n    println(\"The movie ticket price for a person aged $adult is \\$${ticketPrice(adult, isMonday)}.\")\n    println(\n        \"The movie ticket price for a person aged $senior is \\$${\n            ticketPrice(\n                senior,\n                isMonday\n            )\n        }.\"\n    )\n}\n\nfun ticketPrice(age: Int, isMonday: Boolean): Int {\n    return when (age) {\n        in 0..12 -> 15\n        in 13..60 -> if (isMonday) 25 else 30\n        in 61..100 -> 20\n        else -> -1\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/exercises/Exercise3.kt",
    "content": "package com.aristidevs.androidmaster.exercises\n\n/**\n * En el mundo, se usan tres escalas de temperatura principales: Celsius, Fahrenheit y Kelvin.\n\nEn el código inicial que se proporciona en el siguiente fragmento de código, escribe un programa\nque convierta una temperatura de una escala a otra con estas fórmulas:\n\nDe grados Celsius a Fahrenheit: °F = 9/5 (°C) + 32\nKelvin a Celsius: °C = K - 273.15\nDe Fahrenheit a Kelvin: K = 5/9 (°F - 32) + 273.15\nTen en cuenta que el método String.format(\"%.2f\", /* measurement */ ) se\nusa para convertir un número en un tipo String con 2 decimales.\n */\n\n\n//WIP hacer cuando expliquemos las Lambdas\n\nfun main() {\n    // Fill in the code.\n}\n\nfun printFinalTemperature(\n    initialMeasurement: Double,\n    initialUnit: String,\n    finalUnit: String,\n    conversionFormula: (Double) -> Double\n) {\n    val finalMeasurement = String.format(\"%.2f\", conversionFormula(initialMeasurement))\n    println(\"$initialMeasurement degrees $initialUnit is $finalMeasurement degrees $finalUnit.\")\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/exercises/Exercise4.kt",
    "content": "package com.aristidevs.androidmaster.exercises\n\n"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/firstapp/FirstAppActivity.kt",
    "content": "package com.aristidevs.androidmaster.firstapp\n\nimport android.content.Intent\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.util.Log\nimport android.widget.Button\nimport androidx.appcompat.widget.AppCompatButton\nimport androidx.appcompat.widget.AppCompatEditText\nimport com.aristidevs.androidmaster.R\n\nclass FirstAppActivity : AppCompatActivity() {\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_first_app)\n        val btnStart = findViewById<AppCompatButton>(R.id.btnStart)\n        val etName = findViewById<AppCompatEditText>(R.id.etName)\n\n        btnStart.setOnClickListener {\n            val name = etName.text.toString()\n\n            if (name.isNotEmpty()) {\n                val intent = Intent(this, ResultActivity::class.java)\n                intent.putExtra(\"EXTRA_NAME\", name)\n                startActivity(intent)\n            }\n        }\n        //Al arrancar la pantalla\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/firstapp/ResultActivity.kt",
    "content": "package com.aristidevs.androidmaster.firstapp\n\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.widget.TextView\nimport com.aristidevs.androidmaster.R\n\nclass ResultActivity : AppCompatActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_result)\n        val tvResult = findViewById<TextView>(R.id.tvResult)\n        val name: String = intent.extras?.getString(\"EXTRA_NAME\").orEmpty()\n        tvResult.text = \"Hola $name\"\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/imccalculator/ImcCalculatorActivity.kt",
    "content": "package com.aristidevs.androidmaster.imccalculator\n\nimport android.content.Context\nimport android.content.Intent\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.util.Log\nimport android.widget.Button\nimport android.widget.TextView\nimport androidx.cardview.widget.CardView\nimport androidx.core.content.ContextCompat\nimport com.aristidevs.androidmaster.R\nimport com.google.android.material.floatingactionbutton.FloatingActionButton\nimport com.google.android.material.slider.RangeSlider\nimport org.w3c.dom.Text\nimport java.text.DecimalFormat\n\nclass ImcCalculatorActivity : AppCompatActivity() {\n\n    private var isMaleSelected: Boolean = true\n    private var isFemaleSelected: Boolean = false\n    private var currentWeight: Int = 70\n    private var currentAge: Int = 30\n    private var currentHeight: Int = 120\n\n    private lateinit var viewMale: CardView\n    private lateinit var viewFemale: CardView\n    private lateinit var tvHeight: TextView\n    private lateinit var rsHeight: RangeSlider\n    private lateinit var btnSubtractWeight: FloatingActionButton\n    private lateinit var btnPlusWeight: FloatingActionButton\n    private lateinit var tvWeight: TextView\n    private lateinit var btnSubtractAge: FloatingActionButton\n    private lateinit var btnPlusAge: FloatingActionButton\n    private lateinit var tvAge: TextView\n    private lateinit var btnCalculate: Button\n\n    companion object{\n        const val IMC_KEY = \"IMC_RESULT\"\n    }\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_imc_calculator)\n        initComponents()\n        initListeners()\n        initUI()\n    }\n\n    private fun initComponents() {\n        viewMale = findViewById(R.id.viewMale)\n        viewFemale = findViewById(R.id.viewFemale)\n        tvHeight = findViewById(R.id.tvHeight)\n        rsHeight = findViewById(R.id.rsHeight)\n        btnSubtractWeight = findViewById(R.id.btnSubtractWeight)\n        btnPlusWeight = findViewById(R.id.btnPlusWeight)\n        tvWeight = findViewById(R.id.tvWeight)\n        btnSubtractAge = findViewById(R.id.btnSubtractAge)\n        btnPlusAge = findViewById(R.id.btnPlusAge)\n        tvAge = findViewById(R.id.tvAge)\n        btnCalculate = findViewById(R.id.btnCalculate)\n    }\n\n    private fun initListeners() {\n        viewMale.setOnClickListener {\n            changeGender()\n            setGenderColor()\n        }\n        viewFemale.setOnClickListener {\n            changeGender()\n            setGenderColor()\n        }\n        rsHeight.addOnChangeListener { _, value, _ ->\n            val df = DecimalFormat(\"#.##\")\n            currentHeight = df.format(value).toInt()\n            tvHeight.text = \"$currentHeight cm\"\n        }\n        btnPlusWeight.setOnClickListener {\n            currentWeight += 1\n            setWeight()\n        }\n        btnSubtractWeight.setOnClickListener {\n            currentWeight -= 1\n            setWeight()\n        }\n        btnPlusAge.setOnClickListener {\n            currentAge += 1\n            setAge()\n        }\n        btnSubtractAge.setOnClickListener {\n            currentAge -= 1\n            setAge()\n        }\n        btnCalculate.setOnClickListener {\n            val result = calculateIMC()\n            navigateToResult(result)\n        }\n    }\n\n    private fun navigateToResult(result: Double) {\n        val intent = Intent(this, ResultIMCActivity::class.java)\n        intent.putExtra(IMC_KEY, result)\n        startActivity(intent)\n    }\n\n    private fun calculateIMC():Double {\n        val df = DecimalFormat(\"#.##\")\n        val imc = currentWeight / (currentHeight.toDouble() /100 * currentHeight.toDouble()/100)\n        return df.format(imc).toDouble()\n    }\n\n    private fun setAge() {\n        tvAge.text = currentAge.toString()\n    }\n\n    private fun setWeight() {\n        tvWeight.text = currentWeight.toString()\n    }\n\n    private fun changeGender() {\n        isMaleSelected = !isMaleSelected\n        isFemaleSelected = !isFemaleSelected\n    }\n\n    private fun setGenderColor() {\n        viewMale.setCardBackgroundColor(getBackgroundColor(isMaleSelected))\n        viewFemale.setCardBackgroundColor(getBackgroundColor(isFemaleSelected))\n    }\n\n    private fun getBackgroundColor(isSelectedComponent: Boolean): Int {\n\n        val colorReference = if (isSelectedComponent) {\n            R.color.background_component_selected\n        } else {\n            R.color.background_component\n        }\n\n        return ContextCompat.getColor(this, colorReference)\n    }\n\n\n    private fun initUI() {\n        setGenderColor()\n        setWeight()\n        setAge()\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/imccalculator/ResultIMCActivity.kt",
    "content": "package com.aristidevs.androidmaster.imccalculator\n\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.widget.Button\nimport android.widget.TextView\nimport androidx.core.content.ContextCompat\nimport com.aristidevs.androidmaster.R\nimport com.aristidevs.androidmaster.imccalculator.ImcCalculatorActivity.Companion.IMC_KEY\n\nclass ResultIMCActivity : AppCompatActivity() {\n\n    private lateinit var tvResult:TextView\n    private lateinit var tvIMC:TextView\n    private lateinit var tvDescription:TextView\n    private lateinit var btnRecalculate:Button\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_result_imcactivity)\n        val result:Double = intent.extras?.getDouble(IMC_KEY) ?: -1.0\n        initComponents()\n        initUI(result)\n        initListeners()\n    }\n\n    private fun initListeners() {\n        btnRecalculate.setOnClickListener { onBackPressed() }\n    }\n\n    private fun initUI(result: Double) {\n        tvIMC.text = result.toString()\n        when(result){\n            in 0.00..18.50 -> { //Bajo peso\n                tvResult.text = getString(R.string.title_bajo_peso)\n                tvResult.setTextColor(ContextCompat.getColor(this, R.color.peso_bajo))\n                tvDescription.text = getString(R.string.description_bajo_peso)\n            }\n            in 18.51..24.99 -> { //Peso normal\n                tvResult.text = getString(R.string.title_peso_normal)\n                tvResult.setTextColor(ContextCompat.getColor(this, R.color.peso_normal))\n                tvDescription.text = getString(R.string.description_peso_normal)\n            }\n            in 25.00..29.99 -> { //Sobrepeso\n                tvResult.text = getString(R.string.title_sobrepeso)\n                tvResult.setTextColor(ContextCompat.getColor(this, R.color.peso_sobrepeso))\n                tvDescription.text = getString(R.string.description_sobrepeso)\n            }\n            in 30.00..99.00 -> { //Obesidad\n                tvResult.text = getString(R.string.title_obesidad)\n                tvResult.setTextColor(ContextCompat.getColor(this, R.color.obesidad))\n                tvDescription.text = getString(R.string.description_obesidad)\n            }\n            else -> {//error\n                tvIMC.text = getString(R.string.error)\n                tvResult.text = getString(R.string.error)\n                tvResult.setTextColor(ContextCompat.getColor(this, R.color.obesidad))\n                tvDescription.text = getString(R.string.error)\n            }\n        }\n    }\n\n    private fun initComponents() {\n        tvIMC = findViewById(R.id.tvIMC)\n        tvResult = findViewById(R.id.tvResult)\n        tvDescription = findViewById(R.id.tvDescription)\n        btnRecalculate = findViewById(R.id.btnRecalculate)\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/settings/SettingsActivity.kt",
    "content": "package com.aristidevs.androidmaster.settings\n\nimport android.content.Context\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.util.Log\nimport androidx.appcompat.app.AppCompatDelegate\nimport androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO\nimport androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.*\nimport androidx.datastore.preferences.preferencesDataStore\nimport com.aristidevs.androidmaster.databinding.ActivitySettingsBinding\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.filter\nimport kotlinx.coroutines.flow.map\nimport kotlinx.coroutines.launch\n\nval Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = \"settings\")\n\nclass SettingsActivity : AppCompatActivity() {\n\n    companion object {\n        const val VOLUME_LVL = \"volume_lvl\"\n        const val KEY_BLUETOOTH = \"key_bluetooth\"\n        const val KEY_VIBRATION = \"key_vibration\"\n        const val KEY_DARK_MODE = \"key_dark_mode\"\n    }\n\n    private lateinit var binding: ActivitySettingsBinding\n    private var firstTime:Boolean = true\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        binding = ActivitySettingsBinding.inflate(layoutInflater)\n        setContentView(binding.root)\n\n        CoroutineScope(Dispatchers.IO).launch {\n            getSettings().filter { firstTime }.collect { settingsModel ->\n                if (settingsModel != null) {\n                    runOnUiThread {\n                        binding.switchVibration.isChecked = settingsModel.vibration\n                        binding.switchBluetooth.isChecked = settingsModel.bluetooth\n                        binding.switchDarkMode.isChecked = settingsModel.darkMode\n                        binding.rsVolume.setValues(settingsModel.volume.toFloat())\n                        firstTime = !firstTime\n                    }\n                }\n            }\n        }\n\n        initUI()\n    }\n\n    private fun initUI() {\n        binding.rsVolume.addOnChangeListener { _, value, _ ->\n            Log.i(\"Aris\", \"El valor es $value\")\n            CoroutineScope(Dispatchers.IO).launch {\n                saveVolume(value.toInt())\n            }\n        }\n\n        binding.switchBluetooth.setOnCheckedChangeListener { _, value ->\n            CoroutineScope(Dispatchers.IO).launch {\n                saveOptions(KEY_BLUETOOTH, value)\n            }\n        }\n\n        binding.switchVibration.setOnCheckedChangeListener { _, value ->\n            CoroutineScope(Dispatchers.IO).launch {\n                saveOptions(KEY_VIBRATION, value)\n            }\n        }\n\n        binding.switchDarkMode.setOnCheckedChangeListener { _, value ->\n\n            if(value){\n                enableDarkMode()\n            }else{\n                disableDarkMode()\n            }\n\n            CoroutineScope(Dispatchers.IO).launch {\n                saveOptions(KEY_DARK_MODE, value)\n            }\n        }\n    }\n\n    private suspend fun saveVolume(value: Int) {\n        dataStore.edit { preferences ->\n            preferences[intPreferencesKey(VOLUME_LVL)] = value\n        }\n    }\n\n    private suspend fun saveOptions(key: String, value: Boolean) {\n        dataStore.edit { preferences ->\n            preferences[booleanPreferencesKey(key)] = value\n        }\n    }\n\n    private fun getSettings(): Flow<SettingsModel?> {\n        return dataStore.data.map { preferences ->\n            SettingsModel(\n                volume = preferences[intPreferencesKey(VOLUME_LVL)] ?: 50,\n                bluetooth = preferences[booleanPreferencesKey(KEY_BLUETOOTH)] ?: true,\n                darkMode = preferences[booleanPreferencesKey(KEY_DARK_MODE)] ?: false,\n                vibration = preferences[booleanPreferencesKey(KEY_VIBRATION)] ?: true\n            )\n        }\n    }\n\n    private fun enableDarkMode(){\n        AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_YES)\n        delegate.applyDayNight()\n    }\n\n    private fun disableDarkMode(){\n        AppCompatDelegate.setDefaultNightMode(MODE_NIGHT_NO)\n        delegate.applyDayNight()\n    }\n}\n\n\n\n\n\n\n\n"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/settings/SettingsModel.kt",
    "content": "package com.aristidevs.androidmaster.settings\n\ndata class SettingsModel(\n    var volume: Int,\n    var bluetooth: Boolean,\n    var darkMode: Boolean,\n    var vibration: Boolean\n)"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/Arrays.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\nfun main() {\n    var name: String = \"AristiDevs\"\n    var name1: String = \"AristiDevs\"\n    var name2: String = \"AristiDevs\"\n    var name3: String = \"AristiDevs\"\n\n    //Indice 0-7\n    //Tamaño 8\n    val weekDays = arrayOf(\"Lunes\", \"Martes\", \"Miércoles\", \"Jueves\", \"Viernes\", \"Sábado\", \"Domingo\")\n\n//    println(weekDays[0])\n//    println(weekDays.size)\n\n    //Tamaños\n    if (weekDays.size >= 8) {\n//        println(weekDays[7])\n    } else {\n//        println(\"No hay mas valores en el array\")\n    }\n\n    //Modificar valores\n    weekDays[0] = \"Feliz lunes\"\n//    println(weekDays[0])\n\n\n    //Bucles para Arrays\n    for(position in weekDays.indices){\n//       println(weekDays[position])\n    }\n\n    for((position, value) in weekDays.withIndex()){\n//        println(\"La posición $position, contiene $value\")\n    }\n\n    for (SUSCRIBETE in weekDays){\n        println(\"Ahora es $SUSCRIBETE\")\n    }\n\n    weekDays.forEach { it }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/IfElse.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\nfun main() {\n    ifMultipleOR()\n}\n\nfun ifMultipleOR(){\n    var pet = \"cat\"\n    var isHappy = true\n\n    if(pet == \"dog\" || (pet == \"cat\" && isHappy)){\n        print(\"Es un gato o un perro\")\n    }\n}\n\nfun ifMultiple(){\n    var age = 18\n    var parentPermission = false\n    var imHappy = true\n\n    if(age >= 18 && parentPermission && imHappy){\n        println(\"Puedo beber cerveza\")\n    }\n\n}\n\nfun ifInt(){\n    var age = 18\n\n    if(age >= 18){\n        println(\"Beber cerveza\")\n    }else{\n        println(\"Beber jugo\")\n    }\n}\n\nfun ifBoolean(){\n    var soyFeliz:Boolean = false\n\n    //sin nada == true\n    // con ! al principio == false\n\n    if(!soyFeliz){\n        print(\"Estoy triste :(\")\n    }\n}\n\nfun ifAnidado() {\n    val animal = \"Aris\"\n\n    if (animal == \"dog\") {\n        println(\"Es un perrito!\")\n    } else if (animal == \"cat\") {\n        println(\"Es un gato\")\n    } else if (animal == \"bird\") {\n        println(\"Es un pajaro\")\n    } else {\n        println(\"No es uno de los animales esperados\")\n    }\n\n\n}\n\nfun ifBasico() {\n    val name = \"Aris\"\n\n    if (name == \"Aris\") {\n        println(\"Oye, la variable name es ARIS\")\n    } else {\n        println(\"Este no es Aris\")\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/List.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\nfun main(){\n    mutableList()\n}\n\nfun mutableList() {\n    val weekDays:MutableList<String> = mutableListOf(\"Lunes\", \"Martes\", \"Miércoles\", \"Jueves\", \"Viernes\", \"Sábado\", \"Domingo\")\n    weekDays.add(3,\"AristiDay\")\n    println(weekDays)\n\n    if(weekDays.isEmpty()){\n        //No voy a pintar nada porque no hay\n    }else{\n        weekDays.forEach { println(it) }\n    }\n\n    if(weekDays.isNotEmpty()){\n        weekDays.forEach { println(it) }\n    }\n\n    weekDays.last()\n\n    for(SUSCRIBETE in weekDays){\n\n    }\n\n    weekDays.forEach {  }\n}\n\nfun inmutableList(){\n    val readOnly:List<String> = listOf(\"Lunes\", \"Martes\", \"Miércoles\", \"Jueves\", \"Viernes\", \"Sábado\", \"Domingo\")\n\n    println(readOnly.size)\n    println(readOnly)\n    println(readOnly[0])\n    println(readOnly.last())\n    println(readOnly.first())\n\n//    Filtrar\n    val example = readOnly.filter { it.contains(\"a\")  }\n    println(example)\n\n    //Iterar\n    readOnly.forEach { weekDay -> println(weekDay) }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/Nulabilidad.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\nfun main(){\n    var name:String? = \"AristiDevs SUSCRIBE\"\n\n    println(name?.get(3) ?:  \"Es nullo wey\")\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/UserDataClass.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\ndata class UserDataClass(val name: String, val nickname: String, var isHappy: Boolean)\n\ndata class SuperHero(\n    var superhero: String,\n    var publisher: String,\n    var realName: String,\n    var photo: String\n)\n\nclass ExampleDataClass {\n\n    val batman: SuperHero = SuperHero(\n        \"Batman\",\n        \"DC\",\n        \"Bruce Wayne\",\n        \"https://cursokotlin.com/wp-content/uploads/2017/07/batman.jpg\"\n    )\n\n    fun example(){\n        batman.superhero = \"El hombre murciélago\"\n        batman.component4()\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/VariablesYFunciones.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\nval age: Int = 30\n\nfun main() {\n    showMyName()\n    showMyAge()\n    add(25, 76)\n    val mySubtract = subtract(10, 5)\n    println(mySubtract)\n}\n\nfun showMyName() {\n    println(\"Me llamo AristiDevs\")\n}\n\nfun showMyAge(currentAge: Int = 30) {\n    println(\"Tengo $currentAge años\")\n}\n\nfun add(firstNumber: Int, secondNumber: Int) {\n    println(firstNumber + secondNumber)\n}\n\nfun subtract(firstNumber: Int, secondNumber: Int):Int {\n    return firstNumber - secondNumber\n}\n\nfun subtractCool(firstNumber: Int, secondNumber: Int) = firstNumber - secondNumber\n\n\n\nfun variablesAlfaNumericas() {\n    /**\n     * Variables Alfanuméricas\n     */\n\n    //Char\n    val charExample1: Char = 'e'\n    val charExample2: Char = '2'\n    val charExample3: Char = '@'\n\n    //String\n    val stringExample: String = \"AristiDevs suscribete\"\n    val stringExample2 = \"AristiDevs\"\n    val stringExample3 = \"4\"\n    val stringExample4 = \"23\"\n\n    var stringConcatenada: String = \"Hola\"\n    stringConcatenada = \"Hola me llamo $stringExample2 y tengo $age años\"\n    print(stringConcatenada)\n    val example123: String = age.toString()\n}\n\nfun variablesBoolean() {\n    /**\n     * Variables booleanas\n     */\n\n    //Boolean\n    val booleanExample: Boolean = true\n    val booleanExample2: Boolean = false\n    val booleanExample3 = false\n}\n\nfun variablesNumericas() {\n    /**\n     * Variables Numéricas\n     */\n\n    //Int -2,147,483,647 a 2,147,483,647\n    var age2: Int = 30\n    age2 = 29\n\n    //Long -9,223,372,036,854,775,807 a 9,223,372,036,854,775,807\n    val example: Long = 30\n    val example2: Long = 30\n\n    //Float\n    val floatExample: Float = 30.5f\n\n    //Double\n    val doubleExample: Double = 3241.3123123\n\n    println(\"Sumar:\")\n    println(age + age2)\n\n    println(\"Restar\")\n    println(age - age2)\n\n    println(\"Multiplicar\")\n    println(age * age2)\n\n    println(\"División\")\n    println(age / age2)\n\n    println(\"Módulo\")\n    println(age % age2)\n\n    var exampleSuma = age + floatExample\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/sintaxis/When.kt",
    "content": "package com.aristidevs.androidmaster.sintaxis\n\nfun main(){\n    getSemester(2)\n}\n\nfun result(value:Any){\n    when(value){\n        is Int -> value + value\n        is String -> println(value)\n        is Boolean -> if(value) print(\"holiwi\")\n    }\n}\n\nfun getSemester(month: Int) = when(month){\n        in 1..6 ->  \"Primer semestre\"\n        in 7..12 ->   \"Segundo semestre\"\n        !in 1..12 -> \"Semestre no válido\"\n        else ->  \"dawda\"\n    }\n\n\nfun getTrimester(month:Int){\n    when(month){\n        1, 2, 3 -> print(\"Primer trimestre\")\n        4, 5, 6 -> print(\"Segundo trimestre\")\n        7, 8, 9 -> print(\"Tercer trimestre\")\n        10, 11, 12 -> print(\"Cuarto trimestre\")\n        else -> print(\"Trimestre no valido\")\n    }\n}\n\nfun getMonth(month:Int){\n   when(month){\n       1 -> print(\"Enero\")\n       2 -> print(\"Febrero\")\n       3 -> print(\"Marzo\")\n       4 -> print(\"Abril\")\n       5 -> print(\"Mayo\")\n       6 -> print(\"Junio\")\n       7 -> print(\"Julio\")\n       8 -> print(\"Agosto\")\n       9 -> print(\"Septiembre\")\n       10 -> print(\"Octubre\")\n       11 -> {\n           print(\"Noviembre\")\n           print(\"Noviembre\")\n       }\n       12 -> print(\"Diciembre\")\n       else -> print(\"No es un mes válido\")\n   }\n}\n"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/ApiService.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport retrofit2.Response\nimport retrofit2.http.GET\nimport retrofit2.http.Path\n\ninterface ApiService {\n\n    @GET(\"/api/10229233666327556/search/{name}\")\n    suspend fun getSuperheroes(@Path(\"name\") superheroName:String):Response<SuperHeroDataResponse>\n\n    @GET(\"/api/10229233666327556/{id}\")\n    suspend fun getSuperheroDetail(@Path(\"id\") superheroId:String):Response<SuperHeroDetailResponse>\n\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/DetailSuperheroActivity.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.util.Log\nimport android.util.TypedValue\nimport android.view.View\nimport androidx.core.view.isVisible\nimport com.aristidevs.androidmaster.R\nimport com.aristidevs.androidmaster.databinding.ActivityDetailSuperheroBinding\nimport com.squareup.picasso.Picasso\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.launch\nimport retrofit2.Response\nimport retrofit2.Retrofit\nimport retrofit2.converter.gson.GsonConverterFactory\nimport kotlin.math.roundToInt\n\nclass DetailSuperheroActivity : AppCompatActivity() {\n\n    companion object {\n        const val EXTRA_ID = \"extra_id\"\n    }\n\n    private lateinit var binding: ActivityDetailSuperheroBinding\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        binding = ActivityDetailSuperheroBinding.inflate(layoutInflater)\n        setContentView(binding.root)\n        val id: String = intent.getStringExtra(EXTRA_ID).orEmpty()\n        getSuperheroInformation(id)\n    }\n\n    private fun getSuperheroInformation(id: String) {\n        CoroutineScope(Dispatchers.IO).launch {\n            val superheroDetail =\n                getRetrofit().create(ApiService::class.java).getSuperheroDetail(id)\n\n            if(superheroDetail.body() != null){\n                runOnUiThread { createUI(superheroDetail.body()!!) }\n            }\n        }\n    }\n\n    private fun createUI(superhero: SuperHeroDetailResponse) {\n        Picasso.get().load(superhero.image.url).into(binding.ivSuperhero)\n        binding.tvSuperheroName.text = superhero.name\n        prepareStats(superhero.powerstats)\n        binding.tvSuperheroRealName.text = superhero.biography.fullName\n        binding.tvPublisher.text = superhero.biography.publisher\n    }\n\n    private fun prepareStats(powerstats: PowerStatsResponse) {\n        updateHeight(binding.viewCombat, powerstats.combat)\n        updateHeight(binding.viewDurability, powerstats.durability)\n        updateHeight(binding.viewSpeed, powerstats.speed)\n        updateHeight(binding.viewStrength, powerstats.strength)\n        updateHeight(binding.viewIntelligence, powerstats.intelligence)\n        updateHeight(binding.viewPower, powerstats.power)\n    }\n\n    private fun updateHeight(view: View, stat:String){\n        val params = view.layoutParams\n        params.height = pxToDp(stat.toFloat())\n        view.layoutParams = params\n    }\n\n    private fun pxToDp(px:Float):Int{\n        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, px, resources.displayMetrics).roundToInt()\n    }\n\n    private fun getRetrofit(): Retrofit {\n        return Retrofit\n            .Builder()\n            .baseUrl(\"https://superheroapi.com/\")\n            .addConverterFactory(GsonConverterFactory.create())\n            .build()\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/SuperHeroDataResponse.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport com.google.gson.annotations.SerializedName\n\ndata class SuperHeroDataResponse(\n    @SerializedName(\"response\") val response: String,\n    @SerializedName(\"results\") val superheroes: List<SuperheroItemResponse>\n)\n\ndata class SuperheroItemResponse(\n    @SerializedName(\"id\") val superheroId: String,\n    @SerializedName(\"name\") val name: String,\n    @SerializedName(\"image\") val superheroImage:SuperheroImageResponse\n)\n\ndata class SuperheroImageResponse(@SerializedName(\"url\") val url:String)"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/SuperHeroDetailResponse.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport com.google.gson.annotations.SerializedName\n\ndata class SuperHeroDetailResponse(\n    @SerializedName(\"name\") val name: String,\n    @SerializedName(\"powerstats\") val powerstats: PowerStatsResponse,\n    @SerializedName(\"image\") val image: SuperheroImageDetailResponse,\n    @SerializedName(\"biography\") val biography:Biography\n\n)\n\ndata class PowerStatsResponse(\n    @SerializedName(\"intelligence\") val intelligence: String,\n    @SerializedName(\"strength\") val strength: String,\n    @SerializedName(\"speed\") val speed: String,\n    @SerializedName(\"durability\") val durability: String,\n    @SerializedName(\"power\") val power: String,\n    @SerializedName(\"combat\") val combat: String\n)\n\ndata class SuperheroImageDetailResponse(@SerializedName(\"url\") val url:String)\n\ndata class Biography(\n    @SerializedName(\"full-name\") val fullName:String,\n    @SerializedName(\"publisher\") val publisher:String\n)"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/SuperHeroListActivity.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport android.content.Intent\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.util.Log\nimport androidx.appcompat.widget.SearchView\nimport androidx.core.view.isVisible\nimport androidx.recyclerview.widget.LinearLayoutManager\nimport com.aristidevs.androidmaster.databinding.ActivitySuperHeroListBinding\nimport com.aristidevs.androidmaster.superheroapp.DetailSuperheroActivity.Companion.EXTRA_ID\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.launch\nimport retrofit2.Response\nimport retrofit2.Retrofit\nimport retrofit2.converter.gson.GsonConverterFactory\n\nclass SuperHeroListActivity : AppCompatActivity() {\n\n    private lateinit var binding: ActivitySuperHeroListBinding\n    private lateinit var retrofit: Retrofit\n\n    private lateinit var adapter: SuperheroAdapter\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        binding = ActivitySuperHeroListBinding.inflate(layoutInflater)\n        setContentView(binding.root)\n        retrofit = getRetrofit()\n        initUI()\n    }\n\n    private fun initUI() {\n        binding.searchView.setOnQueryTextListener(object : SearchView.OnQueryTextListener {\n            override fun onQueryTextSubmit(query: String?): Boolean {\n                searchByName(query.orEmpty())\n                return false\n            }\n\n            override fun onQueryTextChange(newText: String?) = false\n        })\n\n        adapter = SuperheroAdapter { superheroId ->  navigateToDetail(superheroId) }\n        binding.rvSuperhero.setHasFixedSize(true)\n        binding.rvSuperhero.layoutManager = LinearLayoutManager(this)\n        binding.rvSuperhero.adapter = adapter\n    }\n\n    private fun searchByName(query: String) {\n        binding.progressBar.isVisible = true\n        CoroutineScope(Dispatchers.IO).launch {\n            val myResponse: Response<SuperHeroDataResponse> =\n                retrofit.create(ApiService::class.java).getSuperheroes(query)\n            if (myResponse.isSuccessful) {\n                Log.i(\"aristidevs\", \"funciona :)\")\n                val response: SuperHeroDataResponse? = myResponse.body()\n                if (response != null) {\n                    Log.i(\"aristidevs\", response.toString())\n                    runOnUiThread {\n                        adapter.updateList(response.superheroes)\n                        binding.progressBar.isVisible = false\n                    }\n                }\n            } else {\n                Log.i(\"aristidevs\", \"No funciona :(\")\n            }\n        }\n    }\n\n    private fun getRetrofit(): Retrofit {\n        return Retrofit\n            .Builder()\n            .baseUrl(\"https://superheroapi.com/\")\n            .addConverterFactory(GsonConverterFactory.create())\n            .build()\n    }\n\n    private fun navigateToDetail(id: String) {\n        val intent = Intent(this, DetailSuperheroActivity::class.java)\n        intent.putExtra(EXTRA_ID, id)\n        startActivity(intent)\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/SuperheroAdapter.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.R\n\nclass SuperheroAdapter(\n    var superheroList: List<SuperheroItemResponse> = emptyList(),\n    private val onItemSelected: (String) -> Unit\n) :\n    RecyclerView.Adapter<SuperheroViewHolder>() {\n\n    fun updateList(list: List<SuperheroItemResponse>) {\n        superheroList = list\n        notifyDataSetChanged()\n    }\n\n    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SuperheroViewHolder {\n        return SuperheroViewHolder(\n            LayoutInflater.from(parent.context).inflate(R.layout.item_superhero, parent, false)\n        )\n    }\n\n    override fun onBindViewHolder(viewholder: SuperheroViewHolder, position: Int) {\n        viewholder.bind(superheroList[position],onItemSelected)\n    }\n\n    override fun getItemCount() = superheroList.size\n\n\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/superheroapp/SuperheroViewHolder.kt",
    "content": "package com.aristidevs.androidmaster.superheroapp\n\nimport android.view.View\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.databinding.ItemSuperheroBinding\nimport com.squareup.picasso.Picasso\n\nclass SuperheroViewHolder(view: View) : RecyclerView.ViewHolder(view) {\n\n    private val binding = ItemSuperheroBinding.bind(view)\n\n    fun bind(superheroItemResponse: SuperheroItemResponse, onItemSelected: (String) -> Unit) {\n        binding.tvSuperheroName.text = superheroItemResponse.name\n        Picasso.get().load(superheroItemResponse.superheroImage.url).into(binding.ivSuperhero)\n        binding.root.setOnClickListener { onItemSelected(superheroItemResponse.superheroId) }\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/CategoriesAdapter.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.R\n\nclass CategoriesAdapter(private val categories: List<TaskCategory>, private val onItemSelected:(Int) -> Unit) :\n    RecyclerView.Adapter<CategoriesViewHolder>() {\n\n    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CategoriesViewHolder {\n        val view = LayoutInflater.from(parent.context).inflate(R.layout.item_task_category, parent, false)\n        return CategoriesViewHolder(view)\n    }\n\n    override fun onBindViewHolder(holder: CategoriesViewHolder, position: Int) {\n        holder.render(categories[position], onItemSelected)\n    }\n\n    override fun getItemCount() = categories.size\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/CategoriesViewHolder.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\nimport android.view.View\nimport android.widget.TextView\nimport androidx.cardview.widget.CardView\nimport androidx.core.content.ContextCompat\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.R\n\nclass CategoriesViewHolder(view: View) : RecyclerView.ViewHolder(view) {\n\n    private val tvCategoryName: TextView = view.findViewById(R.id.tvCategoryName)\n    private val divider: View = view.findViewById(R.id.divider)\n    private val viewContainer: CardView = view.findViewById(R.id.viewContainer)\n\n    fun render(taskCategory: TaskCategory, onItemSelected: (Int) -> Unit) {\n\n        val color = if (taskCategory.isSelected) {\n            R.color.todo_background_card\n        } else {\n            R.color.todo_background_disabled\n        }\n\n        viewContainer.setCardBackgroundColor(ContextCompat.getColor(viewContainer.context, color))\n\n        itemView.setOnClickListener { onItemSelected(layoutPosition) }\n\n        when (taskCategory) {\n            TaskCategory.Business -> {\n                tvCategoryName.text = \"Negocios\"\n                divider.setBackgroundColor(\n                    ContextCompat.getColor(divider.context, R.color.todo_business_category)\n                )\n            }\n            TaskCategory.Other -> {\n                tvCategoryName.text = \"Otros\"\n                divider.setBackgroundColor(\n                    ContextCompat.getColor(divider.context, R.color.todo_other_category)\n                )\n            }\n            TaskCategory.Personal -> {\n                tvCategoryName.text = \"Personal\"\n                divider.setBackgroundColor(\n                    ContextCompat.getColor(divider.context, R.color.todo_personal_category)\n                )\n            }\n        }\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/Task.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\ndata class Task (val name:String, val category: TaskCategory, var isSelected:Boolean = false)"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/TaskCategory.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\nsealed class TaskCategory(var isSelected:Boolean = true) {\n    object Personal : TaskCategory()\n    object Business : TaskCategory()\n    object Other : TaskCategory()\n}\n"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/TasksAdapter.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.R\n\nclass TasksAdapter(var tasks: List<Task>, private val onTaskSelected: (Int) -> Unit) :\n    RecyclerView.Adapter<TasksViewHolder>() {\n\n    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): TasksViewHolder {\n        val view =\n            LayoutInflater.from(parent.context).inflate(R.layout.item_todo_task, parent, false)\n        return TasksViewHolder(view)\n    }\n\n    override fun onBindViewHolder(holder: TasksViewHolder, position: Int) {\n        holder.render(tasks[position])\n        holder.itemView.setOnClickListener { onTaskSelected(position) }\n    }\n\n    override fun getItemCount() = tasks.size\n\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/TasksViewHolder.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\nimport android.content.Context\nimport android.content.res.ColorStateList\nimport android.graphics.Paint\nimport android.view.View\nimport android.widget.CheckBox\nimport android.widget.TextView\nimport androidx.core.content.ContextCompat\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.R\n\nclass TasksViewHolder(view: View) : RecyclerView.ViewHolder(view) {\n\n    private val tvTask: TextView = view.findViewById(R.id.tvTask)\n    private val cbTask: CheckBox = view.findViewById(R.id.cbTask)\n\n    fun render(task: Task) {\n\n        if (task.isSelected) {\n            tvTask.paintFlags = tvTask.paintFlags or Paint.STRIKE_THRU_TEXT_FLAG\n        } else {\n            tvTask.paintFlags = tvTask.paintFlags and Paint.STRIKE_THRU_TEXT_FLAG.inv()\n        }\n\n        tvTask.text = task.name\n        cbTask.isChecked = task.isSelected\n\n        val color = when (task.category) {\n            TaskCategory.Business -> R.color.todo_business_category\n            TaskCategory.Other -> R.color.todo_other_category\n            TaskCategory.Personal -> R.color.todo_personal_category\n        }\n\n        cbTask.buttonTintList = ColorStateList.valueOf(\n            ContextCompat.getColor(cbTask.context, color)\n        )\n\n\n    }\n}"
  },
  {
    "path": "app/src/main/java/com/aristidevs/androidmaster/todoapp/TodoActivity.kt",
    "content": "package com.aristidevs.androidmaster.todoapp\n\nimport android.app.Dialog\nimport androidx.appcompat.app.AppCompatActivity\nimport android.os.Bundle\nimport android.widget.Button\nimport android.widget.EditText\nimport android.widget.RadioButton\nimport android.widget.RadioGroup\nimport androidx.recyclerview.widget.LinearLayoutManager\nimport androidx.recyclerview.widget.RecyclerView\nimport com.aristidevs.androidmaster.R\nimport com.aristidevs.androidmaster.todoapp.TaskCategory.*\nimport com.google.android.material.floatingactionbutton.FloatingActionButton\n\nclass TodoActivity : AppCompatActivity() {\n\n    private val categories = listOf(\n        Business,\n        Personal,\n        Other\n    )\n\n    private val tasks = mutableListOf(\n        Task(\"PruebaBusiness\", Business),\n        Task(\"PruebaPersonal\", Personal),\n        Task(\"PruebaOther\", Other)\n    )\n\n    private lateinit var rvCategories: RecyclerView\n    private lateinit var categoriesAdapter: CategoriesAdapter\n\n    private lateinit var rvTasks:RecyclerView\n    private lateinit var tasksAdapter: TasksAdapter\n\n    private lateinit var fabAddTask:FloatingActionButton\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_todo)\n        initComponent()\n        initUI()\n        initListeners()\n    }\n\n    private fun initListeners() {\n        fabAddTask.setOnClickListener { showDialog() }\n    }\n\n    private fun showDialog(){\n        val dialog = Dialog(this)\n        dialog.setContentView(R.layout.dialog_task)\n\n        val btnAddTask: Button = dialog.findViewById(R.id.btnAddTask)\n        val etTask: EditText = dialog.findViewById(R.id.etTask)\n        val rgCategories: RadioGroup = dialog.findViewById(R.id.rgCategories)\n\n        btnAddTask.setOnClickListener {\n            val currentTask = etTask.text.toString()\n            if(currentTask.isNotEmpty()){\n                val selectedId = rgCategories.checkedRadioButtonId\n                val selectedRadioButton:RadioButton = rgCategories.findViewById(selectedId)\n                val currentCategory:TaskCategory = when(selectedRadioButton.text){\n                    getString(R.string.todo_dialog_category_business) -> Business\n                    getString(R.string.todo_dialog_category_personal) -> Personal\n                    else -> Other\n                }\n\n                tasks.add(Task(currentTask, currentCategory))\n                updateTasks()\n                dialog.hide()\n            }\n        }\n\n\n        dialog.show()\n    }\n\n    private fun initComponent() {\n        rvCategories = findViewById(R.id.rvCategories)\n        rvTasks = findViewById(R.id.rvTasks)\n        fabAddTask = findViewById(R.id.fabAddTask)\n    }\n\n    private fun initUI() {\n        categoriesAdapter = CategoriesAdapter(categories) { position -> updateCategories(position) }\n        rvCategories.layoutManager = LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false)\n        rvCategories.adapter = categoriesAdapter\n\n        tasksAdapter = TasksAdapter(tasks) {position -> onItemSelected(position)}\n        rvTasks.layoutManager = LinearLayoutManager(this)\n        rvTasks.adapter = tasksAdapter\n    }\n\n    private fun onItemSelected(position:Int){\n        tasks[position].isSelected = !tasks[position].isSelected\n        updateTasks()\n    }\n\n    private fun updateCategories(position: Int){\n        categories[position].isSelected = !categories[position].isSelected\n        categoriesAdapter.notifyItemChanged(position)\n        updateTasks()\n    }\n\n    private fun updateTasks(){\n        val selectedCategories: List<TaskCategory> = categories.filter { it.isSelected }\n        val newTasks = tasks.filter { selectedCategories.contains(it.category) }\n        tasksAdapter.tasks = newTasks\n        tasksAdapter.notifyDataSetChanged()\n    }\n}"
  },
  {
    "path": "app/src/main/res/drawable/ic_bluetooth.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#555555\"\n    android:viewportHeight=\"24\" android:viewportWidth=\"24\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M17.71,7.71L12,2h-1v7.59L6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 11,14.41L11,22h1l5.71,-5.71 -4.3,-4.29 4.3,-4.29zM13,5.83l1.88,1.88L13,9.59L13,5.83zM14.88,16.29L13,18.17v-3.76l1.88,1.88z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_dark_mode.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#555555\"\n    android:viewportHeight=\"24\" android:viewportWidth=\"24\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M12,3c-4.97,0 -9,4.03 -9,9s4.03,9 9,9s9,-4.03 9,-9c0,-0.46 -0.04,-0.92 -0.1,-1.36c-0.98,1.37 -2.58,2.26 -4.4,2.26c-2.98,0 -5.4,-2.42 -5.4,-5.4c0,-1.81 0.89,-3.42 2.26,-4.4C12.92,3.04 12.46,3 12,3L12,3z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_female.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"154dp\"\n    android:height=\"154dp\"\n    android:viewportWidth=\"24\"\n    android:viewportHeight=\"24\">\n  <path\n      android:pathData=\"M17.409,9.682C17.409,11.255 16.776,12.678 15.749,13.715C15.365,14.102 14.926,14.435 14.445,14.7C13.627,15.152 12.686,15.409 11.682,15.409C8.519,15.409 5.955,12.845 5.955,9.682C5.955,6.519 8.519,3.955 11.682,3.955C14.845,3.955 17.409,6.519 17.409,9.682Z\"\n      android:strokeWidth=\"1.9091\"\n      android:fillColor=\"#00000000\"\n      android:strokeColor=\"#000000\"/>\n  <path\n      android:pathData=\"M11.5,15.5L11.5,21\"\n      android:strokeLineJoin=\"round\"\n      android:strokeWidth=\"1.9091\"\n      android:fillColor=\"#00000000\"\n      android:strokeColor=\"#000000\"\n      android:strokeLineCap=\"round\"/>\n  <path\n      android:pathData=\"M14,19L9,19\"\n      android:strokeLineJoin=\"round\"\n      android:strokeWidth=\"2\"\n      android:fillColor=\"#00000000\"\n      android:strokeColor=\"#000000\"\n      android:strokeLineCap=\"round\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillColor=\"#3DDC84\"\n        android:pathData=\"M0,0h108v108h-108z\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M9,0L9,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,0L19,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,0L29,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,0L39,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,0L49,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,0L59,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,0L69,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,0L79,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M89,0L89,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M99,0L99,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,9L108,9\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,19L108,19\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,29L108,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,39L108,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,49L108,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,59L108,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,69L108,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,79L108,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,89L108,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,99L108,99\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,29L89,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,39L89,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,49L89,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,59L89,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,69L89,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,79L89,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,19L29,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,19L39,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,19L49,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,19L59,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,19L69,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,19L79,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_male.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"800dp\"\n    android:height=\"800dp\"\n    android:viewportWidth=\"345.6\"\n    android:viewportHeight=\"345.6\">\n  <path\n      android:pathData=\"M336.84,8.93c-5.96,-5.98 -14.15,-9.17 -22.59,-8.79L211.77,4.76c-16.55,0.75 -29.36,14.77 -28.62,31.32c0.75,16.55 14.79,29.34 31.32,28.62l24.95,-1.13l-32.6,32.6c-21.32,-13.47 -46.05,-20.68 -71.89,-20.68c-36.06,0 -69.96,14.04 -95.46,39.54c-52.64,52.63 -52.64,138.28 0,190.92c25.5,25.5 59.4,39.54 95.46,39.54c36.06,0 69.96,-14.04 95.46,-39.54c45.35,-45.35 51.62,-115.19 18.83,-167.33l32.7,-32.7l-1.2,24.94c-0.79,16.55 11.98,30.61 28.53,31.4c0.49,0.02 0.98,0.04 1.46,0.04c15.91,0 29.17,-12.51 29.94,-28.56l4.9,-102.19C345.97,23.11 342.8,14.9 336.84,8.93zM187.97,263.53c-14.17,14.16 -33,21.97 -53.03,21.97c-20.03,0 -38.87,-7.8 -53.03,-21.97c-29.24,-29.24 -29.24,-76.82 0,-106.07c14.16,-14.16 33,-21.97 53.03,-21.97s38.87,7.8 53.03,21.97C217.21,186.7 217.21,234.28 187.97,263.53z\"\n      android:fillColor=\"#000000\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_plus.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"800dp\"\n    android:height=\"800dp\"\n    android:viewportWidth=\"1024\"\n    android:viewportHeight=\"1024\">\n  <path\n      android:pathData=\"M576.5,448.5l349.6,0.6c35.3,0 64,28.7 63.9,64.1s-28.7,64 -64.1,63.9l-349.4,-0.6 0.2,349.6c0,35.3 -28.6,64 -64,64s-64,-28.6 -64,-64l-0.2,-349.9 -349.6,-0.6C63.6,575.6 35,546.9 35,511.5s28.7,-64 64.1,-63.9l349.4,0.6 -0.2,-349.4c-0,-35.3 28.6,-64 64,-64s64,28.6 64,64l0.2,349.6z\"\n      android:fillColor=\"#000000\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_subtract.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"800dp\"\n    android:height=\"800dp\"\n    android:viewportWidth=\"203.37\"\n    android:viewportHeight=\"203.37\">\n  <path\n      android:pathData=\"M191.23,89.55H12.15C5.43,89.55 0,94.98 0,101.69c0,6.7 5.43,12.14 12.15,12.14h179.08c6.71,0 12.14,-5.43 12.14,-12.14C203.37,94.98 197.94,89.55 191.23,89.55z\"\n      android:fillColor=\"#010002\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_vibration.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#555555\"\n    android:viewportHeight=\"24\" android:viewportWidth=\"24\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M0,15h2L2,9L0,9v6zM3,17h2L5,7L3,7v10zM22,9v6h2L24,9h-2zM19,17h2L21,7h-2v10zM16.5,3h-9C6.67,3 6,3.67 6,4.5v15c0,0.83 0.67,1.5 1.5,1.5h9c0.83,0 1.5,-0.67 1.5,-1.5v-15c0,-0.83 -0.67,-1.5 -1.5,-1.5zM16,19L8,19L8,5h8v14z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_volume.xml",
    "content": "<vector android:height=\"24dp\" android:tint=\"#555555\"\n    android:viewportHeight=\"24\" android:viewportWidth=\"24\"\n    android:width=\"24dp\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"@android:color/white\" android:pathData=\"M3,9v6h4l5,5L12,4L7,9L3,9zM16.5,12c0,-1.77 -1.02,-3.29 -2.5,-4.03v8.05c1.48,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path android:pathData=\"M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z\">\n        <aapt:attr name=\"android:fillColor\">\n            <gradient\n                android:endX=\"85.84757\"\n                android:endY=\"92.4963\"\n                android:startX=\"42.9492\"\n                android:startY=\"49.59793\"\n                android:type=\"linear\">\n                <item\n                    android:color=\"#44000000\"\n                    android:offset=\"0.0\" />\n                <item\n                    android:color=\"#00000000\"\n                    android:offset=\"1.0\" />\n            </gradient>\n        </aapt:attr>\n    </path>\n    <path\n        android:fillColor=\"#FFFFFF\"\n        android:fillType=\"nonZero\"\n        android:pathData=\"M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\" />\n</vector>"
  },
  {
    "path": "app/src/main/res/layout/activity_detail_superhero.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".superheroapp.DetailSuperheroActivity\">\n\n    <ImageView\n        android:id=\"@+id/ivSuperhero\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"250dp\"\n        android:scaleType=\"centerCrop\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" />\n\n    <androidx.cardview.widget.CardView\n        android:layout_width=\"0dp\"\n        android:layout_height=\"0dp\"\n        android:layout_marginTop=\"220dp\"\n        android:elevation=\"8dp\"\n        app:cardCornerRadius=\"42dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:id=\"@+id/tvSuperheroName\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"center_horizontal\"\n                android:textColor=\"@color/black\"\n                android:textSize=\"28sp\"\n                android:textStyle=\"bold\"\n                tools:text=\"AristiDevs\" />\n\n            <TextView\n                android:id=\"@+id/tvSuperheroRealName\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"center_horizontal\"\n                android:textColor=\"@color/black\"\n                android:textStyle=\"italic\"\n                tools:text=\"AristiDevs\" />\n\n            <TextView\n                android:id=\"@+id/tvPublisher\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"center_horizontal\"\n                android:textSize=\"11sp\"\n                tools:text=\"AristiDevs\" />\n\n            <LinearLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"100dp\"\n                android:layout_marginHorizontal=\"16dp\"\n                android:gravity=\"bottom\"\n                android:layout_marginTop=\"24dp\"\n                android:orientation=\"horizontal\">\n\n                <FrameLayout\n                    android:id=\"@+id/viewIntelligence\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"0dp\"\n                    android:background=\"@color/superhero_stat_intelligence\"\n                    android:layout_marginHorizontal=\"4dp\"\n                    android:layout_weight=\"1\">\n                </FrameLayout>\n\n                <View\n                    android:id=\"@+id/viewStrength\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"0dp\"\n                    android:background=\"@color/superhero_stat_strength\"\n                    android:layout_marginHorizontal=\"4dp\"\n                    android:layout_weight=\"1\"/>\n\n                <View\n                    android:id=\"@+id/viewSpeed\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"0dp\"\n                    android:background=\"@color/superhero_stat_speed\"\n                    android:layout_marginHorizontal=\"4dp\"\n                    android:layout_weight=\"1\"/>\n\n                <View\n                    android:id=\"@+id/viewDurability\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"0dp\"\n                    android:background=\"@color/superhero_stat_durability\"\n                    android:layout_marginHorizontal=\"4dp\"\n                    android:layout_weight=\"1\"/>\n\n                <View\n                    android:id=\"@+id/viewPower\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"0dp\"\n                    android:background=\"@color/superhero_stat_power\"\n                    android:layout_marginHorizontal=\"4dp\"\n                    android:layout_weight=\"1\"/>\n\n                <View\n                    android:id=\"@+id/viewCombat\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"0dp\"\n                    android:background=\"@color/superhero_stat_combat\"\n                    android:layout_marginHorizontal=\"4dp\"\n                    android:layout_weight=\"1\"/>\n\n\n            </LinearLayout>\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginHorizontal=\"16dp\"\n            android:gravity=\"bottom\"\n            android:layout_marginTop=\"4dp\"\n            android:orientation=\"horizontal\">\n\n            <TextView\n                android:layout_width=\"0dp\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginHorizontal=\"4dp\"\n                android:singleLine=\"true\"\n                android:maxLines=\"1\"\n                android:text=\"Intelligence\"\n                android:textSize=\"10sp\"\n                android:layout_weight=\"1\"/>\n\n            <TextView\n                android:layout_width=\"0dp\"\n                android:text=\"Strength\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"10sp\"\n                android:singleLine=\"true\"\n                android:maxLines=\"1\"\n                android:layout_marginHorizontal=\"4dp\"\n                android:layout_weight=\"1\"/>\n\n            <TextView\n                android:layout_width=\"0dp\"\n                android:text=\"Speed\"\n                android:textSize=\"10sp\"\n                android:singleLine=\"true\"\n                android:maxLines=\"1\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginHorizontal=\"4dp\"\n                android:layout_weight=\"1\"/>\n\n            <TextView\n                android:layout_width=\"0dp\"\n                android:text=\"Durability\"\n                android:singleLine=\"true\"\n                android:maxLines=\"1\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"10sp\"\n                android:layout_marginHorizontal=\"4dp\"\n                android:layout_weight=\"1\"/>\n\n            <TextView\n                android:layout_width=\"0dp\"\n                android:text=\"Power\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"10sp\"\n                android:singleLine=\"true\"\n                android:maxLines=\"1\"\n                android:layout_marginHorizontal=\"4dp\"\n                android:layout_weight=\"1\"/>\n\n            <TextView\n                android:layout_width=\"0dp\"\n                android:text=\"Combat\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"10sp\"\n                android:singleLine=\"true\"\n                android:maxLines=\"1\"\n                android:layout_marginHorizontal=\"4dp\"\n                android:layout_weight=\"1\"/>\n\n        </LinearLayout>\n\n        </LinearLayout>\n\n\n    </androidx.cardview.widget.CardView>\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_first_app.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".firstapp.FirstAppActivity\">\n\n    <TextView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"64dp\"\n        android:text=\"Escribe tu nombre\"\n        android:textColor=\"@color/black\"\n        android:textSize=\"35sp\"\n        android:textStyle=\"bold\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" />\n\n    <androidx.appcompat.widget.AppCompatEditText\n        android:id=\"@+id/etName\"\n        android:layout_width=\"300dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginBottom=\"32dp\"\n        android:maxLines=\"1\"\n        android:singleLine=\"true\"\n        app:layout_constraintBottom_toTopOf=\"@+id/btnStart\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n\n    <androidx.appcompat.widget.AppCompatButton\n        android:id=\"@+id/btnStart\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"@color/purple_200\"\n        android:text=\"Pulsame\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" />\n\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_imc_calculator.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:background=\"@color/background_app\"\n    android:paddingHorizontal=\"16dp\"\n    android:paddingVertical=\"32dp\"\n    tools:context=\".imccalculator.ImcCalculatorActivity\">\n\n    <androidx.cardview.widget.CardView\n        android:id=\"@+id/viewMale\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"150dp\"\n        android:layout_marginEnd=\"16dp\"\n        app:cardBackgroundColor=\"@color/background_component_selected\"\n        app:cardCornerRadius=\"16dp\"\n        app:layout_constraintEnd_toStartOf=\"@+id/viewFemale\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\">\n\n        <androidx.appcompat.widget.LinearLayoutCompat\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:gravity=\"center\"\n            android:orientation=\"vertical\">\n\n            <ImageView\n                android:layout_width=\"60dp\"\n                android:layout_height=\"60dp\"\n                android:layout_marginBottom=\"8dp\"\n                android:src=\"@drawable/ic_male\"\n                app:tint=\"@color/white\" />\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"@string/male\"\n                android:textAllCaps=\"true\"\n                android:textColor=\"@color/title_text\" />\n\n        </androidx.appcompat.widget.LinearLayoutCompat>\n\n\n    </androidx.cardview.widget.CardView>\n\n    <androidx.cardview.widget.CardView\n        android:id=\"@+id/viewFemale\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"150dp\"\n        app:cardBackgroundColor=\"@color/background_component\"\n        app:cardCornerRadius=\"16dp\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/viewMale\"\n        app:layout_constraintTop_toTopOf=\"parent\">\n\n        <androidx.appcompat.widget.LinearLayoutCompat\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:gravity=\"center\"\n            android:orientation=\"vertical\">\n\n            <ImageView\n                android:layout_width=\"60dp\"\n                android:layout_height=\"60dp\"\n                android:src=\"@drawable/ic_female\"\n                app:tint=\"@color/white\" />\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginTop=\"8dp\"\n                android:text=\"@string/female\"\n                android:textAllCaps=\"true\"\n                android:textColor=\"@color/title_text\" />\n\n        </androidx.appcompat.widget.LinearLayoutCompat>\n\n\n    </androidx.cardview.widget.CardView>\n\n    <androidx.cardview.widget.CardView\n        android:id=\"@+id/viewHeight\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"32dp\"\n        app:cardBackgroundColor=\"@color/background_component\"\n        app:cardCornerRadius=\"16dp\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/viewMale\">\n\n        <androidx.appcompat.widget.LinearLayoutCompat\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"16dp\"\n            android:gravity=\"center\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"@string/height\"\n                android:textAllCaps=\"true\"\n                android:textColor=\"@color/title_text\" />\n\n            <TextView\n                android:id=\"@+id/tvHeight\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"120 cm\"\n                android:textColor=\"@color/white\"\n                android:textSize=\"38sp\"\n                android:textStyle=\"bold\" />\n\n            <com.google.android.material.slider.RangeSlider\n                android:id=\"@+id/rsHeight\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:stepSize=\"1\"\n                android:valueFrom=\"120\"\n                android:valueTo=\"200\" />\n\n        </androidx.appcompat.widget.LinearLayoutCompat>\n\n    </androidx.cardview.widget.CardView>\n\n    <androidx.cardview.widget.CardView\n        android:id=\"@+id/viewWeight\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"150dp\"\n        android:layout_marginTop=\"32dp\"\n        android:layout_marginEnd=\"16dp\"\n        app:cardBackgroundColor=\"@color/background_component\"\n        app:cardCornerRadius=\"16dp\"\n        app:layout_constraintEnd_toStartOf=\"@+id/viewAge\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/viewHeight\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:gravity=\"center\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"@string/weight\"\n                android:textAllCaps=\"true\"\n                android:textColor=\"@color/title_text\" />\n\n            <TextView\n                android:id=\"@+id/tvWeight\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textColor=\"@color/white\"\n                android:textSize=\"38sp\"\n                android:textStyle=\"bold\"\n                tools:text=\"60\" />\n\n            <androidx.appcompat.widget.LinearLayoutCompat\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"center\"\n                android:orientation=\"horizontal\">\n\n                <com.google.android.material.floatingactionbutton.FloatingActionButton\n                    android:id=\"@+id/btnSubtractWeight\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginEnd=\"16dp\"\n                    android:src=\"@drawable/ic_subtract\"\n                    app:backgroundTint=\"@color/background_fab\"\n                    app:tint=\"@color/white\" />\n\n                <com.google.android.material.floatingactionbutton.FloatingActionButton\n                    android:id=\"@+id/btnPlusWeight\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:src=\"@drawable/ic_plus\"\n                    app:backgroundTint=\"@color/background_fab\"\n                    app:tint=\"@color/white\" />\n\n            </androidx.appcompat.widget.LinearLayoutCompat>\n\n        </LinearLayout>\n\n    </androidx.cardview.widget.CardView>\n\n    <androidx.cardview.widget.CardView\n        android:id=\"@+id/viewAge\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"150dp\"\n        android:layout_marginTop=\"32dp\"\n        app:cardBackgroundColor=\"@color/background_component\"\n        app:cardCornerRadius=\"16dp\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/viewWeight\"\n        app:layout_constraintTop_toBottomOf=\"@+id/viewHeight\">\n\n        <androidx.appcompat.widget.LinearLayoutCompat\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:gravity=\"center\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"@string/age\"\n                android:textAllCaps=\"true\"\n                android:textColor=\"@color/title_text\" />\n\n            <TextView\n                android:id=\"@+id/tvAge\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textColor=\"@color/white\"\n                android:textSize=\"38sp\"\n                android:textStyle=\"bold\"\n                tools:text=\"30\" />\n\n            <androidx.appcompat.widget.LinearLayoutCompat\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"center\"\n                android:orientation=\"horizontal\">\n\n                <com.google.android.material.floatingactionbutton.FloatingActionButton\n                    android:id=\"@+id/btnSubtractAge\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginEnd=\"16dp\"\n                    android:src=\"@drawable/ic_subtract\"\n                    app:backgroundTint=\"@color/background_fab\"\n                    app:tint=\"@color/white\" />\n\n                <com.google.android.material.floatingactionbutton.FloatingActionButton\n                    android:id=\"@+id/btnPlusAge\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:src=\"@drawable/ic_plus\"\n                    app:backgroundTint=\"@color/background_fab\"\n                    app:tint=\"@color/white\" />\n\n            </androidx.appcompat.widget.LinearLayoutCompat>\n\n        </androidx.appcompat.widget.LinearLayoutCompat>\n\n    </androidx.cardview.widget.CardView>\n\n    <Button\n        android:id=\"@+id/btnCalculate\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"80dp\"\n        android:text=\"@string/calculate\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_menu.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_margin=\"16dp\"\n    android:orientation=\"vertical\"\n    tools:context=\".MenuActivity\">\n\n    <Button\n        android:id=\"@+id/btnSaludApp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"SaludApp\"/>\n\n    <Button\n        android:id=\"@+id/btnIMCApp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"IMC App\"/>\n\n    <Button\n        android:id=\"@+id/btnTODO\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"TODO App\"/>\n\n    <Button\n        android:id=\"@+id/btnSuperhero\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"SuperHero App\"/>\n\n    <Button\n        android:id=\"@+id/btnSettings\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"Settings\"/>\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_result.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".firstapp.ResultActivity\">\n\n    <TextView\n        android:id=\"@+id/tvResult\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"center\"\n        android:textColor=\"@color/teal_200\"\n        android:textSize=\"35sp\"\n        tools:text=\"Esto es un ejemplo\" />\n\n</FrameLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_result_imcactivity.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:padding=\"16dp\"\n    android:background=\"@color/background_app\"\n    tools:context=\".imccalculator.ResultIMCActivity\">\n\n    <TextView\n        android:id=\"@+id/tvTitle\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"40sp\"\n        android:layout_marginTop=\"16dp\"\n        android:textStyle=\"bold\"\n        android:textColor=\"@color/white\"\n        android:text=\"@string/result\"/>\n\n    <androidx.cardview.widget.CardView\n        android:layout_width=\"0dp\"\n        android:layout_height=\"0dp\"\n        app:cardBackgroundColor=\"@color/background_component\"\n        app:cardCornerRadius=\"16dp\"\n        android:layout_marginVertical=\"32dp\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintBottom_toTopOf=\"@+id/btnRecalculate\"\n        app:layout_constraintTop_toBottomOf=\"@+id/tvTitle\">\n\n        <androidx.appcompat.widget.LinearLayoutCompat\n            android:layout_width=\"match_parent\"\n            android:gravity=\"center\"\n            android:layout_height=\"match_parent\"\n            android:layout_margin=\"16dp\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:id=\"@+id/tvResult\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"26sp\"\n                android:textStyle=\"bold\"\n                tools:text=\"Normal\"/>\n\n            <TextView\n                android:id=\"@+id/tvIMC\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"70sp\"\n                android:layout_marginVertical=\"64dp\"\n                android:textColor=\"@color/white\"\n                android:textStyle=\"bold\"\n                tools:text=\"Normal\"/>\n\n            <TextView\n                android:id=\"@+id/tvDescription\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"26sp\"\n                android:textColor=\"@color/white\"\n                tools:text=\"Normal\"/>\n\n\n\n\n\n        </androidx.appcompat.widget.LinearLayoutCompat>\n\n    </androidx.cardview.widget.CardView>\n\n    <Button\n        android:id=\"@+id/btnRecalculate\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"80dp\"\n        android:text=\"@string/recalculate\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_settings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    tools:context=\".settings.SettingsActivity\">\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:gravity=\"center_vertical\"\n        android:orientation=\"horizontal\">\n\n        <ImageView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"16dp\"\n            android:src=\"@drawable/ic_dark_mode\" />\n\n        <LinearLayout\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            android:layout_weight=\"1\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"Modo oscuro\"\n                android:textColor=\"@color/settings_text_title\" />\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"Activa el modo oscuro para un cambio visual\"\n                android:textSize=\"11sp\" />\n\n        </LinearLayout>\n\n        <com.google.android.material.switchmaterial.SwitchMaterial\n            android:id=\"@+id/switchDarkMode\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginHorizontal=\"16dp\" />\n\n    </LinearLayout>\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:gravity=\"center_vertical\"\n        android:orientation=\"horizontal\">\n\n        <ImageView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"16dp\"\n            android:src=\"@drawable/ic_bluetooth\" />\n\n        <LinearLayout\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            android:layout_weight=\"1\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"Activar Bluetooth\"\n                android:textColor=\"@color/settings_text_title\" />\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"Conecta periféricos sin cables\"\n                android:textSize=\"11sp\" />\n\n        </LinearLayout>\n\n        <com.google.android.material.switchmaterial.SwitchMaterial\n            android:id=\"@+id/switchBluetooth\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginHorizontal=\"16dp\" />\n\n    </LinearLayout>\n\n    <com.google.android.material.divider.MaterialDivider\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_marginVertical=\"8dp\" />\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:gravity=\"center_vertical\"\n        android:orientation=\"horizontal\">\n\n        <ImageView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"16dp\"\n            android:src=\"@drawable/ic_volume\" />\n\n        <LinearLayout\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            android:layout_weight=\"1\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"Subir el volumen\"\n                android:textColor=\"@color/settings_text_title\" />\n\n            <com.google.android.material.slider.RangeSlider\n                android:id=\"@+id/rsVolume\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:valueFrom=\"0\"\n                android:stepSize=\"1\"\n                android:valueTo=\"100\"\n                />\n\n        </LinearLayout>\n\n    </LinearLayout>\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:gravity=\"center_vertical\"\n        android:orientation=\"horizontal\">\n\n        <ImageView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"16dp\"\n            android:src=\"@drawable/ic_vibration\" />\n\n        <TextView\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            android:layout_weight=\"1\"\n            android:text=\"Vibrar en las llamadas\"\n            android:textColor=\"@color/settings_text_title\" />\n\n        <com.google.android.material.switchmaterial.SwitchMaterial\n            android:id=\"@+id/switchVibration\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginHorizontal=\"16dp\" />\n\n    </LinearLayout>\n\n    <com.google.android.material.divider.MaterialDivider\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_marginVertical=\"8dp\" />\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_super_hero_list.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".superheroapp.SuperHeroListActivity\">\n\n    <ProgressBar\n        android:id=\"@+id/progressBar\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:visibility=\"gone\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        />\n\n    <androidx.appcompat.widget.SearchView\n        android:id=\"@+id/searchView\"\n        android:layout_width=\"0dp\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:iconifiedByDefault=\"false\"\n        android:layout_height=\"wrap_content\"/>\n\n    <androidx.recyclerview.widget.RecyclerView\n        android:id=\"@+id/rvSuperhero\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"0dp\"\n        app:layout_constraintTop_toBottomOf=\"@+id/searchView\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"/>\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_todo.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:background=\"@color/todo_background_todo_app\"\n        android:orientation=\"vertical\"\n        tools:context=\".todoapp.TodoActivity\">\n\n        <TextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginHorizontal=\"32dp\"\n            android:layout_marginVertical=\"44dp\"\n            android:text=\"@string/todo_title\"\n            android:textAllCaps=\"true\"\n            android:textColor=\"@color/white\"\n            android:textSize=\"35sp\"\n            android:textStyle=\"bold\" />\n\n        <TextView\n            style=\"@style/TodoSubtitle\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/todo_categories\" />\n\n        <androidx.recyclerview.widget.RecyclerView\n            android:id=\"@+id/rvCategories\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\" />\n\n        <TextView\n            style=\"@style/TodoSubtitle\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginTop=\"32dp\"\n            android:text=\"@string/todo_tasks\" />\n\n        <androidx.recyclerview.widget.RecyclerView\n            android:id=\"@+id/rvTasks\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginHorizontal=\"32dp\"\n            android:layout_marginTop=\"16dp\" />\n\n    </LinearLayout>\n\n    <com.google.android.material.floatingactionbutton.FloatingActionButton\n        android:id=\"@+id/fabAddTask\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"32dp\"\n        android:src=\"@android:drawable/ic_input_add\"\n        app:backgroundTint=\"@color/todo_accent\"\n        app:fabSize=\"normal\"\n        android:layout_gravity=\"end|bottom\"\n        app:tint=\"@color/white\" />\n\n</FrameLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/dialog_task.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"250dp\"\n    android:layout_height=\"wrap_content\"\n    android:padding=\"16dp\"\n    android:background=\"@color/todo_background_todo_app\"\n    android:orientation=\"vertical\">\n\n    <EditText\n        android:id=\"@+id/etTask\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:backgroundTint=\"@color/white\"\n        android:hint=\"@string/todo_dialog_add_task\"\n        android:textColor=\"@color/white\"\n        android:textColorHint=\"@color/white\" />\n\n    <RadioGroup\n        android:id=\"@+id/rgCategories\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\">\n\n        <RadioButton\n            android:id=\"@+id/rbBusiness\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:buttonTint=\"@color/todo_business_category\"\n            android:checked=\"true\"\n            android:text=\"@string/todo_dialog_category_business\"\n            android:textColor=\"@color/white\" />\n\n        <RadioButton\n            android:id=\"@+id/rbPersonal\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:buttonTint=\"@color/todo_personal_category\"\n            android:text=\"@string/todo_dialog_category_personal\"\n            android:textColor=\"@color/white\" />\n\n        <RadioButton\n            android:id=\"@+id/rbOther\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:buttonTint=\"@color/todo_other_category\"\n            android:text=\"@string/todo_dialog_category_other\"\n            android:textColor=\"@color/white\" />\n    </RadioGroup>\n\n    <Button\n        android:id=\"@+id/btnAddTask\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/todo_dialog_add_task_button\"\n        android:backgroundTint=\"@color/todo_accent\"/>\n\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/item_superhero.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"200dp\"\n    android:layout_marginHorizontal=\"16dp\"\n    android:layout_marginVertical=\"8dp\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    app:cardCornerRadius=\"22dp\"\n    app:cardElevation=\"8dp\">\n\n    <FrameLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\">\n\n        <ImageView\n            android:id=\"@+id/ivSuperhero\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:scaleType=\"centerCrop\"/>\n\n        <FrameLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"30dp\"\n            android:layout_gravity=\"bottom\"\n            android:background=\"@color/superhero_item_name\">\n\n            <TextView\n                android:id=\"@+id/tvSuperheroName\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_gravity=\"center\"\n                android:textColor=\"@color/white\"\n                tools:text=\"SUSCRIBETE\"\n                android:textSize=\"20sp\" />\n\n        </FrameLayout>\n\n    </FrameLayout>\n\n</androidx.cardview.widget.CardView>"
  },
  {
    "path": "app/src/main/res/layout/item_task_category.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/viewContainer\"\n    android:layout_width=\"160dp\"\n    android:layout_height=\"90dp\"\n    android:layout_marginHorizontal=\"8dp\"\n    android:layout_marginVertical=\"16dp\"\n    app:cardBackgroundColor=\"@color/todo_background_card\"\n    app:cardCornerRadius=\"16dp\">\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:gravity=\"center_vertical\"\n        android:layout_margin=\"8dp\"\n        android:orientation=\"vertical\">\n\n        <TextView\n            android:id=\"@+id/tvCategoryName\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            tools:text=\"PRUEBA\"\n            android:textColor=\"@color/white\"\n            android:textStyle=\"bold\"\n            android:textSize=\"19sp\"\n            />\n\n        <View\n            android:id=\"@+id/divider\"\n            android:layout_marginTop=\"4dp\"\n            android:layout_width=\"match_parent\"\n            tools:background=\"@color/white\"\n            android:layout_height=\"2dp\"/>\n\n    </LinearLayout>\n\n</androidx.cardview.widget.CardView>"
  },
  {
    "path": "app/src/main/res/layout/item_todo_task.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.cardview.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    app:cardCornerRadius=\"16dp\"\n    app:cardBackgroundColor=\"@color/todo_background_card\"\n    android:layout_marginVertical=\"4dp\">\n\n    <LinearLayout\n        android:paddingVertical=\"8dp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:orientation=\"horizontal\">\n\n        <CheckBox\n            android:id=\"@+id/cbTask\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"/>\n\n        <TextView\n            android:id=\"@+id/tvTask\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:textColor=\"@color/white\"\n            android:textSize=\"18sp\"\n            tools:text=\"Prueba\"/>\n    </LinearLayout>\n\n</androidx.cardview.widget.CardView>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"purple_200\">#FFBB86FC</color>\n    <color name=\"purple_500\">#FF6200EE</color>\n    <color name=\"purple_700\">#FF3700B3</color>\n    <color name=\"teal_200\">#FF03DAC5</color>\n    <color name=\"teal_700\">#FF018786</color>\n    <color name=\"black\">#FF000000</color>\n    <color name=\"white\">#FFFFFFFF</color>\n\n\n\n<!--IMC App-->\n    <color name=\"background_component\">#1D1E33</color>\n    <color name=\"background_component_selected\">#FF111328</color>\n    <color name=\"background_app\">#0E0B20</color>\n    <color name=\"background_button\">#EB1555</color>\n    <color name=\"title_text\">#FF8D8E98</color>\n    <color name=\"background_fab\">#FF6200EE</color>\n\n    <color name=\"peso_bajo\">#FFEB3B</color>\n    <color name=\"peso_normal\">#4CAF50</color>\n    <color name=\"peso_sobrepeso\">#FF5722</color>\n    <color name=\"obesidad\">#FF1100</color>\n\n<!--TodoApp-->\n    <color name=\"todo_background_card\">#FF081A4A</color>\n    <color name=\"todo_background_disabled\">#787878</color>\n    <color name=\"todo_background_todo_app\">#FF2D4993</color>\n    <color name=\"todo_subtitle_text\">#959595</color>\n    <color name=\"todo_accent\">#E91E63</color>\n\n    <color name=\"todo_business_category\">#FF9800</color>\n    <color name=\"todo_personal_category\">#00BCD4</color>\n    <color name=\"todo_other_category\">#4CAF50</color>\n\n<!--    SuperheroApp-->\n    <color name=\"superhero_item_name\">#8B673AB7</color>\n\n    <color name=\"superhero_stat_intelligence\">#00ff00</color>\n    <color name=\"superhero_stat_strength\">#FF0000</color>\n    <color name=\"superhero_stat_speed\">#E88B00</color>\n    <color name=\"superhero_stat_durability\">#03A9F4</color>\n    <color name=\"superhero_stat_power\">#FFEB3B</color>\n    <color name=\"superhero_stat_combat\">#673AB7</color>\n\n<!--    Setting-->\n    <color name=\"settings_text_title\">#000000</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">AndroidMaster</string>\n\n    <!--IMC APP-->\n    <string name=\"male\">Hombre</string>\n    <string name=\"female\">Mujer</string>\n    <string name=\"height\">Altura</string>\n    <string name=\"weight\">Peso</string>\n    <string name=\"age\">Edad</string>\n    <string name=\"calculate\">Calcular</string>\n    <string name=\"recalculate\">Re-Calcular</string>\n    <string name=\"result\">Tu resultado</string>\n\n    <string name=\"error\">Error</string>\n\n    <string name=\"title_bajo_peso\">Bajo peso</string>\n    <string name=\"description_bajo_peso\">Estás por debajo de lo óptimo para tu peso y altura.</string>\n\n    <string name=\"title_peso_normal\">Normal</string>\n    <string name=\"description_peso_normal\">Estás en lo óptimo para tu peso y altura.</string>\n\n    <string name=\"title_sobrepeso\">Sobrepeso</string>\n    <string name=\"description_sobrepeso\">Estás por encima de lo óptimo para tu peso y altura.</string>\n\n    <string name=\"title_obesidad\">Obesidad</string>\n    <string name=\"description_obesidad\">Estás MUY por encima de lo óptimo para tu peso y altura.</string>\n\n    <!--TodoApp-->\n    <string name=\"todo_title\">Bienvenido, Aris</string>\n    <string name=\"todo_categories\">Categorías:</string>\n    <string name=\"todo_tasks\">Tareas:</string>\n\n    <string name=\"todo_dialog_add_task\">Añade la tarea</string>\n    <string name=\"todo_dialog_category_business\">Negocios</string>\n    <string name=\"todo_dialog_category_other\">Otros</string>\n    <string name=\"todo_dialog_category_personal\">Personal</string>\n    <string name=\"todo_dialog_add_task_button\">Crear tarea</string>\n\n</resources>"
  },
  {
    "path": "app/src/main/res/values/themes.xml",
    "content": "<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <!-- Base application theme. -->\n    <style name=\"Theme.AndroidMaster\" parent=\"Theme.MaterialComponents.DayNight.DarkActionBar\">\n        <!-- Primary brand color. -->\n        <item name=\"colorPrimary\">@color/purple_500</item>\n        <item name=\"colorPrimaryVariant\">@color/purple_700</item>\n        <item name=\"colorOnPrimary\">@color/white</item>\n        <!-- Secondary brand color. -->\n        <item name=\"colorSecondary\">@color/teal_200</item>\n        <item name=\"colorSecondaryVariant\">@color/teal_700</item>\n        <item name=\"colorOnSecondary\">@color/black</item>\n        <!-- Status bar color. -->\n        <item name=\"android:statusBarColor\">?attr/colorPrimaryVariant</item>\n        <!-- Customize your theme here. -->\n    </style>\n\n    <style name=\"Theme.TODOApp\" parent=\"Theme.MaterialComponents.DayNight.NoActionBar\">\n        <!-- Primary brand color. -->\n        <item name=\"colorPrimary\">@color/purple_500</item>\n        <item name=\"colorPrimaryVariant\">@color/purple_700</item>\n        <item name=\"colorOnPrimary\">@color/white</item>\n        <!-- Secondary brand color. -->\n        <item name=\"colorSecondary\">@color/teal_200</item>\n        <item name=\"colorSecondaryVariant\">@color/teal_700</item>\n        <item name=\"colorOnSecondary\">@color/black</item>\n        <!-- Status bar color. -->\n        <item name=\"android:statusBarColor\">@color/todo_background_todo_app</item>\n        <!-- Customize your theme here. -->\n    </style>\n\n    <style name=\"TodoSubtitle\">\n        <item name=\"textAllCaps\">true</item>\n        <item name=\"android:textColor\">@color/todo_subtitle_text</item>\n        <item name=\"android:layout_marginHorizontal\">32dp</item>\n    </style>\n\n\n</resources>"
  },
  {
    "path": "app/src/main/res/values-night/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!--    Setting-->\n    <color name=\"settings_text_title\">#FFFFFF</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values-night/themes.xml",
    "content": "<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <!-- Base application theme. -->\n    <style name=\"Theme.AndroidMaster\" parent=\"Theme.MaterialComponents.DayNight.DarkActionBar\">\n        <!-- Primary brand color. -->\n        <item name=\"colorPrimary\">@color/purple_200</item>\n        <item name=\"colorPrimaryVariant\">@color/purple_700</item>\n        <item name=\"colorOnPrimary\">@color/black</item>\n        <!-- Secondary brand color. -->\n        <item name=\"colorSecondary\">@color/teal_200</item>\n        <item name=\"colorSecondaryVariant\">@color/teal_200</item>\n        <item name=\"colorOnSecondary\">@color/black</item>\n        <!-- Status bar color. -->\n        <item name=\"android:statusBarColor\">?attr/colorPrimaryVariant</item>\n        <!-- Customize your theme here. -->\n    </style>\n\n    <style name=\"Theme.TODOApp\" parent=\"Theme.MaterialComponents.DayNight.NoActionBar\">\n        <!-- Primary brand color. -->\n        <item name=\"colorPrimary\">@color/purple_500</item>\n        <item name=\"colorPrimaryVariant\">@color/purple_700</item>\n        <item name=\"colorOnPrimary\">@color/white</item>\n        <!-- Secondary brand color. -->\n        <item name=\"colorSecondary\">@color/teal_200</item>\n        <item name=\"colorSecondaryVariant\">@color/teal_700</item>\n        <item name=\"colorOnSecondary\">@color/black</item>\n        <!-- Status bar color. -->\n        <item name=\"android:statusBarColor\">@color/todo_background_todo_app</item>\n        <!-- Customize your theme here. -->\n    </style>\n\n    <style name=\"TodoSubtitle\">\n        <item name=\"textAllCaps\">true</item>\n        <item name=\"android:textColor\">@color/todo_subtitle_text</item>\n        <item name=\"android:layout_marginHorizontal\">32dp</item>\n    </style>\n</resources>"
  },
  {
    "path": "app/src/main/res/xml/backup_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample backup rules file; uncomment and customize as necessary.\n   See https://developer.android.com/guide/topics/data/autobackup\n   for details.\n   Note: This file is ignored for devices older that API 31\n   See https://developer.android.com/about/versions/12/backup-restore\n-->\n<full-backup-content>\n    <!--\n   <include domain=\"sharedpref\" path=\".\"/>\n   <exclude domain=\"sharedpref\" path=\"device.xml\"/>\n-->\n</full-backup-content>"
  },
  {
    "path": "app/src/main/res/xml/data_extraction_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample data extraction rules file; uncomment and customize as necessary.\n   See https://developer.android.com/about/versions/12/backup-restore#xml-changes\n   for details.\n-->\n<data-extraction-rules>\n    <cloud-backup>\n        <!-- TODO: Use <include> and <exclude> to control what is backed up.\n        <include .../>\n        <exclude .../>\n        -->\n    </cloud-backup>\n    <!--\n    <device-transfer>\n        <include .../>\n        <exclude .../>\n    </device-transfer>\n    -->\n</data-extraction-rules>"
  },
  {
    "path": "app/src/test/java/com/aristidevs/androidmaster/ExampleUnitTest.kt",
    "content": "package com.aristidevs.androidmaster\n\nimport org.junit.Test\n\nimport org.junit.Assert.*\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\nclass ExampleUnitTest {\n    @Test\n    fun addition_isCorrect() {\n        assertEquals(4, 2 + 2)\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\nplugins {\n    id 'com.android.application' version '7.3.1' apply false\n    id 'com.android.library' version '7.3.1' apply false\n    id 'org.jetbrains.kotlin.android' version '1.7.20' apply false\n}"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Tue Dec 06 18:15:46 WET 2022\ndistributionBase=GRADLE_USER_HOME\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-7.4-bin.zip\ndistributionPath=wrapper/dists\nzipStorePath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app's APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Kotlin code style for this project: \"official\" or \"obsolete\":\nkotlin.code.style=official\n# Enables namespacing of each library's R class so that its R class includes only the\n# resources declared in the library itself and none from the library's dependencies,\n# thereby reducing the size of the R class for that library\nandroid.nonTransitiveRClass=true"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\n@rem you may not use this file except in compliance with the License.\n@rem You may obtain a copy of the License at\n@rem\n@rem      https://www.apache.org/licenses/LICENSE-2.0\n@rem\n@rem Unless required by applicable law or agreed to in writing, software\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n@rem See the License for the specific language governing permissions and\n@rem limitations under the License.\n@rem\n\n@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto execute\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto execute\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "pluginManagement {\n    repositories {\n        gradlePluginPortal()\n        google()\n        mavenCentral()\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\nrootProject.name = \"AndroidMaster\"\ninclude ':app'\n"
  }
]