diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b75303 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..30aa626 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..2996d53 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..37a7509 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..8b2eadb --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,29 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 28 + defaultConfig { + applicationId "com.jakeesveld.android_animatedimages" + minSdkVersion 28 + targetSdkVersion 28 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'com.android.support:appcompat-v7:28.0.0' + implementation 'com.android.support.constraint:constraint-layout:1.1.3' + implementation 'com.android.support:design:28.0.0' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/app/src/androidTest/java/com/jakeesveld/android_animatedimages/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/jakeesveld/android_animatedimages/ExampleInstrumentedTest.java new file mode 100644 index 0000000..489dbac --- /dev/null +++ b/app/src/androidTest/java/com/jakeesveld/android_animatedimages/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.jakeesveld.android_animatedimages; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.jakeesveld.android_animatedimages", appContext.getPackageName()); + } +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..77fbcbc --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/jakeesveld/android_animatedimages/MainActivity.java b/app/src/main/java/com/jakeesveld/android_animatedimages/MainActivity.java new file mode 100644 index 0000000..3f4814c --- /dev/null +++ b/app/src/main/java/com/jakeesveld/android_animatedimages/MainActivity.java @@ -0,0 +1,119 @@ +package com.jakeesveld.android_animatedimages; + +import android.graphics.drawable.AnimatedImageDrawable; +import android.graphics.drawable.AnimatedVectorDrawable; +import android.graphics.drawable.AnimationDrawable; +import android.graphics.drawable.Drawable; +import android.support.constraint.ConstraintLayout; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.RadioButton; + +public class MainActivity extends AppCompatActivity { + + ImageView imageView; + RadioButton buttonGif; + RadioButton buttonAnimation; + RadioButton buttonVector; + ConstraintLayout parentLayout; + Boolean pickup; + ImageView imageViewBubble; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + imageView = findViewById(R.id.image_view); + buttonAnimation = findViewById(R.id.button_animation); + buttonGif = findViewById(R.id.button_gif); + buttonVector = findViewById(R.id.button_vector); + parentLayout = findViewById(R.id.parent_layout); + imageViewBubble = findViewById(R.id.image_view_bubble); + imageViewBubble.setVisibility(View.GONE); + + imageView.setImageDrawable(getDrawable(R.drawable.snoop_dogg)); + parentLayout.setBackground(getDrawable(R.drawable.compton_background)); + buttonGif.setChecked(true); + refreshAnimation(); + pickup = false; + + buttonGif.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + imageViewBubble.setVisibility(View.GONE); + buttonGif.setChecked(true); + buttonAnimation.setChecked(false); + buttonVector.setChecked(false); + imageView.setImageDrawable(getDrawable(R.drawable.snoop_dogg)); + parentLayout.setBackground(getDrawable(R.drawable.compton_background)); + refreshAnimation(); + } + }); + + buttonAnimation.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + imageViewBubble.setVisibility(View.GONE); + buttonAnimation.setChecked(true); + buttonVector.setChecked(false); + buttonGif.setChecked(false); + imageView.setImageDrawable(getDrawable(R.drawable.goat)); + parentLayout.setBackground(getDrawable(R.drawable.pasture_background)); + refreshAnimation(); + } + }); + + buttonVector.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + buttonGif.setChecked(false); + buttonVector.setChecked(true); + buttonAnimation.setChecked(false); + if (pickup) { + imageView.setImageDrawable(getDrawable(R.drawable.avd_anim_ring_pickup)); + imageViewBubble.setVisibility(View.VISIBLE); + } else { + imageView.setImageDrawable(getDrawable(R.drawable.avd_anim_pickup_ring)); + } + parentLayout.setBackground(getDrawable(R.drawable.office_background)); + refreshAnimation(); + } + }); + + + } + + public void refreshAnimation() { + final Drawable drawable = imageView.getDrawable(); + if (drawable instanceof AnimatedImageDrawable) { + ((AnimatedImageDrawable) drawable).start(); + } else if (drawable instanceof AnimationDrawable) { + ((AnimationDrawable) drawable).start(); + } else if (drawable instanceof AnimatedVectorDrawable) { + ((AnimatedVectorDrawable) drawable).start(); + imageView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + if (buttonVector.isChecked()) { + if (pickup) { + imageView.setImageDrawable(getDrawable(R.drawable.avd_anim_pickup_ring)); + imageViewBubble.setVisibility(View.GONE); + } else { + imageView.setImageDrawable(getDrawable(R.drawable.avd_anim_ring_pickup)); + imageViewBubble.setVisibility(View.VISIBLE); + } + Drawable current = imageView.getDrawable(); + ((AnimatedVectorDrawable) current).start(); + pickup = !pickup; + } + } + }); + + } + } + + +} diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..1f6bb29 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/app/src/main/res/drawable/avd_anim_pickup_ring.xml b/app/src/main/res/drawable/avd_anim_pickup_ring.xml new file mode 100644 index 0000000..d822dcb --- /dev/null +++ b/app/src/main/res/drawable/avd_anim_pickup_ring.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/avd_anim_ring_pickup.xml b/app/src/main/res/drawable/avd_anim_ring_pickup.xml new file mode 100644 index 0000000..37a6b49 --- /dev/null +++ b/app/src/main/res/drawable/avd_anim_ring_pickup.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/compton_background.jpg b/app/src/main/res/drawable/compton_background.jpg new file mode 100644 index 0000000..d00c753 Binary files /dev/null and b/app/src/main/res/drawable/compton_background.jpg differ diff --git a/app/src/main/res/drawable/goat.xml b/app/src/main/res/drawable/goat.xml new file mode 100644 index 0000000..df614ee --- /dev/null +++ b/app/src/main/res/drawable/goat.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/goat_frame_00.gif b/app/src/main/res/drawable/goat_frame_00.gif new file mode 100644 index 0000000..0d7b569 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_00.gif differ diff --git a/app/src/main/res/drawable/goat_frame_01.gif b/app/src/main/res/drawable/goat_frame_01.gif new file mode 100644 index 0000000..6ba7350 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_01.gif differ diff --git a/app/src/main/res/drawable/goat_frame_02.gif b/app/src/main/res/drawable/goat_frame_02.gif new file mode 100644 index 0000000..e665c7e Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_02.gif differ diff --git a/app/src/main/res/drawable/goat_frame_03.gif b/app/src/main/res/drawable/goat_frame_03.gif new file mode 100644 index 0000000..18434da Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_03.gif differ diff --git a/app/src/main/res/drawable/goat_frame_04.gif b/app/src/main/res/drawable/goat_frame_04.gif new file mode 100644 index 0000000..f98b8c4 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_04.gif differ diff --git a/app/src/main/res/drawable/goat_frame_05.gif b/app/src/main/res/drawable/goat_frame_05.gif new file mode 100644 index 0000000..49926c6 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_05.gif differ diff --git a/app/src/main/res/drawable/goat_frame_06.gif b/app/src/main/res/drawable/goat_frame_06.gif new file mode 100644 index 0000000..e535dd9 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_06.gif differ diff --git a/app/src/main/res/drawable/goat_frame_07.gif b/app/src/main/res/drawable/goat_frame_07.gif new file mode 100644 index 0000000..a7b2da9 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_07.gif differ diff --git a/app/src/main/res/drawable/goat_frame_08.gif b/app/src/main/res/drawable/goat_frame_08.gif new file mode 100644 index 0000000..58e1a18 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_08.gif differ diff --git a/app/src/main/res/drawable/goat_frame_09.gif b/app/src/main/res/drawable/goat_frame_09.gif new file mode 100644 index 0000000..14c9bb3 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_09.gif differ diff --git a/app/src/main/res/drawable/goat_frame_10.gif b/app/src/main/res/drawable/goat_frame_10.gif new file mode 100644 index 0000000..d2af762 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_10.gif differ diff --git a/app/src/main/res/drawable/goat_frame_11.gif b/app/src/main/res/drawable/goat_frame_11.gif new file mode 100644 index 0000000..9cbfc45 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_11.gif differ diff --git a/app/src/main/res/drawable/goat_frame_12.gif b/app/src/main/res/drawable/goat_frame_12.gif new file mode 100644 index 0000000..afc4414 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_12.gif differ diff --git a/app/src/main/res/drawable/goat_frame_13.gif b/app/src/main/res/drawable/goat_frame_13.gif new file mode 100644 index 0000000..c4fd25b Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_13.gif differ diff --git a/app/src/main/res/drawable/goat_frame_14.gif b/app/src/main/res/drawable/goat_frame_14.gif new file mode 100644 index 0000000..3fe9ee2 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_14.gif differ diff --git a/app/src/main/res/drawable/goat_frame_15.gif b/app/src/main/res/drawable/goat_frame_15.gif new file mode 100644 index 0000000..81d5948 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_15.gif differ diff --git a/app/src/main/res/drawable/goat_frame_16.gif b/app/src/main/res/drawable/goat_frame_16.gif new file mode 100644 index 0000000..f1666dd Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_16.gif differ diff --git a/app/src/main/res/drawable/goat_frame_17.gif b/app/src/main/res/drawable/goat_frame_17.gif new file mode 100644 index 0000000..8802e2f Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_17.gif differ diff --git a/app/src/main/res/drawable/goat_frame_18.gif b/app/src/main/res/drawable/goat_frame_18.gif new file mode 100644 index 0000000..5970342 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_18.gif differ diff --git a/app/src/main/res/drawable/goat_frame_19.gif b/app/src/main/res/drawable/goat_frame_19.gif new file mode 100644 index 0000000..c698d52 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_19.gif differ diff --git a/app/src/main/res/drawable/goat_frame_20.gif b/app/src/main/res/drawable/goat_frame_20.gif new file mode 100644 index 0000000..16f9756 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_20.gif differ diff --git a/app/src/main/res/drawable/goat_frame_21.gif b/app/src/main/res/drawable/goat_frame_21.gif new file mode 100644 index 0000000..5ad0f31 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_21.gif differ diff --git a/app/src/main/res/drawable/goat_frame_22.gif b/app/src/main/res/drawable/goat_frame_22.gif new file mode 100644 index 0000000..31d51ca Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_22.gif differ diff --git a/app/src/main/res/drawable/goat_frame_23.gif b/app/src/main/res/drawable/goat_frame_23.gif new file mode 100644 index 0000000..f36b23f Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_23.gif differ diff --git a/app/src/main/res/drawable/goat_frame_24.gif b/app/src/main/res/drawable/goat_frame_24.gif new file mode 100644 index 0000000..1928d51 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_24.gif differ diff --git a/app/src/main/res/drawable/goat_frame_25.gif b/app/src/main/res/drawable/goat_frame_25.gif new file mode 100644 index 0000000..b8300be Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_25.gif differ diff --git a/app/src/main/res/drawable/goat_frame_26.gif b/app/src/main/res/drawable/goat_frame_26.gif new file mode 100644 index 0000000..d85f42f Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_26.gif differ diff --git a/app/src/main/res/drawable/goat_frame_27.gif b/app/src/main/res/drawable/goat_frame_27.gif new file mode 100644 index 0000000..30469ca Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_27.gif differ diff --git a/app/src/main/res/drawable/goat_frame_28.gif b/app/src/main/res/drawable/goat_frame_28.gif new file mode 100644 index 0000000..b0d0495 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_28.gif differ diff --git a/app/src/main/res/drawable/goat_frame_29.gif b/app/src/main/res/drawable/goat_frame_29.gif new file mode 100644 index 0000000..775e1e5 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_29.gif differ diff --git a/app/src/main/res/drawable/goat_frame_30.gif b/app/src/main/res/drawable/goat_frame_30.gif new file mode 100644 index 0000000..de42ebb Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_30.gif differ diff --git a/app/src/main/res/drawable/goat_frame_31.gif b/app/src/main/res/drawable/goat_frame_31.gif new file mode 100644 index 0000000..e6c5b07 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_31.gif differ diff --git a/app/src/main/res/drawable/goat_frame_32.gif b/app/src/main/res/drawable/goat_frame_32.gif new file mode 100644 index 0000000..d626711 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_32.gif differ diff --git a/app/src/main/res/drawable/goat_frame_33.gif b/app/src/main/res/drawable/goat_frame_33.gif new file mode 100644 index 0000000..821e5bf Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_33.gif differ diff --git a/app/src/main/res/drawable/goat_frame_34.gif b/app/src/main/res/drawable/goat_frame_34.gif new file mode 100644 index 0000000..757ae95 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_34.gif differ diff --git a/app/src/main/res/drawable/goat_frame_35.gif b/app/src/main/res/drawable/goat_frame_35.gif new file mode 100644 index 0000000..cfd563e Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_35.gif differ diff --git a/app/src/main/res/drawable/goat_frame_36.gif b/app/src/main/res/drawable/goat_frame_36.gif new file mode 100644 index 0000000..f314f1f Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_36.gif differ diff --git a/app/src/main/res/drawable/goat_frame_37.gif b/app/src/main/res/drawable/goat_frame_37.gif new file mode 100644 index 0000000..095536b Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_37.gif differ diff --git a/app/src/main/res/drawable/goat_frame_38.gif b/app/src/main/res/drawable/goat_frame_38.gif new file mode 100644 index 0000000..9d5092d Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_38.gif differ diff --git a/app/src/main/res/drawable/goat_frame_39.gif b/app/src/main/res/drawable/goat_frame_39.gif new file mode 100644 index 0000000..2d1b4b4 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_39.gif differ diff --git a/app/src/main/res/drawable/goat_frame_40.gif b/app/src/main/res/drawable/goat_frame_40.gif new file mode 100644 index 0000000..fc9faea Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_40.gif differ diff --git a/app/src/main/res/drawable/goat_frame_41.gif b/app/src/main/res/drawable/goat_frame_41.gif new file mode 100644 index 0000000..12d5c0f Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_41.gif differ diff --git a/app/src/main/res/drawable/goat_frame_42.gif b/app/src/main/res/drawable/goat_frame_42.gif new file mode 100644 index 0000000..749fd0f Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_42.gif differ diff --git a/app/src/main/res/drawable/goat_frame_43.gif b/app/src/main/res/drawable/goat_frame_43.gif new file mode 100644 index 0000000..f6386d1 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_43.gif differ diff --git a/app/src/main/res/drawable/goat_frame_44.gif b/app/src/main/res/drawable/goat_frame_44.gif new file mode 100644 index 0000000..d91ab70 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_44.gif differ diff --git a/app/src/main/res/drawable/goat_frame_45.gif b/app/src/main/res/drawable/goat_frame_45.gif new file mode 100644 index 0000000..9d97a25 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_45.gif differ diff --git a/app/src/main/res/drawable/goat_frame_46.gif b/app/src/main/res/drawable/goat_frame_46.gif new file mode 100644 index 0000000..da74706 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_46.gif differ diff --git a/app/src/main/res/drawable/goat_frame_47.gif b/app/src/main/res/drawable/goat_frame_47.gif new file mode 100644 index 0000000..43486ea Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_47.gif differ diff --git a/app/src/main/res/drawable/goat_frame_48.gif b/app/src/main/res/drawable/goat_frame_48.gif new file mode 100644 index 0000000..f828879 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_48.gif differ diff --git a/app/src/main/res/drawable/goat_frame_49.gif b/app/src/main/res/drawable/goat_frame_49.gif new file mode 100644 index 0000000..c217a90 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_49.gif differ diff --git a/app/src/main/res/drawable/goat_frame_50.gif b/app/src/main/res/drawable/goat_frame_50.gif new file mode 100644 index 0000000..f89cf4a Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_50.gif differ diff --git a/app/src/main/res/drawable/goat_frame_51.gif b/app/src/main/res/drawable/goat_frame_51.gif new file mode 100644 index 0000000..4413baf Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_51.gif differ diff --git a/app/src/main/res/drawable/goat_frame_52.gif b/app/src/main/res/drawable/goat_frame_52.gif new file mode 100644 index 0000000..1c73574 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_52.gif differ diff --git a/app/src/main/res/drawable/goat_frame_53.gif b/app/src/main/res/drawable/goat_frame_53.gif new file mode 100644 index 0000000..a3cbb1b Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_53.gif differ diff --git a/app/src/main/res/drawable/goat_frame_54.gif b/app/src/main/res/drawable/goat_frame_54.gif new file mode 100644 index 0000000..aa8bd53 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_54.gif differ diff --git a/app/src/main/res/drawable/goat_frame_55.gif b/app/src/main/res/drawable/goat_frame_55.gif new file mode 100644 index 0000000..84f5d92 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_55.gif differ diff --git a/app/src/main/res/drawable/goat_frame_56.gif b/app/src/main/res/drawable/goat_frame_56.gif new file mode 100644 index 0000000..0d107c3 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_56.gif differ diff --git a/app/src/main/res/drawable/goat_frame_57.gif b/app/src/main/res/drawable/goat_frame_57.gif new file mode 100644 index 0000000..e1e5f3b Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_57.gif differ diff --git a/app/src/main/res/drawable/goat_frame_58.gif b/app/src/main/res/drawable/goat_frame_58.gif new file mode 100644 index 0000000..4d524a1 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_58.gif differ diff --git a/app/src/main/res/drawable/goat_frame_59.gif b/app/src/main/res/drawable/goat_frame_59.gif new file mode 100644 index 0000000..7fa7e59 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_59.gif differ diff --git a/app/src/main/res/drawable/goat_frame_60.gif b/app/src/main/res/drawable/goat_frame_60.gif new file mode 100644 index 0000000..7d826ae Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_60.gif differ diff --git a/app/src/main/res/drawable/goat_frame_61.gif b/app/src/main/res/drawable/goat_frame_61.gif new file mode 100644 index 0000000..51fa855 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_61.gif differ diff --git a/app/src/main/res/drawable/goat_frame_62.gif b/app/src/main/res/drawable/goat_frame_62.gif new file mode 100644 index 0000000..ada1ba4 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_62.gif differ diff --git a/app/src/main/res/drawable/goat_frame_63.gif b/app/src/main/res/drawable/goat_frame_63.gif new file mode 100644 index 0000000..ee78ecb Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_63.gif differ diff --git a/app/src/main/res/drawable/goat_frame_64.gif b/app/src/main/res/drawable/goat_frame_64.gif new file mode 100644 index 0000000..00b92a4 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_64.gif differ diff --git a/app/src/main/res/drawable/goat_frame_65.gif b/app/src/main/res/drawable/goat_frame_65.gif new file mode 100644 index 0000000..830c5b6 Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_65.gif differ diff --git a/app/src/main/res/drawable/goat_frame_66.gif b/app/src/main/res/drawable/goat_frame_66.gif new file mode 100644 index 0000000..eb86a7d Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_66.gif differ diff --git a/app/src/main/res/drawable/goat_frame_67.gif b/app/src/main/res/drawable/goat_frame_67.gif new file mode 100644 index 0000000..51e189c Binary files /dev/null and b/app/src/main/res/drawable/goat_frame_67.gif differ diff --git a/app/src/main/res/drawable/hello_speech_bubble.png b/app/src/main/res/drawable/hello_speech_bubble.png new file mode 100644 index 0000000..8ac44c6 Binary files /dev/null and b/app/src/main/res/drawable/hello_speech_bubble.png differ diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..0d025f9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/office_background.jpg b/app/src/main/res/drawable/office_background.jpg new file mode 100644 index 0000000..cd9a4a5 Binary files /dev/null and b/app/src/main/res/drawable/office_background.jpg differ diff --git a/app/src/main/res/drawable/pasture_background.jpg b/app/src/main/res/drawable/pasture_background.jpg new file mode 100644 index 0000000..5fec372 Binary files /dev/null and b/app/src/main/res/drawable/pasture_background.jpg differ diff --git a/app/src/main/res/drawable/snoop_dogg.gif b/app/src/main/res/drawable/snoop_dogg.gif new file mode 100644 index 0000000..f7098da Binary files /dev/null and b/app/src/main/res/drawable/snoop_dogg.gif differ diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..56d2c83 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/menu_main2.xml b/app/src/main/res/menu/menu_main2.xml new file mode 100644 index 0000000..eb67ca6 --- /dev/null +++ b/app/src/main/res/menu/menu_main2.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..898f3ed Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..dffca36 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..64ba76f Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..dae5e08 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..e5ed465 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..14ed0af Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..b0907ca Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..d8ae031 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..2c18de9 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..beed3cd Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..69b2233 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..5bb192f --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,6 @@ + + Android_AnimatedImages + Main2Activity + Settings + Hello World from section: %1$d + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..545b9c6 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + +