[
  {
    "path": ".gitignore",
    "content": "# Built application files\n*.apk\n*.ap_\n\n# Files for the ART/Dalvik VM\n*.dex\n\n# Java class files\n*.class\n\n# Generated files\nbin/\ngen/\nout/\n\n# Gradle files\n.gradle/\nbuild/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Proguard folder generated by Eclipse\nproguard/\n\n# Log Files\n*.log\n\n# Android Studio Navigation editor temp files\n.navigation/\n\n# Android Studio captures folder\ncaptures/\n\n# Intellij\n*.iml\n.idea/workspace.xml\n\n# Keystore files\n*.jks\n"
  },
  {
    "path": ".idea/compiler.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"CompilerConfiguration\">\n    <resourceExtensions />\n    <wildcardResourcePatterns>\n      <entry name=\"!?*.java\" />\n      <entry name=\"!?*.form\" />\n      <entry name=\"!?*.class\" />\n      <entry name=\"!?*.groovy\" />\n      <entry name=\"!?*.scala\" />\n      <entry name=\"!?*.flex\" />\n      <entry name=\"!?*.kt\" />\n      <entry name=\"!?*.clj\" />\n      <entry name=\"!?*.aj\" />\n    </wildcardResourcePatterns>\n    <annotationProcessing>\n      <profile default=\"true\" name=\"Default\" enabled=\"false\">\n        <processorPath useClasspath=\"true\" />\n      </profile>\n    </annotationProcessing>\n  </component>\n</project>"
  },
  {
    "path": ".idea/copyright/profiles_settings.xml",
    "content": "<component name=\"CopyrightManager\">\n  <settings default=\"\" />\n</component>"
  },
  {
    "path": ".idea/encodings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"Encoding\">\n    <file url=\"PROJECT\" charset=\"UTF-8\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/gradle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleSettings\">\n    <option name=\"linkedExternalProjectsSettings\">\n      <GradleProjectSettings>\n        <option name=\"distributionType\" value=\"DEFAULT_WRAPPED\" />\n        <option name=\"externalProjectPath\" value=\"$PROJECT_DIR$\" />\n        <option name=\"modules\">\n          <set>\n            <option value=\"$PROJECT_DIR$\" />\n            <option value=\"$PROJECT_DIR$/app\" />\n          </set>\n        </option>\n        <option name=\"resolveModulePerSourceSet\" value=\"false\" />\n      </GradleProjectSettings>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/libraries/animated_vector_drawable_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"animated-vector-drawable-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/8161c8e71e3ee6f0b7c795fef79c48dbd57a05f5/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/8161c8e71e3ee6f0b7c795fef79c48dbd57a05f5/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/animated-vector-drawable/25.1.1/animated-vector-drawable-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/appcompat_v7_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"appcompat-v7-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/099c7ea0092bdaf9d1a10dedfcb60d7491b9d7d4/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/099c7ea0092bdaf9d1a10dedfcb60d7491b9d7d4/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.1.1/appcompat-v7-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/constraint_layout_1_0_0_alpha9.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"constraint-layout-1.0.0-alpha9\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/e1c0e8dbb27bc50bbde01365674410c0eb9f4724/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/e1c0e8dbb27bc50bbde01365674410c0eb9f4724/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/constraint_layout_solver_1_0_0_alpha9.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"constraint-layout-solver-1.0.0-alpha9\">\n    <CLASSES>\n      <root url=\"jar://C:/develop/sdk/extras/m2repository/com/android/support/constraint/constraint-layout-solver/1.0.0-alpha9/constraint-layout-solver-1.0.0-alpha9.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/espresso_core_2_2_2.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"espresso-core-2.2.2\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/3e8d943130d30192f35cf5d63b3a911d25797a04/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/3e8d943130d30192f35cf5d63b3a911d25797a04/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/espresso/espresso-core/2.2.2/espresso-core-2.2.2-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/espresso_idling_resource_2_2_2.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"espresso-idling-resource-2.2.2\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/0d01c09ab0d7548d105fbaa8cf5b0a2c448d4772/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/0d01c09ab0d7548d105fbaa8cf5b0a2c448d4772/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/espresso/espresso-idling-resource/2.2.2/espresso-idling-resource-2.2.2-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/exposed_instrumentation_api_publish_0_5.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"exposed-instrumentation-api-publish-0.5\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/c4d8a052b130bba8b9187be9912a2aac4814eb0b/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/c4d8a052b130bba8b9187be9912a2aac4814eb0b/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/exposed-instrumentation-api-publish/0.5/exposed-instrumentation-api-publish-0.5-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/hamcrest_core_1_3.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"hamcrest-core-1.3\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b/hamcrest-core-1.3-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/hamcrest_integration_1_3.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"hamcrest-integration-1.3\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/hamcrest_library_1_3.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"hamcrest-library-1.3\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/47a7ee46628ab7133129cd7cef1e92657bc275e/hamcrest-library-1.3-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/javawriter_2_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"javawriter-2.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.1.1/67ff45d9ae02e583d0f9b3432a5ebbe05c30c966/javawriter-2.1.1.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/javax_annotation_api_1_2.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"javax.annotation-api-1.2\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.annotation/javax.annotation-api/1.2/479c1e06db31c432330183f5cae684163f186146/javax.annotation-api-1.2.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/javax_inject_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"javax.inject-1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/a00123f261762a7c5e0ec916a2c7c8298d29c400/javax.inject-1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/jsr305_2_0_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"jsr305-2.0.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/2.0.1/516c03b21d50a644d538de0f0369c620989cd8f0/jsr305-2.0.1.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/junit_4_12.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"junit-4.12\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/a6c32b40bf3d76eca54e3c601e5d1470c86fcdfa/junit-4.12-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/rules_0_5.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"rules-0.5\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/9399af2698b98a58622845cf39ef5f2e5c1fbcb1/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/9399af2698b98a58622845cf39ef5f2e5c1fbcb1/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/rules/0.5/rules-0.5-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/runner_0_5.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"runner-0.5\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/1ebeaca5ef7fab30cde6f5f802a6254555ea99e2/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/1ebeaca5ef7fab30cde6f5f802a6254555ea99e2/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/runner/0.5/runner-0.5-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_annotations_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-annotations-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.1/support-annotations-25.1.1.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.1/support-annotations-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_compat_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-compat-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/f06ff354e9fd552ad1ac9e5e3264271f6865bf09/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/f06ff354e9fd552ad1ac9e5e3264271f6865bf09/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-compat/25.1.1/support-compat-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_core_ui_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-core-ui-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/1e472b2c1203b82de45ea6a02bb21749525e5c3e/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/1e472b2c1203b82de45ea6a02bb21749525e5c3e/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-core-ui/25.1.1/support-core-ui-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_core_utils_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-core-utils-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/9877d99abb4b766738899e72d46447f4aa3712c3/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/9877d99abb4b766738899e72d46447f4aa3712c3/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-core-utils/25.1.1/support-core-utils-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_fragment_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-fragment-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/a01da673cc3ecffafe0bf751463ae57d3eb1a3c6/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/a01da673cc3ecffafe0bf751463ae57d3eb1a3c6/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-fragment/25.1.1/support-fragment-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_media_compat_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-media-compat-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/495a4ee9e64f1155c6486bfe859411dbf0270324/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/495a4ee9e64f1155c6486bfe859411dbf0270324/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-media-compat/25.1.1/support-media-compat-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_v4_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-v4-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/build-cache/ce0f74e82d1f17a6cdf0f8426c9eb0dc3297c5cd/output/res\" />\n      <root url=\"jar://$USER_HOME$/.android/build-cache/ce0f74e82d1f17a6cdf0f8426c9eb0dc3297c5cd/output/jars/classes.jar!/\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES />\n  </library>\n</component>"
  },
  {
    "path": ".idea/libraries/support_vector_drawable_25_1_1.xml",
    "content": "<component name=\"libraryTable\">\n  <library name=\"support-vector-drawable-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/build-cache/c1bb8cefb7e6cccd9abe72ef03895ba640692c62/output/jars/classes.jar!/\" />\n      <root url=\"file://$USER_HOME$/.android/build-cache/c1bb8cefb7e6cccd9abe72ef03895ba640692c62/output/res\" />\n    </CLASSES>\n    <JAVADOC />\n    <SOURCES>\n      <root url=\"jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-vector-drawable/25.1.1/support-vector-drawable-25.1.1-sources.jar!/\" />\n    </SOURCES>\n  </library>\n</component>"
  },
  {
    "path": ".idea/misc.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"EntryPointsManager\">\n    <entry_points version=\"2.0\" />\n  </component>\n  <component name=\"NullableNotNullManager\">\n    <option name=\"myDefaultNullable\" value=\"android.support.annotation.Nullable\" />\n    <option name=\"myDefaultNotNull\" value=\"android.support.annotation.NonNull\" />\n    <option name=\"myNullables\">\n      <value>\n        <list size=\"4\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.Nullable\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nullable\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.Nullable\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.Nullable\" />\n        </list>\n      </value>\n    </option>\n    <option name=\"myNotNulls\">\n      <value>\n        <list size=\"4\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.NotNull\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nonnull\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.NonNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.NonNull\" />\n        </list>\n      </value>\n    </option>\n  </component>\n  <component name=\"ProjectLevelVcsManager\" settingsEditedManually=\"false\">\n    <OptionsSetting value=\"true\" id=\"Add\" />\n    <OptionsSetting value=\"true\" id=\"Remove\" />\n    <OptionsSetting value=\"true\" id=\"Checkout\" />\n    <OptionsSetting value=\"true\" id=\"Update\" />\n    <OptionsSetting value=\"true\" id=\"Status\" />\n    <OptionsSetting value=\"true\" id=\"Edit\" />\n    <ConfirmationsSetting value=\"0\" id=\"Add\" />\n    <ConfirmationsSetting value=\"0\" id=\"Remove\" />\n  </component>\n  <component name=\"ProjectRootManager\" version=\"2\" languageLevel=\"JDK_1_7\" default=\"false\" assert-keyword=\"true\" jdk-15=\"true\" project-jdk-name=\"JDK\" project-jdk-type=\"JavaSDK\">\n    <output url=\"file://$PROJECT_DIR$/build/classes\" />\n  </component>\n  <component name=\"ProjectType\">\n    <option name=\"id\" value=\"Android\" />\n  </component>\n  <component name=\"SuppressionsComponent\">\n    <option name=\"suppComments\" value=\"[]\" />\n  </component>\n  <component name=\"masterDetails\">\n    <states>\n      <state key=\"GlobalLibrariesConfigurable.UI\">\n        <settings>\n          <splitter-proportions>\n            <option name=\"proportions\">\n              <list>\n                <option value=\"0.2\" />\n              </list>\n            </option>\n          </splitter-proportions>\n        </settings>\n      </state>\n      <state key=\"JdkListConfigurable.UI\">\n        <settings>\n          <last-edited>1.8</last-edited>\n          <splitter-proportions>\n            <option name=\"proportions\">\n              <list>\n                <option value=\"0.2\" />\n              </list>\n            </option>\n          </splitter-proportions>\n        </settings>\n      </state>\n      <state key=\"ProjectLibrariesConfigurable.UI\">\n        <settings>\n          <splitter-proportions>\n            <option name=\"proportions\">\n              <list>\n                <option value=\"0.2\" />\n              </list>\n            </option>\n          </splitter-proportions>\n        </settings>\n      </state>\n    </states>\n  </component>\n</project>"
  },
  {
    "path": ".idea/modules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ProjectModuleManager\">\n    <modules>\n      <module fileurl=\"file://$PROJECT_DIR$/FrameAnimation.iml\" filepath=\"$PROJECT_DIR$/FrameAnimation.iml\" />\n      <module fileurl=\"file://$PROJECT_DIR$/app/app.iml\" filepath=\"$PROJECT_DIR$/app/app.iml\" />\n    </modules>\n  </component>\n</project>"
  },
  {
    "path": ".idea/qaplug_profiles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"AnalysisProjectProfileManager\">\n    <option name=\"PROJECT_PROFILE\" value=\"Project Default\" />\n    <option name=\"USE_PROJECT_LEVEL_SETTINGS\" value=\"false\" />\n    <scopes />\n    <profiles>\n      <profile version=\"1.0\" is_locked=\"false\">\n        <option name=\"myName\" value=\"Project Default\" />\n      </profile>\n    </profiles>\n    <list size=\"0\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/vcs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping directory=\"$PROJECT_DIR$\" vcs=\"Git\" />\n  </component>\n</project>"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "README.md",
    "content": "[![](https://jitpack.io/v/ansen360/FrameAnimation.svg)](https://jitpack.io/#ansen360/FrameAnimation)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/68590d8a37394b2ca7298c5ddadd2310)](https://www.codacy.com/app/ansen360/FrameAnimation?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ansen360/FrameAnimation&amp;utm_campaign=Badge_Grade)\n[![](https://img.shields.io/badge/author-ansen-ff69b4.svg)](http://blog.csdn.net/qq_25804863?viewmode=contents)\n\n**2015年项目接到一个需求,实现一个向导动画,这个动画一共六十张图片,当时使用的是全志A33的开发(512的内存),通过使用Android的动画集实现,效果特别卡顿,然后想到这种方式来实现,效果很流畅.然后写成开一个开源项目供大家参考**\n\n**对比以下两种方式实现帧动画,使用相同的80张280x280的png图片执行动画,资源占用情况对比:**\n\n![](http://oma689k8f.bkt.clouddn.com/3_3.png)\n\n**Android动画集实现: 内存占用56M左右**\n\n**FrameAnimation实现: 内存占用4M左右**\n\n两者CUP占用都比较低,可忽略\n\n**代码下载:**\n**https://github.com/ansen360/FrameAnimation**\n\n##### Sample效果:\n![](http://oma689k8f.bkt.clouddn.com/3_4_frame_animation)\n\n##### 一、Android动画集实现帧动画\n- 1 在drawable目录下创建动画集animalist.xml\n```\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<animation-list xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:oneshot=\"false\">\n\n    <!--通过Android动画集播放的八十张图片-->\n    <item\n        android:drawable=\"@mipmap/c_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_2\"\n        android:duration=\"50\" />\n     <!--  省略...  -->\n    <item\n        android:drawable=\"@mipmap/circle_19\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_20\"\n        android:duration=\"50\" />\n\n</animation-list>\n```\n\n- 2 在布局文件ImageView中使用该drawable\n```\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\"com.ansen.frameanimation.sample.MainActivity\">\n\n    <ImageView\n        android:id=\"@+id/image\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:src=\"@drawable/animlist\" />\n\n</LinearLayout>\n\n```\n- 3 在代码中调用,启动动画\n```\n    ImageView image = (ImageView) findViewById(R.id.image);\n\n    AnimationDrawable animationDrawable = (AnimationDrawable) image.getDrawable();\n        animationDrawable.start();\n```\n**动画启动系统资源占用情况如下:**\n\n![](http://oma689k8f.bkt.clouddn.com/3_1.png)\n手动触发GC,内存占用几乎没改变\n\n##### 二、FrameAnimation实现帧动画\n- 1 定义需要播放动画的资源文件;在arrays文件中定义资源,或者在代码中定义\n```\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <!--通过FrameAnimation播放的八十张图片-->\n    <array name=\"c\">\n\n        <item>@mipmap/c_1</item>\n        <item>@mipmap/c_2</item>\n        <!-- 省略...  -->\n        <item>@mipmap/circle_19</item>\n        <item>@mipmap/circle_20</item>\n    </array>\n\n</resources>\n```\n获取定义之后的资源数组(代码中可直接定义资源文件的数组,便可忽略上一步):\n```\n    private int[] getRes() {\n        TypedArray typedArray = getResources().obtainTypedArray(R.array.c);\n        int len = typedArray.length();\n        int[] resId = new int[len];\n        for (int i = 0; i < len; i++) {\n            resId[i] = typedArray.getResourceId(i, -1);\n        }\n        typedArray.recycle();\n        return resId;\n    }\n```\n- 2 在代码中调用,启动动画\n```\n    ImageView image = (ImageView) findViewById(R.id.image);\n\n    FrameAnimation frameAnimation = new FrameAnimation(image, getRes(), 50, true);\n    frameAnimation.setAnimationListener(new FrameAnimation.AnimationListener() {\n        @Override\n        public void onAnimationStart() {\n            Log.d(TAG, \"start\");\n        }\n\n        @Override\n        public void onAnimationEnd() {\n            Log.d(TAG, \"end\");\n        }\n\n        @Override\n        public void onAnimationRepeat() {\n            Log.d(TAG, \"repeat\");\n        }\n    });\n```\n\n**动画启动系统资源占用情况如下:**\n\n![](http://oma689k8f.bkt.clouddn.com/3_2.png)\n手动触发GC,内存占用有明显变化\n\n[博客地址](http://blog.csdn.net/qq_25804863/article/details/65634864)\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 25\n    buildToolsVersion \"25.0.2\"\n    defaultConfig {\n        applicationId \"com.ansen.frameanimation\"\n        minSdkVersion 21\n        targetSdkVersion 25\n        versionCode 1\n        versionName \"1.0\"\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n}\n\ndependencies {\n    compile fileTree(dir: 'libs', include: ['*.jar'])\n    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {\n        exclude group: 'com.android.support', module: 'support-annotations'\n    })\n    compile 'com.android.support:appcompat-v7:25.1.1'\n    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'\n    testCompile 'junit:junit:4.12'\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in C:\\ADT\\sdk/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the proguardFiles\n# directive in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "app/src/androidTest/java/com/ansen/frameanimation/ExampleInstrumentedTest.java",
    "content": "package com.ansen.frameanimation;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumentation test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() throws Exception {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"com.ansen.frameanimation\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.ansen.frameanimation\">\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\">\n        <activity android:name=\".sample.MainActivity\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n        <activity android:name=\".sample.AnimationOne\"></activity>\n        <activity android:name=\".sample.AnimationTwo\"></activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/FrameAnimation.java",
    "content": "package com.ansen.frameanimation;\n\nimport android.widget.ImageView;\n\n/**\n * Created by Ansen on 2015/5/14 23:30.\n *\n * @E-mail: ansen360@126.com\n * @Blog: http://blog.csdn.net/qq_25804863\n * @Github: https://github.com/ansen360\n * @PROJECT_NAME: FrameAnimation\n * @PACKAGE_NAME: com.ansen.frameanimation.sample\n * @Description: TODO\n */\npublic class FrameAnimation {\n\n    private boolean mIsRepeat;\n\n    private AnimationListener mAnimationListener;\n\n    private ImageView mImageView;\n\n    private int[] mFrameRess;\n\n    /**\n     * 每帧动画的播放间隔数组\n     */\n    private int[] mDurations;\n\n    /**\n     * 每帧动画的播放间隔\n     */\n    private int mDuration;\n\n    /**\n     * 下一遍动画播放的延迟时间\n     */\n    private int mDelay;\n\n    private int mLastFrame;\n\n    private boolean mNext;\n\n    private boolean mPause;\n\n    private int mCurrentSelect;\n\n    private int mCurrentFrame;\n\n    private static final int SELECTED_A = 1;\n\n    private static final int SELECTED_B = 2;\n\n    private static final int SELECTED_C = 3;\n\n    private static final int SELECTED_D = 4;\n\n\n    /**\n     * @param iv       播放动画的控件\n     * @param frameRes 播放的图片数组\n     * @param duration 每帧动画的播放间隔(毫秒)\n     * @param isRepeat 是否循环播放\n     */\n    public FrameAnimation(ImageView iv, int[] frameRes, int duration, boolean isRepeat) {\n        this.mImageView = iv;\n        this.mFrameRess = frameRes;\n        this.mDuration = duration;\n        this.mLastFrame = frameRes.length - 1;\n        this.mIsRepeat = isRepeat;\n        play(0);\n    }\n\n    /**\n     * @param iv        播放动画的控件\n     * @param frameRess 播放的图片数组\n     * @param durations 每帧动画的播放间隔(毫秒)\n     * @param isRepeat  是否循环播放\n     */\n    public FrameAnimation(ImageView iv, int[] frameRess, int[] durations, boolean isRepeat) {\n        this.mImageView = iv;\n        this.mFrameRess = frameRess;\n        this.mDurations = durations;\n        this.mLastFrame = frameRess.length - 1;\n        this.mIsRepeat = isRepeat;\n        playByDurations(0);\n    }\n\n    /**\n     * 循环播放动画\n     *\n     * @param iv        播放动画的控件\n     * @param frameRess 播放的图片数组\n     * @param duration  每帧动画的播放间隔(毫秒)\n     * @param delay     循环播放的时间间隔\n     */\n    public FrameAnimation(ImageView iv, int[] frameRess, int duration, int delay) {\n        this.mImageView = iv;\n        this.mFrameRess = frameRess;\n        this.mDuration = duration;\n        this.mDelay = delay;\n        this.mLastFrame = frameRess.length - 1;\n        playAndDelay(0);\n    }\n\n    /**\n     * 循环播放动画\n     *\n     * @param iv        播放动画的控件\n     * @param frameRess 播放的图片数组\n     * @param durations 每帧动画的播放间隔(毫秒)\n     * @param delay     循环播放的时间间隔\n     */\n    public FrameAnimation(ImageView iv, int[] frameRess, int[] durations, int delay) {\n        this.mImageView = iv;\n        this.mFrameRess = frameRess;\n        this.mDurations = durations;\n        this.mDelay = delay;\n        this.mLastFrame = frameRess.length - 1;\n        playByDurationsAndDelay(0);\n    }\n\n    private void playByDurationsAndDelay(final int i) {\n        mImageView.postDelayed(new Runnable() {\n\n            @Override\n            public void run() {\n                if (mPause) {   // 暂停和播放需求\n                    mCurrentSelect = SELECTED_A;\n                    mCurrentFrame = i;\n                    return;\n                }\n                if (0 == i) {\n                    if (mAnimationListener != null) {\n                        mAnimationListener.onAnimationStart();\n                    }\n                }\n                mImageView.setBackgroundResource(mFrameRess[i]);\n                if (i == mLastFrame) {\n                    if (mAnimationListener != null) {\n                        mAnimationListener.onAnimationRepeat();\n                    }\n                    mNext = true;\n                    playByDurationsAndDelay(0);\n                } else {\n                    playByDurationsAndDelay(i + 1);\n                }\n            }\n        }, mNext && mDelay > 0 ? mDelay : mDurations[i]);\n\n    }\n\n    private void playAndDelay(final int i) {\n        mImageView.postDelayed(new Runnable() {\n\n            @Override\n            public void run() {\n                if (mPause) {\n                    if (mPause) {\n                        mCurrentSelect = SELECTED_B;\n                        mCurrentFrame = i;\n                        return;\n                    }\n                    return;\n                }\n                mNext = false;\n                if (0 == i) {\n                    if (mAnimationListener != null) {\n                        mAnimationListener.onAnimationStart();\n                    }\n                }\n                mImageView.setBackgroundResource(mFrameRess[i]);\n                if (i == mLastFrame) {\n                    if (mAnimationListener != null) {\n                        mAnimationListener.onAnimationRepeat();\n                    }\n                    mNext = true;\n                    playAndDelay(0);\n                } else {\n                    playAndDelay(i + 1);\n                }\n            }\n        }, mNext && mDelay > 0 ? mDelay : mDuration);\n\n    }\n\n    private void playByDurations(final int i) {\n        mImageView.postDelayed(new Runnable() {\n\n            @Override\n            public void run() {\n                if (mPause) {\n                    if (mPause) {\n                        mCurrentSelect = SELECTED_C;\n                        mCurrentFrame = i;\n                        return;\n                    }\n                    return;\n                }\n                if (0 == i) {\n                    if (mAnimationListener != null) {\n                        mAnimationListener.onAnimationStart();\n                    }\n                }\n                mImageView.setBackgroundResource(mFrameRess[i]);\n                if (i == mLastFrame) {\n                    if (mIsRepeat) {\n                        if (mAnimationListener != null) {\n                            mAnimationListener.onAnimationRepeat();\n                        }\n                        playByDurations(0);\n                    } else {\n                        if (mAnimationListener != null) {\n                            mAnimationListener.onAnimationEnd();\n                        }\n                    }\n                } else {\n\n                    playByDurations(i + 1);\n                }\n            }\n        }, mDurations[i]);\n\n    }\n\n    private void play(final int i) {\n        mImageView.postDelayed(new Runnable() {\n\n            @Override\n            public void run() {\n                if (mPause) {\n                    if (mPause) {\n                        mCurrentSelect = SELECTED_D;\n                        mCurrentFrame = i;\n                        return;\n                    }\n                    return;\n                }\n                if (0 == i) {\n                    if (mAnimationListener != null) {\n                        mAnimationListener.onAnimationStart();\n                    }\n                }\n                mImageView.setBackgroundResource(mFrameRess[i]);\n                if (i == mLastFrame) {\n\n                    if (mIsRepeat) {\n                        if (mAnimationListener != null) {\n                            mAnimationListener.onAnimationRepeat();\n                        }\n                        play(0);\n                    } else {\n                        if (mAnimationListener != null) {\n                            mAnimationListener.onAnimationEnd();\n                        }\n                    }\n\n                } else {\n\n                    play(i + 1);\n                }\n            }\n        }, mDuration);\n    }\n\n    public static interface AnimationListener {\n\n        /**\n         * <p>Notifies the start of the animation.</p>\n         */\n        void onAnimationStart();\n\n        /**\n         * <p>Notifies the end of the animation. This callback is not invoked\n         * for animations with repeat count set to INFINITE.</p>\n         */\n        void onAnimationEnd();\n\n        /**\n         * <p>Notifies the repetition of the animation.</p>\n         */\n        void onAnimationRepeat();\n    }\n\n    /**\n     * <p>Binds an animation listener to this animation. The animation listener\n     * is notified of animation events such as the end of the animation or the\n     * repetition of the animation.</p>\n     *\n     * @param listener the animation listener to be notified\n     */\n    public void setAnimationListener(AnimationListener listener) {\n        this.mAnimationListener = listener;\n    }\n\n    public void release() {\n        pauseAnimation();\n    }\n\n    public void pauseAnimation() {\n        this.mPause = true;\n    }\n\n    public boolean isPause() {\n        return this.mPause;\n    }\n\n    public void restartAnimation() {\n        if (mPause) {\n            mPause = false;\n            switch (mCurrentSelect) {\n                case SELECTED_A:\n                    playByDurationsAndDelay(mCurrentFrame);\n                    break;\n                case SELECTED_B:\n                    playAndDelay(mCurrentFrame);\n                    break;\n                case SELECTED_C:\n                    playByDurations(mCurrentFrame);\n                    break;\n                case SELECTED_D:\n                    play(mCurrentFrame);\n                    break;\n                default:\n                    break;\n            }\n        }\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/sample/AnimationOne.java",
    "content": "package com.ansen.frameanimation.sample;\n\nimport android.app.Activity;\nimport android.graphics.drawable.AnimationDrawable;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.widget.ImageView;\n\nimport com.ansen.frameanimation.R;\n\n/**\n * Created by Ansen on 2017/3/24 09:28.\n *\n * @E-mail: tomorrow_p@163.com\n * @Blog: http://blog.csdn.net/qq_25804863\n * @Github: https://github.com/ansen360\n * @PROJECT_NAME: FrameAnimation\n * @PACKAGE_NAME: com.ansen.frameanimation.sample\n * @Description: TODO\n */\npublic class AnimationOne extends Activity {\n\n    @Override\n    protected void onCreate(@Nullable Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.one);\n        ImageView image = (ImageView) findViewById(R.id.image);\n\n\n        AnimationDrawable animationDrawable = (AnimationDrawable) image.getDrawable();\n        animationDrawable.start();\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/sample/AnimationTwo.java",
    "content": "package com.ansen.frameanimation.sample;\n\nimport android.app.Activity;\nimport android.content.res.TypedArray;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.util.Log;\nimport android.view.View;\nimport android.widget.ImageView;\n\nimport com.ansen.frameanimation.FrameAnimation;\nimport com.ansen.frameanimation.R;\n\n/**\n * Created by Ansen on 2017/3/24 10:09.\n *\n * @E-mail: ansen360@126.com\n * @Blog: http://blog.csdn.net/qq_25804863\n * @Github: https://github.com/ansen360\n * @PROJECT_NAME: FrameAnimation\n * @PACKAGE_NAME: com.ansen.frameanimation.sample\n * @Description: FrameAnimation 使用示例\n */\npublic class AnimationTwo extends Activity {\n\n\n    private static final String TAG = \"ansen\";\n\n    @Override\n    protected void onCreate(@Nullable Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.two);\n        final ImageView image = (ImageView) findViewById(R.id.image);\n\n        // 每50ms一帧 循环播放动画\n        final FrameAnimation frameAnimation = new FrameAnimation(image, getRes(), 50, true);\n        frameAnimation.setAnimationListener(new FrameAnimation.AnimationListener() {\n            @Override\n            public void onAnimationStart() {\n                Log.d(TAG, \"start\");\n            }\n\n            @Override\n            public void onAnimationEnd() {\n                Log.d(TAG, \"end\");\n            }\n\n            @Override\n            public void onAnimationRepeat() {\n                Log.d(TAG, \"repeat\");\n            }\n        });\n\n        image.setOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View v) {\n                // 实现点击 暂停和继续播放动画\n                if (frameAnimation.isPause()) {\n                    Log.d(TAG, \"restart\");\n                    frameAnimation.restartAnimation();\n                } else {\n                    Log.d(TAG, \"pause\");\n                    frameAnimation.pauseAnimation();\n                }\n            }\n        });\n\n//        循环播放动画,循环间隔为4000ms\n//        FrameAnimation frameAnimation = new FrameAnimation(image, getRes(), 50, 4000);\n    }\n\n    /**\n     * 获取需要播放的动画资源\n     */\n    private int[] getRes() {\n        TypedArray typedArray = getResources().obtainTypedArray(R.array.c);\n        int len = typedArray.length();\n        int[] resId = new int[len];\n        for (int i = 0; i < len; i++) {\n            resId[i] = typedArray.getResourceId(i, -1);\n        }\n        typedArray.recycle();\n        return resId;\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/sample/MainActivity.java",
    "content": "package com.ansen.frameanimation.sample;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.view.View;\n\nimport com.ansen.frameanimation.R;\n\npublic class MainActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n    }\n\n    public void clickOne(View v) {\n        startActivity(new Intent(this, AnimationOne.class));\n    }\n\n    public void clickTwo(View v) {\n        startActivity(new Intent(this, AnimationTwo.class));\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/drawable/animlist.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<animation-list xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:oneshot=\"false\">\n\n    <!--通过Android动画集播放的八十张图片-->\n    <item\n        android:drawable=\"@mipmap/c_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_2\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_3\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_4\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_5\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_6\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_7\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_8\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_9\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_10\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_11\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_12\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_13\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_14\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_15\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_16\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_17\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_18\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_19\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/c_20\"\n        android:duration=\"50\" />\n\n    <item\n        android:drawable=\"@mipmap/down_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_2\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_3\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_4\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_5\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_6\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_7\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_8\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_9\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_10\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_11\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_12\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_13\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_14\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_15\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_16\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_17\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_18\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_19\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/down_20\"\n        android:duration=\"50\" />\n\n\n    <item\n        android:drawable=\"@mipmap/e_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_2\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_3\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_4\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_5\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_6\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_7\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_8\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_9\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_10\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_11\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_12\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_13\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_14\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_15\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_16\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_17\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_18\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_19\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/e_20\"\n        android:duration=\"50\" />\n\n    <item\n        android:drawable=\"@mipmap/circle_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_2\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_3\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_4\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_5\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_6\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_7\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_8\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_9\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_10\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_1\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_11\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_12\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_13\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_14\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_15\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_16\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_17\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_18\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_19\"\n        android:duration=\"50\" />\n    <item\n        android:drawable=\"@mipmap/circle_20\"\n        android:duration=\"50\" />\n\n</animation-list>"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\"com.ansen.frameanimation.sample.MainActivity\">\n\n    <Button\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:onClick=\"clickOne\"\n        android:text=\"One\" />\n\n    <Button\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:onClick=\"clickTwo\"\n        android:text=\"Two\" />\n</LinearLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/one.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\"com.ansen.frameanimation.sample.MainActivity\">\n\n    <ImageView\n        android:id=\"@+id/image\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:src=\"@drawable/animlist\" />\n\n</LinearLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/two.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\"com.ansen.frameanimation.sample.MainActivity\">\n\n    <ImageView\n        android:id=\"@+id/image\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\" />\n\n</LinearLayout>\n"
  },
  {
    "path": "app/src/main/res/values/arrays.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <!--通过FrameAnimation播放的八十张图片-->\n    <array name=\"c\">\n\n        <item>@mipmap/c_1</item>\n        <item>@mipmap/c_2</item>\n        <item>@mipmap/c_3</item>\n        <item>@mipmap/c_4</item>\n        <item>@mipmap/c_5</item>\n        <item>@mipmap/c_6</item>\n        <item>@mipmap/c_7</item>\n        <item>@mipmap/c_8</item>\n        <item>@mipmap/c_9</item>\n        <item>@mipmap/c_10</item>\n        <item>@mipmap/c_11</item>\n        <item>@mipmap/c_12</item>\n        <item>@mipmap/c_13</item>\n        <item>@mipmap/c_14</item>\n        <item>@mipmap/c_15</item>\n        <item>@mipmap/c_16</item>\n        <item>@mipmap/c_17</item>\n        <item>@mipmap/c_18</item>\n        <item>@mipmap/c_19</item>\n        <item>@mipmap/c_20</item>\n\n        <item>@mipmap/down_1</item>\n        <item>@mipmap/down_2</item>\n        <item>@mipmap/down_3</item>\n        <item>@mipmap/down_4</item>\n        <item>@mipmap/down_5</item>\n        <item>@mipmap/down_6</item>\n        <item>@mipmap/down_7</item>\n        <item>@mipmap/down_8</item>\n        <item>@mipmap/down_9</item>\n        <item>@mipmap/down_10</item>\n        <item>@mipmap/down_11</item>\n        <item>@mipmap/down_12</item>\n        <item>@mipmap/down_13</item>\n        <item>@mipmap/down_14</item>\n        <item>@mipmap/down_15</item>\n        <item>@mipmap/down_16</item>\n        <item>@mipmap/down_17</item>\n        <item>@mipmap/down_18</item>\n        <item>@mipmap/down_19</item>\n        <item>@mipmap/down_20</item>\n\n        <item>@mipmap/e_1</item>\n        <item>@mipmap/e_2</item>\n        <item>@mipmap/e_3</item>\n        <item>@mipmap/e_4</item>\n        <item>@mipmap/e_5</item>\n        <item>@mipmap/e_6</item>\n        <item>@mipmap/e_7</item>\n        <item>@mipmap/e_8</item>\n        <item>@mipmap/e_9</item>\n        <item>@mipmap/e_10</item>\n        <item>@mipmap/e_11</item>\n        <item>@mipmap/e_12</item>\n        <item>@mipmap/e_13</item>\n        <item>@mipmap/e_14</item>\n        <item>@mipmap/e_15</item>\n        <item>@mipmap/e_16</item>\n        <item>@mipmap/e_17</item>\n        <item>@mipmap/e_18</item>\n        <item>@mipmap/e_19</item>\n        <item>@mipmap/e_20</item>\n\n        <item>@mipmap/circle_1</item>\n        <item>@mipmap/circle_2</item>\n        <item>@mipmap/circle_3</item>\n        <item>@mipmap/circle_4</item>\n        <item>@mipmap/circle_5</item>\n        <item>@mipmap/circle_6</item>\n        <item>@mipmap/circle_7</item>\n        <item>@mipmap/circle_8</item>\n        <item>@mipmap/circle_9</item>\n        <item>@mipmap/circle_10</item>\n        <item>@mipmap/circle_11</item>\n        <item>@mipmap/circle_12</item>\n        <item>@mipmap/circle_13</item>\n        <item>@mipmap/circle_14</item>\n        <item>@mipmap/circle_15</item>\n        <item>@mipmap/circle_16</item>\n        <item>@mipmap/circle_17</item>\n        <item>@mipmap/circle_18</item>\n        <item>@mipmap/circle_19</item>\n        <item>@mipmap/circle_20</item>\n    </array>\n\n</resources>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#3F51B5</color>\n    <color name=\"colorPrimaryDark\">#303F9F</color>\n    <color name=\"colorAccent\">#FF4081</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">FrameAnimation</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/test/java/com/ansen/frameanimation/ExampleUnitTest.java",
    "content": "package com.ansen.frameanimation;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() throws Exception {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    repositories {\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:2.3.3'\n\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        jcenter()\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Thu Mar 23 19:12:32 CST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-3.3-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app'\n"
  }
]