├── BaseDatos_MVP ├── .gitignore ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── encodings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── anncode │ │ │ └── basedatos │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── anncode │ │ │ │ └── basedatos │ │ │ │ ├── MainActivity.java │ │ │ │ ├── db │ │ │ │ └── DataBaseAdapter.java │ │ │ │ ├── interactor │ │ │ │ └── ListaContactosActivityInteractorDB.java │ │ │ │ ├── model │ │ │ │ └── Contacto.java │ │ │ │ ├── presenter │ │ │ │ ├── IListaContactosActivityPresenter.java │ │ │ │ └── ListaContactosActivityPresenter.java │ │ │ │ └── view │ │ │ │ ├── IListaContactosActivity.java │ │ │ │ └── ListaContactosActivity.java │ │ └── res │ │ │ ├── layout │ │ │ ├── activity_lista_contactos.xml │ │ │ ├── activity_main.xml │ │ │ └── content_lista_contactos.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── anncode │ │ └── basedatos │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── CardViewRecyclerView_TelmexHub_session2 ├── .gitignore ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── anncode │ │ │ └── micardview │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── anncode │ │ │ │ └── micardview │ │ │ │ ├── MainActivity.java │ │ │ │ ├── Paisaje.java │ │ │ │ └── PaisajeAdaptador.java │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── drawable-ldpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── drawable-mdpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── drawable-tvdpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── drawable-xhdpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── campo_manana.png │ │ │ ├── campo_noche.png │ │ │ └── campo_tarde.png │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ ├── cardview_paisaje.xml │ │ │ ├── content_main.xml │ │ │ └── content_main2.xml │ │ │ ├── menu │ │ │ └── menu_main.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_like.png │ │ │ └── ic_menu.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── anncode │ │ └── micardview │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── Fragments ├── .gitignore ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── encodings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── anncode │ │ │ └── fragments │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── anncode │ │ │ │ └── fragments │ │ │ │ ├── DetalleActivity.java │ │ │ │ ├── Fragments │ │ │ │ ├── DetalleFragment.java │ │ │ │ └── ListaFragment.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── model │ │ │ │ └── Amigo.java │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── phone.png │ │ │ └── twitter.png │ │ │ ├── drawable-mdpi │ │ │ ├── phone.png │ │ │ └── twitter.png │ │ │ ├── drawable-xhdpi │ │ │ ├── phone.png │ │ │ └── twitter.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── phone.png │ │ │ └── twitter.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── phone.png │ │ │ └── twitter.png │ │ │ ├── layout-land │ │ │ └── activity_main.xml │ │ │ ├── layout │ │ │ ├── activity_detalle.xml │ │ │ ├── activity_main.xml │ │ │ ├── fragment_detalle.xml │ │ │ └── fragment_lista.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── anncode │ │ └── fragments │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── HolaMundoMaterialDesign_TelmexHub_session1 ├── .gitignore ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── anncode │ │ │ └── holamundomaterialdesign │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── anncode │ │ │ │ └── holamundomaterialdesign │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ └── ic_fresa.png │ │ │ ├── drawable-ldpi │ │ │ └── ic_fresa.png │ │ │ ├── drawable-mdpi │ │ │ └── ic_fresa.png │ │ │ ├── drawable-xhdpi │ │ │ └── ic_fresa.png │ │ │ ├── drawable-xxhdpi │ │ │ └── ic_fresa.png │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── toolbar.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── anncode │ │ └── holamundomaterialdesign │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── MaterialDesignSupport-CambiarPantalla ├── .gitignore ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml ├── CambiarPantalla.iml ├── MaterialDesignSupport-CambiarPantall.iml ├── MaterialDesignSupport-CambiarPantalla.iml ├── app │ ├── .gitignore │ ├── app.iml │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── anncode │ │ │ └── cambiarpantalla │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── anncode │ │ │ │ └── cambiarpantalla │ │ │ │ ├── AgregarDatos.java │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── anim │ │ │ └── elevacion_boton.xml │ │ │ ├── layout │ │ │ ├── activity_agregar_datos.xml │ │ │ ├── activity_main.xml │ │ │ └── mi_toolbar.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── cocodrilo.png │ │ │ ├── codigofacilito.png │ │ │ ├── ic_add_user.png │ │ │ ├── ic_launcher.png │ │ │ └── ic_like.png │ │ │ ├── mipmap-mdpi │ │ │ ├── cocodrilo.png │ │ │ ├── codigofacilito.png │ │ │ ├── ic_add_user.png │ │ │ ├── ic_launcher.png │ │ │ └── ic_like.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── cocodrilo.png │ │ │ ├── codigofacilito.png │ │ │ ├── ic_add_user.png │ │ │ ├── ic_launcher.png │ │ │ └── ic_like.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── cocodrilo.png │ │ │ ├── codigofacilito.png │ │ │ ├── ic_add_user.png │ │ │ ├── ic_launcher.png │ │ │ └── ic_like.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── cocodrilo.png │ │ │ ├── codigofacilito.png │ │ │ ├── ic_add_user.png │ │ │ ├── ic_launcher.png │ │ │ └── ic_like.png │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── anncode │ │ └── cambiarpantalla │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── readme └── settings.gradle ├── MiLamparaApp ├── .gitignore ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml ├── MiLampara.iml ├── MiLamparaApp.iml ├── app │ ├── .gitignore │ ├── app.iml │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── anncode │ │ │ └── milampara │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── anncode │ │ │ │ └── milampara │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── toolbar.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── foco.png │ │ │ ├── ic_flash.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ ├── foco.png │ │ │ ├── ic_flash.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── foco.png │ │ │ ├── ic_flash.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── foco.png │ │ │ ├── ic_flash.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── foco.png │ │ │ ├── ic_flash.png │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── anncode │ │ └── milampara │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── NotificacionFireBase ├── .idea │ └── vcs.xml └── app │ └── src │ └── main │ └── java │ └── com │ └── anncode │ └── notificacionfirebase │ └── MainActivity.java └── ToDoListFragment ├── .gitignore ├── .idea ├── .name ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── gradle.xml ├── misc.xml ├── modules.xml └── runConfigurations.xml ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── anncode │ │ └── myapplication │ │ └── ApplicationTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── anncode │ │ │ └── myapplication │ │ │ ├── MainActivity.java │ │ │ ├── adapter │ │ │ ├── ListTaskAdapter.java │ │ │ └── ViewPagerAdapter.java │ │ │ ├── fragments │ │ │ ├── CustomListFragment.java │ │ │ ├── ListFragment.java │ │ │ └── RecyclerViewFragment.java │ │ │ └── model │ │ │ └── Task.java │ └── res │ │ ├── drawable-hdpi │ │ ├── custom_list.png │ │ ├── list.png │ │ └── recyclerview.png │ │ ├── drawable-mdpi │ │ ├── custom_list.png │ │ ├── list.png │ │ └── recyclerview.png │ │ ├── drawable-xhdpi │ │ ├── custom_list.png │ │ ├── list.png │ │ └── recyclerview.png │ │ ├── drawable-xxhdpi │ │ ├── custom_list.png │ │ ├── list.png │ │ └── recyclerview.png │ │ ├── drawable-xxxhdpi │ │ ├── custom_list.png │ │ ├── list.png │ │ └── recyclerview.png │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── content_main.xml │ │ ├── fragment_custom_list.xml │ │ ├── fragment_list.xml │ │ ├── fragment_recycler_view.xml │ │ └── item_list.xml │ │ ├── menu │ │ └── menu_main.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ └── ic_launcher.png │ │ ├── values-v21 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── anncode │ └── myapplication │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /BaseDatos_MVP/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/.name: -------------------------------------------------------------------------------- 1 | BaseDatos -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /BaseDatos_MVP/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.anncode.basedatos" 9 | minSdkVersion 15 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.4.0' 26 | compile 'com.android.support:design:23.4.0' 27 | } 28 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/anahisalgado/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/androidTest/java/com/anncode/basedatos/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos; 2 | 3 | import android.content.ContentValues; 4 | import android.content.Intent; 5 | import android.database.sqlite.SQLiteDatabase; 6 | import android.support.design.widget.Snackbar; 7 | import android.support.v7.app.AppCompatActivity; 8 | import android.os.Bundle; 9 | import android.view.View; 10 | import android.widget.EditText; 11 | 12 | import com.anncode.basedatos.db.DataBaseAdapter; 13 | import com.anncode.basedatos.view.ListaContactosActivity; 14 | 15 | public class MainActivity extends AppCompatActivity { 16 | 17 | EditText edtName; 18 | EditText edtEmail; 19 | EditText edtTwitter; 20 | 21 | @Override 22 | protected void onCreate(Bundle savedInstanceState) { 23 | super.onCreate(savedInstanceState); 24 | setContentView(R.layout.activity_main); 25 | 26 | edtName = (EditText) findViewById(R.id.edtName); 27 | edtEmail = (EditText) findViewById(R.id.edtEmail); 28 | edtTwitter = (EditText) findViewById(R.id.edtTwitter); 29 | 30 | 31 | } 32 | 33 | 34 | 35 | public void showSnackBar(View view){ 36 | Snackbar.make(view,"Se insertó con éxito",Snackbar.LENGTH_LONG) 37 | .setAction("Aceptar", new View.OnClickListener() { 38 | @Override 39 | public void onClick(View v) { 40 | Intent intent = 41 | new Intent( 42 | MainActivity.this, 43 | ListaContactosActivity.class 44 | ); 45 | startActivity(intent); 46 | 47 | } 48 | }).show(); 49 | } 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/db/DataBaseAdapter.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos.db; 2 | 3 | import android.content.ContentValues; 4 | import android.content.Context; 5 | import android.database.Cursor; 6 | import android.database.DatabaseErrorHandler; 7 | import android.database.sqlite.SQLiteDatabase; 8 | import android.database.sqlite.SQLiteOpenHelper; 9 | import android.provider.ContactsContract; 10 | 11 | import com.anncode.basedatos.model.Contacto; 12 | 13 | import java.util.ArrayList; 14 | 15 | /** 16 | * Created by anahisalgado on 16/07/16. 17 | */ 18 | public class DataBaseAdapter extends SQLiteOpenHelper { 19 | 20 | public DataBaseAdapter(Context context) { 21 | super(context, "miBaseDatos", null, 1); 22 | } 23 | 24 | public ArrayList getAllContacts(){ 25 | ArrayList contactos = new ArrayList<>(); 26 | String query = "SELECT * FROM user"; 27 | SQLiteDatabase db = this.getReadableDatabase(); 28 | Cursor registros = db.rawQuery(query, null); 29 | 30 | while (registros.moveToNext()){ 31 | Contacto currentContact = new Contacto(); 32 | currentContact.setId(registros.getInt(0)); 33 | currentContact.setNombre(registros.getString(1)); 34 | currentContact.setEmail(registros.getString(2)); 35 | currentContact.setTwitter(registros.getString(3)); 36 | 37 | contactos.add(currentContact); 38 | } 39 | 40 | db.close(); 41 | return contactos; 42 | } 43 | 44 | public void insertContact(ContentValues contentValues){ 45 | SQLiteDatabase db = this.getWritableDatabase(); 46 | db.insert("user", null, contentValues); 47 | db.close(); 48 | } 49 | 50 | @Override 51 | public void onCreate(SQLiteDatabase db) { 52 | String query = "CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, email TEXT, twitter TEXT)"; 53 | db.execSQL(query); 54 | } 55 | 56 | @Override 57 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/interactor/ListaContactosActivityInteractorDB.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos.interactor; 2 | 3 | import android.content.Context; 4 | 5 | import com.anncode.basedatos.db.DataBaseAdapter; 6 | import com.anncode.basedatos.model.Contacto; 7 | 8 | import java.util.ArrayList; 9 | 10 | /** 11 | * Created by anahisalgado on 23/07/16. 12 | */ 13 | public class ListaContactosActivityInteractorDB { 14 | Context context; 15 | DataBaseAdapter dataBaseAdapter; 16 | public ListaContactosActivityInteractorDB(Context context) { 17 | this.context = context; 18 | dataBaseAdapter = new DataBaseAdapter(context); 19 | } 20 | 21 | public ArrayList getNombresContacto(){ 22 | //Traer nombres contacto BD 23 | ArrayList nombresContacto = new ArrayList<>(); 24 | ArrayList contactos = 25 | dataBaseAdapter.getAllContacts(); 26 | 27 | for (Contacto c:contactos) { 28 | nombresContacto.add(c.getNombre()); 29 | } 30 | 31 | return nombresContacto; 32 | } 33 | 34 | public void insertContact(){ 35 | 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/model/Contacto.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos.model; 2 | 3 | /** 4 | * Created by anahisalgado on 23/07/16. 5 | */ 6 | public class Contacto { 7 | 8 | private int id; 9 | private String nombre; 10 | private String email; 11 | private String twitter; 12 | 13 | public Contacto() { 14 | } 15 | 16 | public Contacto(int id, String nombre, String email, String twitter) { 17 | this.id = id; 18 | this.nombre = nombre; 19 | this.email = email; 20 | this.twitter = twitter; 21 | } 22 | 23 | public int getId() { 24 | return id; 25 | } 26 | 27 | public void setId(int id) { 28 | this.id = id; 29 | } 30 | 31 | public String getNombre() { 32 | return nombre; 33 | } 34 | 35 | public void setNombre(String nombre) { 36 | this.nombre = nombre; 37 | } 38 | 39 | public String getEmail() { 40 | return email; 41 | } 42 | 43 | public void setEmail(String email) { 44 | this.email = email; 45 | } 46 | 47 | public String getTwitter() { 48 | return twitter; 49 | } 50 | 51 | public void setTwitter(String twitter) { 52 | this.twitter = twitter; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/presenter/IListaContactosActivityPresenter.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos.presenter; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by anahisalgado on 23/07/16. 7 | */ 8 | public interface IListaContactosActivityPresenter { 9 | 10 | void getData(); 11 | void showData(ArrayList nombresContacto); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/presenter/ListaContactosActivityPresenter.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos.presenter; 2 | 3 | import android.content.Context; 4 | import android.widget.ArrayAdapter; 5 | 6 | import com.anncode.basedatos.interactor.ListaContactosActivityInteractorDB; 7 | import com.anncode.basedatos.view.IListaContactosActivity; 8 | 9 | import java.util.ArrayList; 10 | 11 | /** 12 | * Created by anahisalgado on 23/07/16. 13 | */ 14 | public class ListaContactosActivityPresenter implements IListaContactosActivityPresenter { 15 | 16 | IListaContactosActivity iListaContactosActivity; 17 | Context context; 18 | 19 | public ListaContactosActivityPresenter(IListaContactosActivity iListaContactosActivity, Context context) { 20 | this.iListaContactosActivity = iListaContactosActivity; 21 | this.context = context; 22 | getData(); 23 | } 24 | 25 | //Fuente de Datos 26 | @Override 27 | public void getData() { 28 | ArrayList nombresContacto = new ArrayList<>(); 29 | 30 | ListaContactosActivityInteractorDB 31 | listaContactosActivityInteractorDB = 32 | new ListaContactosActivityInteractorDB(context); 33 | 34 | nombresContacto = 35 | listaContactosActivityInteractorDB.getNombresContacto(); 36 | 37 | showData(nombresContacto); 38 | } 39 | 40 | @Override 41 | public void showData(ArrayList nombresContacto) { 42 | ArrayAdapter adapter = 43 | iListaContactosActivity.createAdapter(nombresContacto); 44 | iListaContactosActivity.setAdapterListView(adapter); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/java/com/anncode/basedatos/view/IListaContactosActivity.java: -------------------------------------------------------------------------------- 1 | package com.anncode.basedatos.view; 2 | 3 | import android.widget.ArrayAdapter; 4 | 5 | import java.util.ArrayList; 6 | 7 | /** 8 | * Created by anahisalgado on 23/07/16. 9 | */ 10 | public interface IListaContactosActivity { 11 | 12 | void setUpFAB(); 13 | ArrayAdapter createAdapter(ArrayList nombresContacto); 14 | void setAdapterListView(ArrayAdapter adapter); 15 | } 16 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/layout/activity_lista_contactos.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 | 23 | 24 | 25 | 26 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/layout/content_lista_contactos.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/BaseDatos_MVP/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/BaseDatos_MVP/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/BaseDatos_MVP/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/BaseDatos_MVP/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/BaseDatos_MVP/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BaseDatos 3 | Save 4 | Show 5 | Result 6 | ListaContactosActivity 7 | Name 8 | Email 9 | Twitter 10 | 11 | -------------------------------------------------------------------------------- /BaseDatos_MVP/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 9 | 10 | -------------------------------------------------------------------------------- /CardViewRecyclerView_TelmexHub_session2/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /CardViewRecyclerView_TelmexHub_session2/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #EEEEEE 7 | 8 | -------------------------------------------------------------------------------- /CardViewRecyclerView_TelmexHub_session2/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 230dp 7 | 8 | -------------------------------------------------------------------------------- /CardViewRecyclerView_TelmexHub_session2/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Mi CardView 3 | Settings 4 | Paisaje Campo Mañana 5 | 6 | -------------------------------------------------------------------------------- /CardViewRecyclerView_TelmexHub_session2/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Fragments/app/src/test/java/com/anncode/fragments/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.fragments; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /Fragments/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.1.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /Fragments/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /Fragments/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/Fragments/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Fragments/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /Fragments/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/.name: -------------------------------------------------------------------------------- 1 | HolaMundoMaterialDesign -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.anncode.holamundomaterialdesign" 9 | minSdkVersion 14 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.1.1' 26 | compile 'com.android.support:design:23.1.0' 27 | 28 | } 29 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/anahisalgado/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/androidTest/java/com/anncode/holamundomaterialdesign/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.holamundomaterialdesign; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/java/com/anncode/holamundomaterialdesign/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.anncode.holamundomaterialdesign; 2 | 3 | import android.support.design.widget.FloatingActionButton; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.Toast; 8 | 9 | public class MainActivity extends AppCompatActivity { 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(R.layout.activity_main); 15 | colocarFAB(); 16 | } 17 | 18 | public void colocarFAB(){ 19 | FloatingActionButton miFAB = (FloatingActionButton) findViewById(R.id.miFAB); 20 | miFAB.setOnClickListener(new View.OnClickListener() { 21 | @Override 22 | public void onClick(View v) { 23 | Toast.makeText(MainActivity.this, "Diste Click :D", Toast.LENGTH_SHORT).show(); 24 | } 25 | }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-hdpi/ic_fresa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-hdpi/ic_fresa.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-ldpi/ic_fresa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-ldpi/ic_fresa.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-mdpi/ic_fresa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-mdpi/ic_fresa.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-xhdpi/ic_fresa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-xhdpi/ic_fresa.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-xxhdpi/ic_fresa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/drawable-xxhdpi/ic_fresa.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 18 | 19 | 25 | 26 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F44336 4 | #D32F2F 5 | #607D8B 6 | 7 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 4dp 6 | 16dp 7 | 6dp 8 | 9 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | HolaMundoMaterialDesign 3 | 4 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/app/src/test/java/com/anncode/holamundomaterialdesign/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.holamundomaterialdesign; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.5.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/HolaMundoMaterialDesign_TelmexHub_session1/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /HolaMundoMaterialDesign_TelmexHub_session1/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/.name: -------------------------------------------------------------------------------- 1 | MaterialDesignSupport-CambiarPantalla -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/CambiarPantalla.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/MaterialDesignSupport-CambiarPantall.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/MaterialDesignSupport-CambiarPantalla.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.anncode.cambiarpantalla" 9 | minSdkVersion 15 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.1.0' 26 | compile 'com.android.support:design:23.1.0' 27 | } 28 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/anahisalgado/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/androidTest/java/com/anncode/cambiarpantalla/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.cambiarpantalla; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/java/com/anncode/cambiarpantalla/AgregarDatos.java: -------------------------------------------------------------------------------- 1 | package com.anncode.cambiarpantalla; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class AgregarDatos extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_agregar_datos); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/java/com/anncode/cambiarpantalla/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.anncode.cambiarpantalla; 2 | 3 | import android.content.Intent; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | 8 | public class MainActivity extends AppCompatActivity { 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_main); 14 | } 15 | 16 | 17 | public void irAgregarDatos(View v){ 18 | Intent i = new Intent(this, AgregarDatos.class); 19 | startActivity(i); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/anim/elevacion_boton.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 20 | 21 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/layout/activity_agregar_datos.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 15 | 16 | 19 | 20 | 28 | 35 | 36 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/layout/mi_toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/cocodrilo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/cocodrilo.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/codigofacilito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/codigofacilito.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/ic_add_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/ic_add_user.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/ic_like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-hdpi/ic_like.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/cocodrilo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/cocodrilo.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/codigofacilito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/codigofacilito.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/ic_add_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/ic_add_user.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/ic_like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-mdpi/ic_like.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/cocodrilo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/cocodrilo.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/codigofacilito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/codigofacilito.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/ic_add_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/ic_add_user.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/ic_like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xhdpi/ic_like.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/cocodrilo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/cocodrilo.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/codigofacilito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/codigofacilito.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/ic_add_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/ic_add_user.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/ic_like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxhdpi/ic_like.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/cocodrilo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/cocodrilo.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/codigofacilito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/codigofacilito.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/ic_add_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/ic_add_user.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/ic_like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/app/src/main/res/mipmap-xxxhdpi/ic_like.png -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #4CAF50 4 | #388E3C 5 | #FFC107 6 | #000 7 | 8 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 4dp 6 | 6dp 7 | 12dp 8 | 0dp 9 | 16dp 10 | 25sp 11 | 12 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CambiarPantalla 3 | Agrega un Contacto :) 4 | Ingresa tus Datos 5 | 6 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/app/src/test/java/com/anncode/cambiarpantalla/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.cambiarpantalla; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MaterialDesignSupport-CambiarPantalla/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Oct 24 13:52:47 CDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 7 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/readme: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /MaterialDesignSupport-CambiarPantalla/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /MiLamparaApp/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/.name: -------------------------------------------------------------------------------- 1 | MiLamparaApp -------------------------------------------------------------------------------- /MiLamparaApp/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /MiLamparaApp/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MiLamparaApp/MiLampara.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MiLamparaApp/MiLamparaApp.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MiLamparaApp/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /MiLamparaApp/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.anncode.milampara" 9 | minSdkVersion 15 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.1.0' 26 | compile 'com.android.support:design:23.1.0' 27 | } 28 | -------------------------------------------------------------------------------- /MiLamparaApp/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/anahisalgado/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/androidTest/java/com/anncode/milampara/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.milampara; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-hdpi/foco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-hdpi/foco.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-hdpi/ic_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-hdpi/ic_flash.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-mdpi/foco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-mdpi/foco.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-mdpi/ic_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-mdpi/ic_flash.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xhdpi/foco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xhdpi/foco.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xhdpi/ic_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xhdpi/ic_flash.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xxhdpi/foco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xxhdpi/foco.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xxhdpi/ic_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xxhdpi/ic_flash.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xxxhdpi/foco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xxxhdpi/foco.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xxxhdpi/ic_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xxxhdpi/ic_flash.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #E91E63 4 | #C2185B 5 | #00BCD4 6 | #FFFFFF 7 | #212121 8 | #727272 9 | #F8BBD0 10 | #B6B6B6 11 | 12 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 4dp 6 | 6dp 7 | 12dp 8 | 16dp 9 | 10 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MiLampara 3 | No se detecto un Flash :( 4 | Flash Encendido 5 | Flash Apagado 6 | 7 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MiLamparaApp/app/src/test/java/com/anncode/milampara/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.milampara; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /MiLamparaApp/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /MiLamparaApp/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /MiLamparaApp/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/MiLamparaApp/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /MiLamparaApp/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Oct 31 09:55:02 CST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 7 | -------------------------------------------------------------------------------- /MiLamparaApp/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /NotificacionFireBase/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /NotificacionFireBase/app/src/main/java/com/anncode/notificacionfirebase/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.anncode.notificacionfirebase; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDoListFragment/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/.name: -------------------------------------------------------------------------------- 1 | My Application -------------------------------------------------------------------------------- /ToDoListFragment/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 23 | 24 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ToDoListFragment/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /ToDoListFragment/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /ToDoListFragment/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.anncode.myapplication" 9 | minSdkVersion 15 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.4.0' 26 | compile 'com.android.support:design:23.4.0' 27 | compile 'com.android.support:support-v4:23.4.0' 28 | compile 'com.squareup.picasso:picasso:2.5.2' 29 | } 30 | -------------------------------------------------------------------------------- /ToDoListFragment/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/anahisalgado/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/androidTest/java/com/anncode/myapplication/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 13 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/java/com/anncode/myapplication/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication; 2 | 3 | import android.os.Bundle; 4 | import android.support.design.widget.FloatingActionButton; 5 | import android.support.design.widget.Snackbar; 6 | import android.support.design.widget.TabLayout; 7 | import android.support.v4.app.Fragment; 8 | import android.support.v4.view.ViewPager; 9 | import android.support.v7.app.AppCompatActivity; 10 | import android.support.v7.widget.Toolbar; 11 | import android.view.View; 12 | import android.view.Menu; 13 | import android.view.MenuItem; 14 | 15 | import com.anncode.myapplication.adapter.ViewPagerAdapter; 16 | import com.anncode.myapplication.fragments.CustomListFragment; 17 | import com.anncode.myapplication.fragments.ListFragment; 18 | import com.anncode.myapplication.fragments.RecyclerViewFragment; 19 | 20 | import java.util.ArrayList; 21 | 22 | public class MainActivity extends AppCompatActivity { 23 | 24 | @Override 25 | protected void onCreate(Bundle savedInstanceState) { 26 | super.onCreate(savedInstanceState); 27 | setContentView(R.layout.activity_main); 28 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 29 | setSupportActionBar(toolbar); 30 | 31 | TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout); 32 | ViewPager viewPager = (ViewPager) findViewById(R.id.viewPager); 33 | 34 | viewPager.setAdapter( 35 | new ViewPagerAdapter( 36 | getSupportFragmentManager(), buildListFragments() 37 | ) 38 | ); 39 | 40 | tabLayout.setupWithViewPager(viewPager); 41 | 42 | tabLayout.getTabAt(0).setIcon(R.drawable.list); 43 | tabLayout.getTabAt(1).setIcon(R.drawable.custom_list); 44 | tabLayout.getTabAt(2).setIcon(R.drawable.recyclerview); 45 | 46 | 47 | } 48 | 49 | public ArrayList buildListFragments(){ 50 | ArrayList fragments = new ArrayList<>(); 51 | fragments.add(new ListFragment()); 52 | fragments.add(new CustomListFragment()); 53 | fragments.add(new RecyclerViewFragment()); 54 | return fragments; 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/java/com/anncode/myapplication/adapter/ListTaskAdapter.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication.adapter; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.ArrayAdapter; 9 | import android.widget.ImageView; 10 | import android.widget.TextView; 11 | 12 | import com.anncode.myapplication.R; 13 | import com.anncode.myapplication.model.Task; 14 | import com.squareup.picasso.Picasso; 15 | 16 | import java.util.ArrayList; 17 | 18 | /** 19 | * Created by anahisalgado on 09/07/16. 20 | */ 21 | public class ListTaskAdapter extends ArrayAdapter{ 22 | Context context; 23 | int resource; 24 | ArrayList tasks; 25 | 26 | public ListTaskAdapter(Context context, int resource, ArrayList tasks) { 27 | super(context, resource, tasks); 28 | this.context = context; 29 | this.resource = resource; 30 | this.tasks = tasks; 31 | } 32 | 33 | 34 | @Override 35 | public View getView(int position, View convertView, ViewGroup parent) { 36 | //return super.getView(position, convertView, parent); 37 | Activity activity = (Activity) context; 38 | 39 | LayoutInflater inflater = activity.getLayoutInflater(); 40 | View view = inflater.inflate(resource, null); 41 | 42 | ImageView imgImage = (ImageView) view.findViewById(R.id.imgImage); 43 | TextView tvNameTask = (TextView) view.findViewById(R.id.tvNameTask); 44 | 45 | tvNameTask.setText(tasks.get(position).getName()); 46 | 47 | //Picasso pone las imagenes desde internet al ImageView 48 | Picasso.with(activity) 49 | .load(tasks.get(position).getImage()) 50 | .placeholder(R.mipmap.ic_launcher) 51 | .into(imgImage); 52 | 53 | return view; 54 | 55 | } 56 | 57 | 58 | } 59 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/java/com/anncode/myapplication/adapter/ViewPagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication.adapter; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentPagerAdapter; 6 | 7 | import java.util.ArrayList; 8 | 9 | /** 10 | * Created by anahisalgado on 09/07/16. 11 | */ 12 | public class ViewPagerAdapter extends FragmentPagerAdapter { 13 | 14 | private ArrayList fragments; 15 | 16 | public ViewPagerAdapter(FragmentManager fm, ArrayList fragments) { 17 | super(fm); 18 | this.fragments = fragments; 19 | } 20 | 21 | @Override 22 | public Fragment getItem(int position) { 23 | return fragments.get(position); 24 | } 25 | 26 | @Override 27 | public int getCount() { 28 | return fragments.size(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/java/com/anncode/myapplication/fragments/ListFragment.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication.fragments; 2 | 3 | 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.ArrayAdapter; 10 | import android.widget.Button; 11 | import android.widget.EditText; 12 | import android.widget.ListView; 13 | 14 | import com.anncode.myapplication.R; 15 | 16 | import java.util.ArrayList; 17 | 18 | /** 19 | * A simple {@link Fragment} subclass. 20 | */ 21 | public class ListFragment extends Fragment { 22 | 23 | 24 | public ListFragment() { 25 | // Required empty public constructor 26 | } 27 | 28 | ArrayList tasks; 29 | @Override 30 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 31 | Bundle savedInstanceState) { 32 | // Inflate the layout for this fragment 33 | View view = inflater.inflate(R.layout.fragment_list, container, false); 34 | 35 | final EditText edtTask = (EditText) view.findViewById(R.id.edtTask); 36 | Button btnTask = (Button) view.findViewById(R.id.btnTask); 37 | ListView lstTask = (ListView) view.findViewById(R.id.lstTask); 38 | 39 | 40 | tasks= new ArrayList<>(); 41 | final ArrayAdapter adapter = 42 | new ArrayAdapter( 43 | getContext(), 44 | android.R.layout.simple_list_item_1, 45 | tasks 46 | ); 47 | 48 | lstTask.setAdapter(adapter); 49 | 50 | btnTask.setOnClickListener(new View.OnClickListener() { 51 | @Override 52 | public void onClick(View v) { 53 | String task = edtTask.getText().toString(); 54 | tasks.add(task); 55 | adapter.notifyDataSetChanged(); 56 | edtTask.setText(""); 57 | } 58 | }); 59 | 60 | 61 | 62 | return view; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/java/com/anncode/myapplication/fragments/RecyclerViewFragment.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication.fragments; 2 | 3 | 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | import com.anncode.myapplication.R; 11 | 12 | /** 13 | * A simple {@link Fragment} subclass. 14 | */ 15 | public class RecyclerViewFragment extends Fragment { 16 | 17 | 18 | public RecyclerViewFragment() { 19 | // Required empty public constructor 20 | } 21 | 22 | 23 | @Override 24 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 25 | Bundle savedInstanceState) { 26 | // Inflate the layout for this fragment 27 | return inflater.inflate(R.layout.fragment_recycler_view, container, false); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/java/com/anncode/myapplication/model/Task.java: -------------------------------------------------------------------------------- 1 | package com.anncode.myapplication.model; 2 | 3 | /** 4 | * Created by anahisalgado on 09/07/16. 5 | */ 6 | public class Task { 7 | private String name; 8 | private String image; 9 | 10 | public Task(String name, String image) { 11 | this.name = name; 12 | this.image = image; 13 | } 14 | 15 | public String getName() { 16 | return name; 17 | } 18 | 19 | public void setName(String name) { 20 | this.name = name; 21 | } 22 | 23 | public String getImage() { 24 | return image; 25 | } 26 | 27 | public void setImage(String image) { 28 | this.image = image; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-hdpi/custom_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-hdpi/custom_list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-hdpi/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-hdpi/list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-hdpi/recyclerview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-hdpi/recyclerview.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-mdpi/custom_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-mdpi/custom_list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-mdpi/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-mdpi/list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-mdpi/recyclerview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-mdpi/recyclerview.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xhdpi/custom_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xhdpi/custom_list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xhdpi/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xhdpi/list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xhdpi/recyclerview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xhdpi/recyclerview.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xxhdpi/custom_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xxhdpi/custom_list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xxhdpi/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xxhdpi/list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xxhdpi/recyclerview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xxhdpi/recyclerview.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xxxhdpi/custom_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xxxhdpi/custom_list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xxxhdpi/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xxxhdpi/list.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/drawable-xxxhdpi/recyclerview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anncode1/Android/3b9ce16f82717c18eecf8e0379d6d5c4bf28a355/ToDoListFragment/app/src/main/res/drawable-xxxhdpi/recyclerview.png -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 | 27 | 28 | 29 | 30 | 36 | 37 | 38 | 39 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /ToDoListFragment/app/src/main/res/layout/fragment_custom_list.xml: -------------------------------------------------------------------------------- 1 | 8 | 13 | 14 | 20 | 21 | 22 |