Full Code of ansen360/FrameAnimation for AI

master cfaa232c3c3c cached
62 files
71.7 KB
21.7k tokens
31 symbols
1 requests
Download .txt
Repository: ansen360/FrameAnimation
Branch: master
Commit: cfaa232c3c3c
Files: 62
Total size: 71.7 KB

Directory structure:
gitextract_q5tb9cvr/

├── .gitignore
├── .idea/
│   ├── compiler.xml
│   ├── copyright/
│   │   └── profiles_settings.xml
│   ├── encodings.xml
│   ├── gradle.xml
│   ├── libraries/
│   │   ├── animated_vector_drawable_25_1_1.xml
│   │   ├── appcompat_v7_25_1_1.xml
│   │   ├── constraint_layout_1_0_0_alpha9.xml
│   │   ├── constraint_layout_solver_1_0_0_alpha9.xml
│   │   ├── espresso_core_2_2_2.xml
│   │   ├── espresso_idling_resource_2_2_2.xml
│   │   ├── exposed_instrumentation_api_publish_0_5.xml
│   │   ├── hamcrest_core_1_3.xml
│   │   ├── hamcrest_integration_1_3.xml
│   │   ├── hamcrest_library_1_3.xml
│   │   ├── javawriter_2_1_1.xml
│   │   ├── javax_annotation_api_1_2.xml
│   │   ├── javax_inject_1.xml
│   │   ├── jsr305_2_0_1.xml
│   │   ├── junit_4_12.xml
│   │   ├── rules_0_5.xml
│   │   ├── runner_0_5.xml
│   │   ├── support_annotations_25_1_1.xml
│   │   ├── support_compat_25_1_1.xml
│   │   ├── support_core_ui_25_1_1.xml
│   │   ├── support_core_utils_25_1_1.xml
│   │   ├── support_fragment_25_1_1.xml
│   │   ├── support_media_compat_25_1_1.xml
│   │   ├── support_v4_25_1_1.xml
│   │   └── support_vector_drawable_25_1_1.xml
│   ├── misc.xml
│   ├── modules.xml
│   ├── qaplug_profiles.xml
│   ├── runConfigurations.xml
│   └── vcs.xml
├── LICENSE
├── README.md
├── app/
│   ├── .gitignore
│   ├── build.gradle
│   ├── proguard-rules.pro
│   └── src/
│       ├── androidTest/
│       │   └── java/
│       │       └── com/
│       │           └── ansen/
│       │               └── frameanimation/
│       │                   └── ExampleInstrumentedTest.java
│       ├── main/
│       │   ├── AndroidManifest.xml
│       │   ├── java/
│       │   │   └── com/
│       │   │       └── ansen/
│       │   │           └── frameanimation/
│       │   │               ├── FrameAnimation.java
│       │   │               └── sample/
│       │   │                   ├── AnimationOne.java
│       │   │                   ├── AnimationTwo.java
│       │   │                   └── MainActivity.java
│       │   └── res/
│       │       ├── drawable/
│       │       │   └── animlist.xml
│       │       ├── layout/
│       │       │   ├── activity_main.xml
│       │       │   ├── one.xml
│       │       │   └── two.xml
│       │       └── values/
│       │           ├── arrays.xml
│       │           ├── colors.xml
│       │           ├── strings.xml
│       │           └── styles.xml
│       └── test/
│           └── java/
│               └── com/
│                   └── ansen/
│                       └── frameanimation/
│                           └── ExampleUnitTest.java
├── build.gradle
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/workspace.xml

# Keystore files
*.jks


================================================
FILE: .idea/compiler.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CompilerConfiguration">
    <resourceExtensions />
    <wildcardResourcePatterns>
      <entry name="!?*.java" />
      <entry name="!?*.form" />
      <entry name="!?*.class" />
      <entry name="!?*.groovy" />
      <entry name="!?*.scala" />
      <entry name="!?*.flex" />
      <entry name="!?*.kt" />
      <entry name="!?*.clj" />
      <entry name="!?*.aj" />
    </wildcardResourcePatterns>
    <annotationProcessing>
      <profile default="true" name="Default" enabled="false">
        <processorPath useClasspath="true" />
      </profile>
    </annotationProcessing>
  </component>
</project>

================================================
FILE: .idea/copyright/profiles_settings.xml
================================================
<component name="CopyrightManager">
  <settings default="" />
</component>

================================================
FILE: .idea/encodings.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="Encoding">
    <file url="PROJECT" charset="UTF-8" />
  </component>
</project>

================================================
FILE: .idea/gradle.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="GradleSettings">
    <option name="linkedExternalProjectsSettings">
      <GradleProjectSettings>
        <option name="distributionType" value="DEFAULT_WRAPPED" />
        <option name="externalProjectPath" value="$PROJECT_DIR$" />
        <option name="modules">
          <set>
            <option value="$PROJECT_DIR$" />
            <option value="$PROJECT_DIR$/app" />
          </set>
        </option>
        <option name="resolveModulePerSourceSet" value="false" />
      </GradleProjectSettings>
    </option>
  </component>
</project>

================================================
FILE: .idea/libraries/animated_vector_drawable_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="animated-vector-drawable-25.1.1">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/8161c8e71e3ee6f0b7c795fef79c48dbd57a05f5/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/8161c8e71e3ee6f0b7c795fef79c48dbd57a05f5/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/appcompat_v7_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="appcompat-v7-25.1.1">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/099c7ea0092bdaf9d1a10dedfcb60d7491b9d7d4/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/099c7ea0092bdaf9d1a10dedfcb60d7491b9d7d4/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.1.1/appcompat-v7-25.1.1-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/constraint_layout_1_0_0_alpha9.xml
================================================
<component name="libraryTable">
  <library name="constraint-layout-1.0.0-alpha9">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/e1c0e8dbb27bc50bbde01365674410c0eb9f4724/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/e1c0e8dbb27bc50bbde01365674410c0eb9f4724/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/constraint_layout_solver_1_0_0_alpha9.xml
================================================
<component name="libraryTable">
  <library name="constraint-layout-solver-1.0.0-alpha9">
    <CLASSES>
      <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!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/espresso_core_2_2_2.xml
================================================
<component name="libraryTable">
  <library name="espresso-core-2.2.2">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/3e8d943130d30192f35cf5d63b3a911d25797a04/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/3e8d943130d30192f35cf5d63b3a911d25797a04/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/espresso_idling_resource_2_2_2.xml
================================================
<component name="libraryTable">
  <library name="espresso-idling-resource-2.2.2">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/0d01c09ab0d7548d105fbaa8cf5b0a2c448d4772/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/0d01c09ab0d7548d105fbaa8cf5b0a2c448d4772/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/exposed_instrumentation_api_publish_0_5.xml
================================================
<component name="libraryTable">
  <library name="exposed-instrumentation-api-publish-0.5">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/c4d8a052b130bba8b9187be9912a2aac4814eb0b/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/c4d8a052b130bba8b9187be9912a2aac4814eb0b/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/hamcrest_core_1_3.xml
================================================
<component name="libraryTable">
  <library name="hamcrest-core-1.3">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/hamcrest_integration_1_3.xml
================================================
<component name="libraryTable">
  <library name="hamcrest-integration-1.3">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/hamcrest_library_1_3.xml
================================================
<component name="libraryTable">
  <library name="hamcrest-library-1.3">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/javawriter_2_1_1.xml
================================================
<component name="libraryTable">
  <library name="javawriter-2.1.1">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.1.1/67ff45d9ae02e583d0f9b3432a5ebbe05c30c966/javawriter-2.1.1.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/javax_annotation_api_1_2.xml
================================================
<component name="libraryTable">
  <library name="javax.annotation-api-1.2">
    <CLASSES>
      <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!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/javax_inject_1.xml
================================================
<component name="libraryTable">
  <library name="javax.inject-1">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/a00123f261762a7c5e0ec916a2c7c8298d29c400/javax.inject-1-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/jsr305_2_0_1.xml
================================================
<component name="libraryTable">
  <library name="jsr305-2.0.1">
    <CLASSES>
      <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!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/junit_4_12.xml
================================================
<component name="libraryTable">
  <library name="junit-4.12">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/a6c32b40bf3d76eca54e3c601e5d1470c86fcdfa/junit-4.12-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/rules_0_5.xml
================================================
<component name="libraryTable">
  <library name="rules-0.5">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/9399af2698b98a58622845cf39ef5f2e5c1fbcb1/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/9399af2698b98a58622845cf39ef5f2e5c1fbcb1/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/rules/0.5/rules-0.5-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/runner_0_5.xml
================================================
<component name="libraryTable">
  <library name="runner-0.5">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/1ebeaca5ef7fab30cde6f5f802a6254555ea99e2/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/1ebeaca5ef7fab30cde6f5f802a6254555ea99e2/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/test/runner/0.5/runner-0.5-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_annotations_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-annotations-25.1.1">
    <CLASSES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.1/support-annotations-25.1.1.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.1/support-annotations-25.1.1-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_compat_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-compat-25.1.1">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/f06ff354e9fd552ad1ac9e5e3264271f6865bf09/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/f06ff354e9fd552ad1ac9e5e3264271f6865bf09/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-compat/25.1.1/support-compat-25.1.1-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_core_ui_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-core-ui-25.1.1">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/1e472b2c1203b82de45ea6a02bb21749525e5c3e/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/1e472b2c1203b82de45ea6a02bb21749525e5c3e/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_core_utils_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-core-utils-25.1.1">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/9877d99abb4b766738899e72d46447f4aa3712c3/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/9877d99abb4b766738899e72d46447f4aa3712c3/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_fragment_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-fragment-25.1.1">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/a01da673cc3ecffafe0bf751463ae57d3eb1a3c6/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/a01da673cc3ecffafe0bf751463ae57d3eb1a3c6/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://C:/develop/sdk/extras/android/m2repository/com/android/support/support-fragment/25.1.1/support-fragment-25.1.1-sources.jar!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_media_compat_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-media-compat-25.1.1">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/495a4ee9e64f1155c6486bfe859411dbf0270324/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/495a4ee9e64f1155c6486bfe859411dbf0270324/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/libraries/support_v4_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-v4-25.1.1">
    <CLASSES>
      <root url="file://$USER_HOME$/.android/build-cache/ce0f74e82d1f17a6cdf0f8426c9eb0dc3297c5cd/output/res" />
      <root url="jar://$USER_HOME$/.android/build-cache/ce0f74e82d1f17a6cdf0f8426c9eb0dc3297c5cd/output/jars/classes.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>

================================================
FILE: .idea/libraries/support_vector_drawable_25_1_1.xml
================================================
<component name="libraryTable">
  <library name="support-vector-drawable-25.1.1">
    <CLASSES>
      <root url="jar://$USER_HOME$/.android/build-cache/c1bb8cefb7e6cccd9abe72ef03895ba640692c62/output/jars/classes.jar!/" />
      <root url="file://$USER_HOME$/.android/build-cache/c1bb8cefb7e6cccd9abe72ef03895ba640692c62/output/res" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <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!/" />
    </SOURCES>
  </library>
</component>

================================================
FILE: .idea/misc.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="EntryPointsManager">
    <entry_points version="2.0" />
  </component>
  <component name="NullableNotNullManager">
    <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
    <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
    <option name="myNullables">
      <value>
        <list size="4">
          <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
          <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
          <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
          <item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
        </list>
      </value>
    </option>
    <option name="myNotNulls">
      <value>
        <list size="4">
          <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
          <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
          <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
          <item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
        </list>
      </value>
    </option>
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <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">
    <output url="file://$PROJECT_DIR$/build/classes" />
  </component>
  <component name="ProjectType">
    <option name="id" value="Android" />
  </component>
  <component name="SuppressionsComponent">
    <option name="suppComments" value="[]" />
  </component>
  <component name="masterDetails">
    <states>
      <state key="GlobalLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="JdkListConfigurable.UI">
        <settings>
          <last-edited>1.8</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>

================================================
FILE: .idea/modules.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/FrameAnimation.iml" filepath="$PROJECT_DIR$/FrameAnimation.iml" />
      <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
    </modules>
  </component>
</project>

================================================
FILE: .idea/qaplug_profiles.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="AnalysisProjectProfileManager">
    <option name="PROJECT_PROFILE" value="Project Default" />
    <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
    <scopes />
    <profiles>
      <profile version="1.0" is_locked="false">
        <option name="myName" value="Project Default" />
      </profile>
    </profiles>
    <list size="0" />
  </component>
</project>

================================================
FILE: .idea/runConfigurations.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="RunConfigurationProducerService">
    <option name="ignoredProducers">
      <set>
        <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
        <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
        <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
      </set>
    </option>
  </component>
</project>

================================================
FILE: .idea/vcs.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="$PROJECT_DIR$" vcs="Git" />
  </component>
</project>

================================================
FILE: LICENSE
================================================
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "{}"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright {yyyy} {name of copyright owner}

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.


================================================
FILE: README.md
================================================
[![](https://jitpack.io/v/ansen360/FrameAnimation.svg)](https://jitpack.io/#ansen360/FrameAnimation)
[![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)
[![](https://img.shields.io/badge/author-ansen-ff69b4.svg)](http://blog.csdn.net/qq_25804863?viewmode=contents)

**2015年项目接到一个需求,实现一个向导动画,这个动画一共六十张图片,当时使用的是全志A33的开发(512的内存),通过使用Android的动画集实现,效果特别卡顿,然后想到这种方式来实现,效果很流畅.然后写成开一个开源项目供大家参考**

**对比以下两种方式实现帧动画,使用相同的80张280x280的png图片执行动画,资源占用情况对比:**

![](http://oma689k8f.bkt.clouddn.com/3_3.png)

**Android动画集实现: 内存占用56M左右**

**FrameAnimation实现: 内存占用4M左右**

两者CUP占用都比较低,可忽略

**代码下载:**
**https://github.com/ansen360/FrameAnimation**

##### Sample效果:
![](http://oma689k8f.bkt.clouddn.com/3_4_frame_animation)

##### 一、Android动画集实现帧动画
- 1 在drawable目录下创建动画集animalist.xml
```
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:oneshot="false">

    <!--通过Android动画集播放的八十张图片-->
    <item
        android:drawable="@mipmap/c_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_2"
        android:duration="50" />
     <!--  省略...  -->
    <item
        android:drawable="@mipmap/circle_19"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_20"
        android:duration="50" />

</animation-list>
```

- 2 在布局文件ImageView中使用该drawable
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.ansen.frameanimation.sample.MainActivity">

    <ImageView
        android:id="@+id/image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/animlist" />

</LinearLayout>

```
- 3 在代码中调用,启动动画
```
    ImageView image = (ImageView) findViewById(R.id.image);

    AnimationDrawable animationDrawable = (AnimationDrawable) image.getDrawable();
        animationDrawable.start();
```
**动画启动系统资源占用情况如下:**

![](http://oma689k8f.bkt.clouddn.com/3_1.png)
手动触发GC,内存占用几乎没改变

##### 二、FrameAnimation实现帧动画
- 1 定义需要播放动画的资源文件;在arrays文件中定义资源,或者在代码中定义
```
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!--通过FrameAnimation播放的八十张图片-->
    <array name="c">

        <item>@mipmap/c_1</item>
        <item>@mipmap/c_2</item>
        <!-- 省略...  -->
        <item>@mipmap/circle_19</item>
        <item>@mipmap/circle_20</item>
    </array>

</resources>
```
获取定义之后的资源数组(代码中可直接定义资源文件的数组,便可忽略上一步):
```
    private int[] getRes() {
        TypedArray typedArray = getResources().obtainTypedArray(R.array.c);
        int len = typedArray.length();
        int[] resId = new int[len];
        for (int i = 0; i < len; i++) {
            resId[i] = typedArray.getResourceId(i, -1);
        }
        typedArray.recycle();
        return resId;
    }
```
- 2 在代码中调用,启动动画
```
    ImageView image = (ImageView) findViewById(R.id.image);

    FrameAnimation frameAnimation = new FrameAnimation(image, getRes(), 50, true);
    frameAnimation.setAnimationListener(new FrameAnimation.AnimationListener() {
        @Override
        public void onAnimationStart() {
            Log.d(TAG, "start");
        }

        @Override
        public void onAnimationEnd() {
            Log.d(TAG, "end");
        }

        @Override
        public void onAnimationRepeat() {
            Log.d(TAG, "repeat");
        }
    });
```

**动画启动系统资源占用情况如下:**

![](http://oma689k8f.bkt.clouddn.com/3_2.png)
手动触发GC,内存占用有明显变化

[博客地址](http://blog.csdn.net/qq_25804863/article/details/65634864)


================================================
FILE: app/.gitignore
================================================
/build


================================================
FILE: app/build.gradle
================================================
apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.ansen.frameanimation"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
    testCompile 'junit:junit:4.12'
}


================================================
FILE: app/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\ADT\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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


================================================
FILE: app/src/androidTest/java/com/ansen/frameanimation/ExampleInstrumentedTest.java
================================================
package com.ansen.frameanimation;

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.*;

/**
 * Instrumentation test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals("com.ansen.frameanimation", appContext.getPackageName());
    }
}


================================================
FILE: app/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.ansen.frameanimation">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".sample.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".sample.AnimationOne"></activity>
        <activity android:name=".sample.AnimationTwo"></activity>
    </application>

</manifest>

================================================
FILE: app/src/main/java/com/ansen/frameanimation/FrameAnimation.java
================================================
package com.ansen.frameanimation;

import android.widget.ImageView;

/**
 * Created by Ansen on 2015/5/14 23:30.
 *
 * @E-mail: ansen360@126.com
 * @Blog: http://blog.csdn.net/qq_25804863
 * @Github: https://github.com/ansen360
 * @PROJECT_NAME: FrameAnimation
 * @PACKAGE_NAME: com.ansen.frameanimation.sample
 * @Description: TODO
 */
public class FrameAnimation {

    private boolean mIsRepeat;

    private AnimationListener mAnimationListener;

    private ImageView mImageView;

    private int[] mFrameRess;

    /**
     * 每帧动画的播放间隔数组
     */
    private int[] mDurations;

    /**
     * 每帧动画的播放间隔
     */
    private int mDuration;

    /**
     * 下一遍动画播放的延迟时间
     */
    private int mDelay;

    private int mLastFrame;

    private boolean mNext;

    private boolean mPause;

    private int mCurrentSelect;

    private int mCurrentFrame;

    private static final int SELECTED_A = 1;

    private static final int SELECTED_B = 2;

    private static final int SELECTED_C = 3;

    private static final int SELECTED_D = 4;


    /**
     * @param iv       播放动画的控件
     * @param frameRes 播放的图片数组
     * @param duration 每帧动画的播放间隔(毫秒)
     * @param isRepeat 是否循环播放
     */
    public FrameAnimation(ImageView iv, int[] frameRes, int duration, boolean isRepeat) {
        this.mImageView = iv;
        this.mFrameRess = frameRes;
        this.mDuration = duration;
        this.mLastFrame = frameRes.length - 1;
        this.mIsRepeat = isRepeat;
        play(0);
    }

    /**
     * @param iv        播放动画的控件
     * @param frameRess 播放的图片数组
     * @param durations 每帧动画的播放间隔(毫秒)
     * @param isRepeat  是否循环播放
     */
    public FrameAnimation(ImageView iv, int[] frameRess, int[] durations, boolean isRepeat) {
        this.mImageView = iv;
        this.mFrameRess = frameRess;
        this.mDurations = durations;
        this.mLastFrame = frameRess.length - 1;
        this.mIsRepeat = isRepeat;
        playByDurations(0);
    }

    /**
     * 循环播放动画
     *
     * @param iv        播放动画的控件
     * @param frameRess 播放的图片数组
     * @param duration  每帧动画的播放间隔(毫秒)
     * @param delay     循环播放的时间间隔
     */
    public FrameAnimation(ImageView iv, int[] frameRess, int duration, int delay) {
        this.mImageView = iv;
        this.mFrameRess = frameRess;
        this.mDuration = duration;
        this.mDelay = delay;
        this.mLastFrame = frameRess.length - 1;
        playAndDelay(0);
    }

    /**
     * 循环播放动画
     *
     * @param iv        播放动画的控件
     * @param frameRess 播放的图片数组
     * @param durations 每帧动画的播放间隔(毫秒)
     * @param delay     循环播放的时间间隔
     */
    public FrameAnimation(ImageView iv, int[] frameRess, int[] durations, int delay) {
        this.mImageView = iv;
        this.mFrameRess = frameRess;
        this.mDurations = durations;
        this.mDelay = delay;
        this.mLastFrame = frameRess.length - 1;
        playByDurationsAndDelay(0);
    }

    private void playByDurationsAndDelay(final int i) {
        mImageView.postDelayed(new Runnable() {

            @Override
            public void run() {
                if (mPause) {   // 暂停和播放需求
                    mCurrentSelect = SELECTED_A;
                    mCurrentFrame = i;
                    return;
                }
                if (0 == i) {
                    if (mAnimationListener != null) {
                        mAnimationListener.onAnimationStart();
                    }
                }
                mImageView.setBackgroundResource(mFrameRess[i]);
                if (i == mLastFrame) {
                    if (mAnimationListener != null) {
                        mAnimationListener.onAnimationRepeat();
                    }
                    mNext = true;
                    playByDurationsAndDelay(0);
                } else {
                    playByDurationsAndDelay(i + 1);
                }
            }
        }, mNext && mDelay > 0 ? mDelay : mDurations[i]);

    }

    private void playAndDelay(final int i) {
        mImageView.postDelayed(new Runnable() {

            @Override
            public void run() {
                if (mPause) {
                    if (mPause) {
                        mCurrentSelect = SELECTED_B;
                        mCurrentFrame = i;
                        return;
                    }
                    return;
                }
                mNext = false;
                if (0 == i) {
                    if (mAnimationListener != null) {
                        mAnimationListener.onAnimationStart();
                    }
                }
                mImageView.setBackgroundResource(mFrameRess[i]);
                if (i == mLastFrame) {
                    if (mAnimationListener != null) {
                        mAnimationListener.onAnimationRepeat();
                    }
                    mNext = true;
                    playAndDelay(0);
                } else {
                    playAndDelay(i + 1);
                }
            }
        }, mNext && mDelay > 0 ? mDelay : mDuration);

    }

    private void playByDurations(final int i) {
        mImageView.postDelayed(new Runnable() {

            @Override
            public void run() {
                if (mPause) {
                    if (mPause) {
                        mCurrentSelect = SELECTED_C;
                        mCurrentFrame = i;
                        return;
                    }
                    return;
                }
                if (0 == i) {
                    if (mAnimationListener != null) {
                        mAnimationListener.onAnimationStart();
                    }
                }
                mImageView.setBackgroundResource(mFrameRess[i]);
                if (i == mLastFrame) {
                    if (mIsRepeat) {
                        if (mAnimationListener != null) {
                            mAnimationListener.onAnimationRepeat();
                        }
                        playByDurations(0);
                    } else {
                        if (mAnimationListener != null) {
                            mAnimationListener.onAnimationEnd();
                        }
                    }
                } else {

                    playByDurations(i + 1);
                }
            }
        }, mDurations[i]);

    }

    private void play(final int i) {
        mImageView.postDelayed(new Runnable() {

            @Override
            public void run() {
                if (mPause) {
                    if (mPause) {
                        mCurrentSelect = SELECTED_D;
                        mCurrentFrame = i;
                        return;
                    }
                    return;
                }
                if (0 == i) {
                    if (mAnimationListener != null) {
                        mAnimationListener.onAnimationStart();
                    }
                }
                mImageView.setBackgroundResource(mFrameRess[i]);
                if (i == mLastFrame) {

                    if (mIsRepeat) {
                        if (mAnimationListener != null) {
                            mAnimationListener.onAnimationRepeat();
                        }
                        play(0);
                    } else {
                        if (mAnimationListener != null) {
                            mAnimationListener.onAnimationEnd();
                        }
                    }

                } else {

                    play(i + 1);
                }
            }
        }, mDuration);
    }

    public static interface AnimationListener {

        /**
         * <p>Notifies the start of the animation.</p>
         */
        void onAnimationStart();

        /**
         * <p>Notifies the end of the animation. This callback is not invoked
         * for animations with repeat count set to INFINITE.</p>
         */
        void onAnimationEnd();

        /**
         * <p>Notifies the repetition of the animation.</p>
         */
        void onAnimationRepeat();
    }

    /**
     * <p>Binds an animation listener to this animation. The animation listener
     * is notified of animation events such as the end of the animation or the
     * repetition of the animation.</p>
     *
     * @param listener the animation listener to be notified
     */
    public void setAnimationListener(AnimationListener listener) {
        this.mAnimationListener = listener;
    }

    public void release() {
        pauseAnimation();
    }

    public void pauseAnimation() {
        this.mPause = true;
    }

    public boolean isPause() {
        return this.mPause;
    }

    public void restartAnimation() {
        if (mPause) {
            mPause = false;
            switch (mCurrentSelect) {
                case SELECTED_A:
                    playByDurationsAndDelay(mCurrentFrame);
                    break;
                case SELECTED_B:
                    playAndDelay(mCurrentFrame);
                    break;
                case SELECTED_C:
                    playByDurations(mCurrentFrame);
                    break;
                case SELECTED_D:
                    play(mCurrentFrame);
                    break;
                default:
                    break;
            }
        }
    }

}


================================================
FILE: app/src/main/java/com/ansen/frameanimation/sample/AnimationOne.java
================================================
package com.ansen.frameanimation.sample;

import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.ansen.frameanimation.R;

/**
 * Created by Ansen on 2017/3/24 09:28.
 *
 * @E-mail: tomorrow_p@163.com
 * @Blog: http://blog.csdn.net/qq_25804863
 * @Github: https://github.com/ansen360
 * @PROJECT_NAME: FrameAnimation
 * @PACKAGE_NAME: com.ansen.frameanimation.sample
 * @Description: TODO
 */
public class AnimationOne extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.one);
        ImageView image = (ImageView) findViewById(R.id.image);


        AnimationDrawable animationDrawable = (AnimationDrawable) image.getDrawable();
        animationDrawable.start();
    }
}


================================================
FILE: app/src/main/java/com/ansen/frameanimation/sample/AnimationTwo.java
================================================
package com.ansen.frameanimation.sample;

import android.app.Activity;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

import com.ansen.frameanimation.FrameAnimation;
import com.ansen.frameanimation.R;

/**
 * Created by Ansen on 2017/3/24 10:09.
 *
 * @E-mail: ansen360@126.com
 * @Blog: http://blog.csdn.net/qq_25804863
 * @Github: https://github.com/ansen360
 * @PROJECT_NAME: FrameAnimation
 * @PACKAGE_NAME: com.ansen.frameanimation.sample
 * @Description: FrameAnimation 使用示例
 */
public class AnimationTwo extends Activity {


    private static final String TAG = "ansen";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.two);
        final ImageView image = (ImageView) findViewById(R.id.image);

        // 每50ms一帧 循环播放动画
        final FrameAnimation frameAnimation = new FrameAnimation(image, getRes(), 50, true);
        frameAnimation.setAnimationListener(new FrameAnimation.AnimationListener() {
            @Override
            public void onAnimationStart() {
                Log.d(TAG, "start");
            }

            @Override
            public void onAnimationEnd() {
                Log.d(TAG, "end");
            }

            @Override
            public void onAnimationRepeat() {
                Log.d(TAG, "repeat");
            }
        });

        image.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 实现点击 暂停和继续播放动画
                if (frameAnimation.isPause()) {
                    Log.d(TAG, "restart");
                    frameAnimation.restartAnimation();
                } else {
                    Log.d(TAG, "pause");
                    frameAnimation.pauseAnimation();
                }
            }
        });

//        循环播放动画,循环间隔为4000ms
//        FrameAnimation frameAnimation = new FrameAnimation(image, getRes(), 50, 4000);
    }

    /**
     * 获取需要播放的动画资源
     */
    private int[] getRes() {
        TypedArray typedArray = getResources().obtainTypedArray(R.array.c);
        int len = typedArray.length();
        int[] resId = new int[len];
        for (int i = 0; i < len; i++) {
            resId[i] = typedArray.getResourceId(i, -1);
        }
        typedArray.recycle();
        return resId;
    }

}


================================================
FILE: app/src/main/java/com/ansen/frameanimation/sample/MainActivity.java
================================================
package com.ansen.frameanimation.sample;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.ansen.frameanimation.R;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void clickOne(View v) {
        startActivity(new Intent(this, AnimationOne.class));
    }

    public void clickTwo(View v) {
        startActivity(new Intent(this, AnimationTwo.class));
    }
}


================================================
FILE: app/src/main/res/drawable/animlist.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:oneshot="false">

    <!--通过Android动画集播放的八十张图片-->
    <item
        android:drawable="@mipmap/c_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_2"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_3"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_4"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_5"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_6"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_7"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_8"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_9"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_10"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_11"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_12"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_13"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_14"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_15"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_16"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_17"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_18"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_19"
        android:duration="50" />
    <item
        android:drawable="@mipmap/c_20"
        android:duration="50" />

    <item
        android:drawable="@mipmap/down_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_2"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_3"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_4"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_5"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_6"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_7"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_8"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_9"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_10"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_11"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_12"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_13"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_14"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_15"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_16"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_17"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_18"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_19"
        android:duration="50" />
    <item
        android:drawable="@mipmap/down_20"
        android:duration="50" />


    <item
        android:drawable="@mipmap/e_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_2"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_3"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_4"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_5"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_6"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_7"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_8"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_9"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_10"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_11"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_12"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_13"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_14"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_15"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_16"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_17"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_18"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_19"
        android:duration="50" />
    <item
        android:drawable="@mipmap/e_20"
        android:duration="50" />

    <item
        android:drawable="@mipmap/circle_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_2"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_3"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_4"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_5"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_6"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_7"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_8"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_9"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_10"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_1"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_11"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_12"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_13"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_14"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_15"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_16"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_17"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_18"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_19"
        android:duration="50" />
    <item
        android:drawable="@mipmap/circle_20"
        android:duration="50" />

</animation-list>

================================================
FILE: app/src/main/res/layout/activity_main.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.ansen.frameanimation.sample.MainActivity">

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="clickOne"
        android:text="One" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="clickTwo"
        android:text="Two" />
</LinearLayout>


================================================
FILE: app/src/main/res/layout/one.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.ansen.frameanimation.sample.MainActivity">

    <ImageView
        android:id="@+id/image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/animlist" />

</LinearLayout>


================================================
FILE: app/src/main/res/layout/two.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.ansen.frameanimation.sample.MainActivity">

    <ImageView
        android:id="@+id/image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>


================================================
FILE: app/src/main/res/values/arrays.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!--通过FrameAnimation播放的八十张图片-->
    <array name="c">

        <item>@mipmap/c_1</item>
        <item>@mipmap/c_2</item>
        <item>@mipmap/c_3</item>
        <item>@mipmap/c_4</item>
        <item>@mipmap/c_5</item>
        <item>@mipmap/c_6</item>
        <item>@mipmap/c_7</item>
        <item>@mipmap/c_8</item>
        <item>@mipmap/c_9</item>
        <item>@mipmap/c_10</item>
        <item>@mipmap/c_11</item>
        <item>@mipmap/c_12</item>
        <item>@mipmap/c_13</item>
        <item>@mipmap/c_14</item>
        <item>@mipmap/c_15</item>
        <item>@mipmap/c_16</item>
        <item>@mipmap/c_17</item>
        <item>@mipmap/c_18</item>
        <item>@mipmap/c_19</item>
        <item>@mipmap/c_20</item>

        <item>@mipmap/down_1</item>
        <item>@mipmap/down_2</item>
        <item>@mipmap/down_3</item>
        <item>@mipmap/down_4</item>
        <item>@mipmap/down_5</item>
        <item>@mipmap/down_6</item>
        <item>@mipmap/down_7</item>
        <item>@mipmap/down_8</item>
        <item>@mipmap/down_9</item>
        <item>@mipmap/down_10</item>
        <item>@mipmap/down_11</item>
        <item>@mipmap/down_12</item>
        <item>@mipmap/down_13</item>
        <item>@mipmap/down_14</item>
        <item>@mipmap/down_15</item>
        <item>@mipmap/down_16</item>
        <item>@mipmap/down_17</item>
        <item>@mipmap/down_18</item>
        <item>@mipmap/down_19</item>
        <item>@mipmap/down_20</item>

        <item>@mipmap/e_1</item>
        <item>@mipmap/e_2</item>
        <item>@mipmap/e_3</item>
        <item>@mipmap/e_4</item>
        <item>@mipmap/e_5</item>
        <item>@mipmap/e_6</item>
        <item>@mipmap/e_7</item>
        <item>@mipmap/e_8</item>
        <item>@mipmap/e_9</item>
        <item>@mipmap/e_10</item>
        <item>@mipmap/e_11</item>
        <item>@mipmap/e_12</item>
        <item>@mipmap/e_13</item>
        <item>@mipmap/e_14</item>
        <item>@mipmap/e_15</item>
        <item>@mipmap/e_16</item>
        <item>@mipmap/e_17</item>
        <item>@mipmap/e_18</item>
        <item>@mipmap/e_19</item>
        <item>@mipmap/e_20</item>

        <item>@mipmap/circle_1</item>
        <item>@mipmap/circle_2</item>
        <item>@mipmap/circle_3</item>
        <item>@mipmap/circle_4</item>
        <item>@mipmap/circle_5</item>
        <item>@mipmap/circle_6</item>
        <item>@mipmap/circle_7</item>
        <item>@mipmap/circle_8</item>
        <item>@mipmap/circle_9</item>
        <item>@mipmap/circle_10</item>
        <item>@mipmap/circle_11</item>
        <item>@mipmap/circle_12</item>
        <item>@mipmap/circle_13</item>
        <item>@mipmap/circle_14</item>
        <item>@mipmap/circle_15</item>
        <item>@mipmap/circle_16</item>
        <item>@mipmap/circle_17</item>
        <item>@mipmap/circle_18</item>
        <item>@mipmap/circle_19</item>
        <item>@mipmap/circle_20</item>
    </array>

</resources>

================================================
FILE: app/src/main/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#3F51B5</color>
    <color name="colorPrimaryDark">#303F9F</color>
    <color name="colorAccent">#FF4081</color>
</resources>


================================================
FILE: app/src/main/res/values/strings.xml
================================================
<resources>
    <string name="app_name">FrameAnimation</string>
</resources>


================================================
FILE: app/src/main/res/values/styles.xml
================================================
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

</resources>


================================================
FILE: app/src/test/java/com/ansen/frameanimation/ExampleUnitTest.java
================================================
package com.ansen.frameanimation;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
public class ExampleUnitTest {
    @Test
    public void addition_isCorrect() throws Exception {
        assertEquals(4, 2 + 2);
    }
}

================================================
FILE: build.gradle
================================================
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
#Thu Mar 23 19:12:32 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip


================================================
FILE: gradle.properties
================================================
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true


================================================
FILE: gradlew
================================================
#!/usr/bin/env bash

##############################################################################
##
##  Gradle start up script for UN*X
##
##############################################################################

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn ( ) {
    echo "$*"
}

die ( ) {
    echo
    echo "$*"
    echo
    exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
  CYGWIN* )
    cygwin=true
    ;;
  Darwin* )
    darwin=true
    ;;
  MINGW* )
    msys=true
    ;;
esac

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '/.*' > /dev/null; then
        PRG="$link"
    else
        PRG=`dirname "$PRG"`"/$link"
    fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
        # IBM's JDK on AIX uses strange locations for the executables
        JAVACMD="$JAVA_HOME/jre/sh/java"
    else
        JAVACMD="$JAVA_HOME/bin/java"
    fi
    if [ ! -x "$JAVACMD" ] ; then
        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
    fi
else
    JAVACMD="java"
    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
    MAX_FD_LIMIT=`ulimit -H -n`
    if [ $? -eq 0 ] ; then
        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
            MAX_FD="$MAX_FD_LIMIT"
        fi
        ulimit -n $MAX_FD
        if [ $? -ne 0 ] ; then
            warn "Could not set maximum file descriptor limit: $MAX_FD"
        fi
    else
        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
    fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
    JAVACMD=`cygpath --unix "$JAVACMD"`

    # We build the pattern for arguments to be converted via cygpath
    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
    SEP=""
    for dir in $ROOTDIRSRAW ; do
        ROOTDIRS="$ROOTDIRS$SEP$dir"
        SEP="|"
    done
    OURCYGPATTERN="(^($ROOTDIRS))"
    # Add a user-defined pattern to the cygpath arguments
    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
    fi
    # Now convert the arguments - kludge to limit ourselves to /bin/sh
    i=0
    for arg in "$@" ; do
        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option

        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
        else
            eval `echo args$i`="\"$arg\""
        fi
        i=$((i+1))
    done
    case $i in
        (0) set -- ;;
        (1) set -- "$args0" ;;
        (2) set -- "$args0" "$args1" ;;
        (3) set -- "$args0" "$args1" "$args2" ;;
        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
    esac
fi

# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
    JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"


================================================
FILE: gradlew.bat
================================================
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windowz variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*
goto execute

:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega


================================================
FILE: settings.gradle
================================================
include ':app'
Download .txt
gitextract_q5tb9cvr/

├── .gitignore
├── .idea/
│   ├── compiler.xml
│   ├── copyright/
│   │   └── profiles_settings.xml
│   ├── encodings.xml
│   ├── gradle.xml
│   ├── libraries/
│   │   ├── animated_vector_drawable_25_1_1.xml
│   │   ├── appcompat_v7_25_1_1.xml
│   │   ├── constraint_layout_1_0_0_alpha9.xml
│   │   ├── constraint_layout_solver_1_0_0_alpha9.xml
│   │   ├── espresso_core_2_2_2.xml
│   │   ├── espresso_idling_resource_2_2_2.xml
│   │   ├── exposed_instrumentation_api_publish_0_5.xml
│   │   ├── hamcrest_core_1_3.xml
│   │   ├── hamcrest_integration_1_3.xml
│   │   ├── hamcrest_library_1_3.xml
│   │   ├── javawriter_2_1_1.xml
│   │   ├── javax_annotation_api_1_2.xml
│   │   ├── javax_inject_1.xml
│   │   ├── jsr305_2_0_1.xml
│   │   ├── junit_4_12.xml
│   │   ├── rules_0_5.xml
│   │   ├── runner_0_5.xml
│   │   ├── support_annotations_25_1_1.xml
│   │   ├── support_compat_25_1_1.xml
│   │   ├── support_core_ui_25_1_1.xml
│   │   ├── support_core_utils_25_1_1.xml
│   │   ├── support_fragment_25_1_1.xml
│   │   ├── support_media_compat_25_1_1.xml
│   │   ├── support_v4_25_1_1.xml
│   │   └── support_vector_drawable_25_1_1.xml
│   ├── misc.xml
│   ├── modules.xml
│   ├── qaplug_profiles.xml
│   ├── runConfigurations.xml
│   └── vcs.xml
├── LICENSE
├── README.md
├── app/
│   ├── .gitignore
│   ├── build.gradle
│   ├── proguard-rules.pro
│   └── src/
│       ├── androidTest/
│       │   └── java/
│       │       └── com/
│       │           └── ansen/
│       │               └── frameanimation/
│       │                   └── ExampleInstrumentedTest.java
│       ├── main/
│       │   ├── AndroidManifest.xml
│       │   ├── java/
│       │   │   └── com/
│       │   │       └── ansen/
│       │   │           └── frameanimation/
│       │   │               ├── FrameAnimation.java
│       │   │               └── sample/
│       │   │                   ├── AnimationOne.java
│       │   │                   ├── AnimationTwo.java
│       │   │                   └── MainActivity.java
│       │   └── res/
│       │       ├── drawable/
│       │       │   └── animlist.xml
│       │       ├── layout/
│       │       │   ├── activity_main.xml
│       │       │   ├── one.xml
│       │       │   └── two.xml
│       │       └── values/
│       │           ├── arrays.xml
│       │           ├── colors.xml
│       │           ├── strings.xml
│       │           └── styles.xml
│       └── test/
│           └── java/
│               └── com/
│                   └── ansen/
│                       └── frameanimation/
│                           └── ExampleUnitTest.java
├── build.gradle
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
Download .txt
SYMBOL INDEX (31 symbols across 6 files)

FILE: app/src/androidTest/java/com/ansen/frameanimation/ExampleInstrumentedTest.java
  class ExampleInstrumentedTest (line 17) | @RunWith(AndroidJUnit4.class)
    method useAppContext (line 19) | @Test

FILE: app/src/main/java/com/ansen/frameanimation/FrameAnimation.java
  class FrameAnimation (line 15) | public class FrameAnimation {
    method FrameAnimation (line 65) | public FrameAnimation(ImageView iv, int[] frameRes, int duration, bool...
    method FrameAnimation (line 80) | public FrameAnimation(ImageView iv, int[] frameRess, int[] durations, ...
    method FrameAnimation (line 97) | public FrameAnimation(ImageView iv, int[] frameRess, int duration, int...
    method FrameAnimation (line 114) | public FrameAnimation(ImageView iv, int[] frameRess, int[] durations, ...
    method playByDurationsAndDelay (line 123) | private void playByDurationsAndDelay(final int i) {
    method playAndDelay (line 153) | private void playAndDelay(final int i) {
    method playByDurations (line 187) | private void playByDurations(final int i) {
    method play (line 226) | private void play(final int i) {
    type AnimationListener (line 266) | public static interface AnimationListener {
      method onAnimationStart (line 271) | void onAnimationStart();
      method onAnimationEnd (line 277) | void onAnimationEnd();
      method onAnimationRepeat (line 282) | void onAnimationRepeat();
    method setAnimationListener (line 292) | public void setAnimationListener(AnimationListener listener) {
    method release (line 296) | public void release() {
    method pauseAnimation (line 300) | public void pauseAnimation() {
    method isPause (line 304) | public boolean isPause() {
    method restartAnimation (line 308) | public void restartAnimation() {

FILE: app/src/main/java/com/ansen/frameanimation/sample/AnimationOne.java
  class AnimationOne (line 21) | public class AnimationOne extends Activity {
    method onCreate (line 23) | @Override

FILE: app/src/main/java/com/ansen/frameanimation/sample/AnimationTwo.java
  class AnimationTwo (line 24) | public class AnimationTwo extends Activity {
    method onCreate (line 29) | @Override
    method getRes (line 75) | private int[] getRes() {

FILE: app/src/main/java/com/ansen/frameanimation/sample/MainActivity.java
  class MainActivity (line 10) | public class MainActivity extends AppCompatActivity {
    method onCreate (line 12) | @Override
    method clickOne (line 18) | public void clickOne(View v) {
    method clickTwo (line 22) | public void clickTwo(View v) {

FILE: app/src/test/java/com/ansen/frameanimation/ExampleUnitTest.java
  class ExampleUnitTest (line 12) | public class ExampleUnitTest {
    method addition_isCorrect (line 13) | @Test
Condensed preview — 62 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (82K chars).
[
  {
    "path": ".gitignore",
    "chars": 465,
    "preview": "# 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 file"
  },
  {
    "path": ".idea/compiler.xml",
    "chars": 686,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"CompilerConfiguration\">\n    <resourceExt"
  },
  {
    "path": ".idea/copyright/profiles_settings.xml",
    "chars": 74,
    "preview": "<component name=\"CopyrightManager\">\n  <settings default=\"\" />\n</component>"
  },
  {
    "path": ".idea/encodings.xml",
    "chars": 159,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"Encoding\">\n    <file url=\"PROJECT\" chars"
  },
  {
    "path": ".idea/gradle.xml",
    "chars": 626,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleSettings\">\n    <option name=\"linke"
  },
  {
    "path": ".idea/libraries/animated_vector_drawable_25_1_1.xml",
    "chars": 590,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"animated-vector-drawable-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://"
  },
  {
    "path": ".idea/libraries/appcompat_v7_25_1_1.xml",
    "chars": 554,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"appcompat-v7-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$"
  },
  {
    "path": ".idea/libraries/constraint_layout_1_0_0_alpha9.xml",
    "chars": 408,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"constraint-layout-1.0.0-alpha9\">\n    <CLASSES>\n      <root url=\"file://"
  },
  {
    "path": ".idea/libraries/constraint_layout_solver_1_0_0_alpha9.xml",
    "chars": 350,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"constraint-layout-solver-1.0.0-alpha9\">\n    <CLASSES>\n      <root url=\""
  },
  {
    "path": ".idea/libraries/espresso_core_2_2_2.xml",
    "chars": 568,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"espresso-core-2.2.2\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$"
  },
  {
    "path": ".idea/libraries/espresso_idling_resource_2_2_2.xml",
    "chars": 601,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"espresso-idling-resource-2.2.2\">\n    <CLASSES>\n      <root url=\"jar://$"
  },
  {
    "path": ".idea/libraries/exposed_instrumentation_api_publish_0_5.xml",
    "chars": 619,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"exposed-instrumentation-api-publish-0.5\">\n    <CLASSES>\n      <root url"
  },
  {
    "path": ".idea/libraries/hamcrest_core_1_3.xml",
    "chars": 516,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"hamcrest-core-1.3\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.g"
  },
  {
    "path": ".idea/libraries/hamcrest_integration_1_3.xml",
    "chars": 346,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"hamcrest-integration-1.3\">\n    <CLASSES>\n      <root url=\"jar://$USER_H"
  },
  {
    "path": ".idea/libraries/hamcrest_library_1_3.xml",
    "chars": 530,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"hamcrest-library-1.3\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$"
  },
  {
    "path": ".idea/libraries/javawriter_2_1_1.xml",
    "chars": 322,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"javawriter-2.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gr"
  },
  {
    "path": ".idea/libraries/javax_annotation_api_1_2.xml",
    "chars": 350,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"javax.annotation-api-1.2\">\n    <CLASSES>\n      <root url=\"jar://$USER_H"
  },
  {
    "path": ".idea/libraries/javax_inject_1.xml",
    "chars": 501,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"javax.inject-1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.grad"
  },
  {
    "path": ".idea/libraries/jsr305_2_0_1.xml",
    "chars": 322,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"jsr305-2.0.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle"
  },
  {
    "path": ".idea/libraries/junit_4_12.xml",
    "chars": 467,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"junit-4.12\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.gradle/c"
  },
  {
    "path": ".idea/libraries/rules_0_5.xml",
    "chars": 529,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"rules-0.5\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/.android/"
  },
  {
    "path": ".idea/libraries/runner_0_5.xml",
    "chars": 532,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"runner-0.5\">\n    <CLASSES>\n      <root url=\"jar://$USER_HOME$/.android/"
  },
  {
    "path": ".idea/libraries/support_annotations_25_1_1.xml",
    "chars": 485,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-annotations-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://C:/de"
  },
  {
    "path": ".idea/libraries/support_compat_25_1_1.xml",
    "chars": 560,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-compat-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOM"
  },
  {
    "path": ".idea/libraries/support_core_ui_25_1_1.xml",
    "chars": 563,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-core-ui-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HO"
  },
  {
    "path": ".idea/libraries/support_core_utils_25_1_1.xml",
    "chars": 572,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-core-utils-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER"
  },
  {
    "path": ".idea/libraries/support_fragment_25_1_1.xml",
    "chars": 566,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-fragment-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USER_HO"
  },
  {
    "path": ".idea/libraries/support_media_compat_25_1_1.xml",
    "chars": 578,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-media-compat-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$USE"
  },
  {
    "path": ".idea/libraries/support_v4_25_1_1.xml",
    "chars": 395,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-v4-25.1.1\">\n    <CLASSES>\n      <root url=\"file://$USER_HOME$/."
  },
  {
    "path": ".idea/libraries/support_vector_drawable_25_1_1.xml",
    "chars": 587,
    "preview": "<component name=\"libraryTable\">\n  <library name=\"support-vector-drawable-25.1.1\">\n    <CLASSES>\n      <root url=\"jar://$"
  },
  {
    "path": ".idea/misc.xml",
    "chars": 3390,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"EntryPointsManager\">\n    <entry_points v"
  },
  {
    "path": ".idea/modules.xml",
    "chars": 365,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ProjectModuleManager\">\n    <modules>\n   "
  },
  {
    "path": ".idea/qaplug_profiles.xml",
    "chars": 452,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"AnalysisProjectProfileManager\">\n    <opt"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "chars": 564,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <o"
  },
  {
    "path": ".idea/vcs.xml",
    "chars": 180,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping dire"
  },
  {
    "path": "LICENSE",
    "chars": 11357,
    "preview": "                                 Apache License\n                           Version 2.0, January 2004\n                   "
  },
  {
    "path": "README.md",
    "chars": 3917,
    "preview": "[![](https://jitpack.io/v/ansen360/FrameAnimation.svg)](https://jitpack.io/#ansen360/FrameAnimation)\n[![Codacy Badge](ht"
  },
  {
    "path": "app/.gitignore",
    "chars": 7,
    "preview": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "chars": 948,
    "preview": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 25\n    buildToolsVersion \"25.0.2\"\n    defaultCo"
  },
  {
    "path": "app/proguard-rules.pro",
    "chars": 912,
    "preview": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in C:"
  },
  {
    "path": "app/src/androidTest/java/com/ansen/frameanimation/ExampleInstrumentedTest.java",
    "chars": 752,
    "preview": "package com.ansen.frameanimation;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "chars": 857,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package="
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/FrameAnimation.java",
    "chars": 9269,
    "preview": "package com.ansen.frameanimation;\n\nimport android.widget.ImageView;\n\n/**\n * Created by Ansen on 2015/5/14 23:30.\n *\n * @"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/sample/AnimationOne.java",
    "chars": 938,
    "preview": "package com.ansen.frameanimation.sample;\n\nimport android.app.Activity;\nimport android.graphics.drawable.AnimationDrawabl"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/sample/AnimationTwo.java",
    "chars": 2509,
    "preview": "package com.ansen.frameanimation.sample;\n\nimport android.app.Activity;\nimport android.content.res.TypedArray;\nimport and"
  },
  {
    "path": "app/src/main/java/com/ansen/frameanimation/sample/MainActivity.java",
    "chars": 643,
    "preview": "package com.ansen.frameanimation.sample;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.suppor"
  },
  {
    "path": "app/src/main/res/drawable/animlist.xml",
    "chars": 7298,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<animation-list xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    an"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "chars": 716,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmln"
  },
  {
    "path": "app/src/main/res/layout/one.xml",
    "chars": 564,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmln"
  },
  {
    "path": "app/src/main/res/layout/two.xml",
    "chars": 523,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmln"
  },
  {
    "path": "app/src/main/res/values/arrays.xml",
    "chars": 2983,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <!--通过FrameAnimation播放的八十张图片-->\n    <array name=\"c\">\n\n        <i"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "chars": 208,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#3F51B5</color>\n    <color name=\"color"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "chars": 77,
    "preview": "<resources>\n    <string name=\"app_name\">FrameAnimation</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "chars": 383,
    "preview": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar"
  },
  {
    "path": "app/src/test/java/com/ansen/frameanimation/ExampleUnitTest.java",
    "chars": 402,
    "preview": "package com.ansen.frameanimation;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit "
  },
  {
    "path": "build.gradle",
    "chars": 498,
    "preview": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    r"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "chars": 230,
    "preview": "#Thu Mar 23 19:12:32 CST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_"
  },
  {
    "path": "gradle.properties",
    "chars": 730,
    "preview": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will o"
  },
  {
    "path": "gradlew",
    "chars": 4971,
    "preview": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start "
  },
  {
    "path": "gradlew.bat",
    "chars": 2314,
    "preview": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem "
  },
  {
    "path": "settings.gradle",
    "chars": 15,
    "preview": "include ':app'\n"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the ansen360/FrameAnimation GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 62 files (71.7 KB), approximately 21.7k tokens, and a symbol index with 31 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!