[
  {
    "path": ".editorconfig",
    "content": "[*.{kt,kts,java}]\nindent_size=2\nmax_line_length=off\ninsert_final_newline=true\n\n[*.{kt,kts}]\nkotlin_imports_layout=ascii\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\ngithub: wasabeef # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: # Replace with a single Patreon username\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\ncustom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "content": "# Future Task\n\n## What is the motivation?\n\n## What kind of solution can be considered?\n\n## What do you want to discuss?\n\n*Please add relevant labels*\n\n-----\n\n# Bug Reporting\n\n## Steps to Reproduce\n\n## Actual Results (include screenshots)\n\n## Expected Results (include screenshots)\n\n## URL\n\n## OS details\n\n- Device:\n- OS:\n\n*Please add relevant labels*\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "## What does this change?\n\n## What is the value of this and can you measure success?\n\n## Screenshots\n\n"
  },
  {
    "path": ".github/workflows/gradle-build.yml",
    "content": "name: \"Gradle build\"\non: [push, pull_request]\n\njobs:\n  gradle:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-java@v1\n        with:\n          java-version: 1.8\n      - name: Build with Gradle\n        run: ./gradlew build"
  },
  {
    "path": ".gitignore",
    "content": "# Mac OS\n.DS_store\n\n# Built application files\n*.apk\n*.ap_\n\n# Files for the ART/Dalvik VM\n*.dex\n\n# Java class files\n*.class\n\n# Generated files\nbin/\ngen/\nout/\n\n# Gradle files\n.gradle/\nbuild/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Proguard folder generated by Eclipse\nproguard/\n\n# Log Files\n*.log\n\n# Android Studio Navigation editor temp files\n.navigation/\n\n# Android Studio captures folder\ncaptures/\n\n# IntelliJ\n*.iml\n.idea/workspace.xml\n.idea/tasks.xml\n.idea/gradle.xml\n.idea/assetWizardSettings.xml\n.idea/dictionaries\n.idea/libraries\n.idea/caches\n.idea/misc.xml\n.idea/modules.xml\n.idea/navEditor.xml\n.idea/markdown*\n.idea/compiler.xml\n.idea/inspectionProfiles/Project_Default.xml\n.idea/jarRepositories.xml\nprojectFilesBackup/\n\n# Keystore files\n# Uncomment the following line if you do not want to check your keystore files in.\n#*.jks\n\n# External native build folder generated in Android Studio 2.2 and later\n.externalNativeBuild\n\n# Google Services (e.g. APIs or Firebase)\ngoogle-services.json\n\n"
  },
  {
    "path": ".idea/codeStyles/Project.xml",
    "content": "<component name=\"ProjectCodeStyleConfiguration\">\n  <code_scheme name=\"Project\" version=\"173\">\n    <option name=\"USE_SAME_INDENTS\" value=\"true\" />\n    <option name=\"IGNORE_SAME_INDENTS_FOR_LANGUAGES\" value=\"true\" />\n    <option name=\"OTHER_INDENT_OPTIONS\">\n      <value>\n        <option name=\"INDENT_SIZE\" value=\"2\" />\n        <option name=\"CONTINUATION_INDENT_SIZE\" value=\"4\" />\n        <option name=\"TAB_SIZE\" value=\"2\" />\n      </value>\n    </option>\n    <option name=\"LINE_COMMENT_AT_FIRST_COLUMN\" value=\"false\" />\n    <option name=\"BLOCK_COMMENT_AT_FIRST_COLUMN\" value=\"false\" />\n    <option name=\"KEEP_LINE_BREAKS\" value=\"false\" />\n    <option name=\"KEEP_FIRST_COLUMN_COMMENT\" value=\"false\" />\n    <option name=\"KEEP_BLANK_LINES_IN_DECLARATIONS\" value=\"1\" />\n    <option name=\"KEEP_BLANK_LINES_IN_CODE\" value=\"1\" />\n    <option name=\"KEEP_BLANK_LINES_BEFORE_RBRACE\" value=\"0\" />\n    <option name=\"ALIGN_MULTILINE_PARAMETERS\" value=\"false\" />\n    <option name=\"ALIGN_MULTILINE_FOR\" value=\"false\" />\n    <option name=\"SPACE_WITHIN_ARRAY_INITIALIZER_BRACES\" value=\"true\" />\n    <option name=\"SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE\" value=\"true\" />\n    <option name=\"CALL_PARAMETERS_WRAP\" value=\"1\" />\n    <option name=\"METHOD_PARAMETERS_WRAP\" value=\"1\" />\n    <option name=\"RESOURCE_LIST_WRAP\" value=\"1\" />\n    <option name=\"EXTENDS_LIST_WRAP\" value=\"1\" />\n    <option name=\"THROWS_LIST_WRAP\" value=\"1\" />\n    <option name=\"EXTENDS_KEYWORD_WRAP\" value=\"1\" />\n    <option name=\"THROWS_KEYWORD_WRAP\" value=\"1\" />\n    <option name=\"METHOD_CALL_CHAIN_WRAP\" value=\"5\" />\n    <option name=\"BINARY_OPERATION_WRAP\" value=\"5\" />\n    <option name=\"BINARY_OPERATION_SIGN_ON_NEXT_LINE\" value=\"true\" />\n    <option name=\"TERNARY_OPERATION_WRAP\" value=\"1\" />\n    <option name=\"TERNARY_OPERATION_SIGNS_ON_NEXT_LINE\" value=\"true\" />\n    <option name=\"FOR_STATEMENT_WRAP\" value=\"1\" />\n    <option name=\"ARRAY_INITIALIZER_WRAP\" value=\"1\" />\n    <option name=\"ASSIGNMENT_WRAP\" value=\"1\" />\n    <option name=\"WRAP_COMMENTS\" value=\"true\" />\n    <option name=\"ASSERT_STATEMENT_WRAP\" value=\"1\" />\n    <option name=\"IF_BRACE_FORCE\" value=\"1\" />\n    <option name=\"DOWHILE_BRACE_FORCE\" value=\"1\" />\n    <option name=\"WHILE_BRACE_FORCE\" value=\"1\" />\n    <option name=\"METHOD_ANNOTATION_WRAP\" value=\"1\" />\n    <option name=\"FIELD_ANNOTATION_WRAP\" value=\"1\" />\n    <option name=\"PARAMETER_ANNOTATION_WRAP\" value=\"1\" />\n    <option name=\"VARIABLE_ANNOTATION_WRAP\" value=\"1\" />\n    <option name=\"ENUM_CONSTANTS_WRAP\" value=\"1\" />\n    <AndroidXmlCodeStyleSettings>\n      <option name=\"LAYOUT_SETTINGS\">\n        <value>\n          <option name=\"INSERT_BLANK_LINE_BEFORE_TAG\" value=\"false\" />\n          <option name=\"INSERT_LINE_BREAK_AFTER_LAST_ATTRIBUTE\" value=\"true\" />\n        </value>\n      </option>\n      <option name=\"MANIFEST_SETTINGS\">\n        <value>\n          <option name=\"INSERT_LINE_BREAK_AFTER_LAST_ATTRIBUTE\" value=\"true\" />\n        </value>\n      </option>\n      <option name=\"OTHER_SETTINGS\">\n        <value>\n          <option name=\"INSERT_LINE_BREAK_AFTER_LAST_ATTRIBUTE\" value=\"true\" />\n        </value>\n      </option>\n    </AndroidXmlCodeStyleSettings>\n    <JavaCodeStyleSettings>\n      <option name=\"CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND\" value=\"999\" />\n      <option name=\"NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND\" value=\"999\" />\n      <option name=\"IMPORT_LAYOUT_TABLE\">\n        <value>\n          <package name=\"\" withSubpackages=\"true\" static=\"false\" />\n          <emptyLine />\n          <package name=\"\" withSubpackages=\"true\" static=\"true\" />\n        </value>\n      </option>\n      <option name=\"JD_ALIGN_PARAM_COMMENTS\" value=\"false\" />\n      <option name=\"JD_ALIGN_EXCEPTION_COMMENTS\" value=\"false\" />\n      <option name=\"JD_P_AT_EMPTY_LINES\" value=\"false\" />\n      <option name=\"JD_DO_NOT_WRAP_ONE_LINE_COMMENTS\" value=\"true\" />\n      <option name=\"JD_KEEP_EMPTY_PARAMETER\" value=\"false\" />\n      <option name=\"JD_KEEP_EMPTY_RETURN\" value=\"false\" />\n      <option name=\"JD_PRESERVE_LINE_FEEDS\" value=\"true\" />\n    </JavaCodeStyleSettings>\n    <JetCodeStyleSettings>\n      <option name=\"PACKAGES_TO_USE_STAR_IMPORTS\">\n        <value>\n          <package name=\"kotlinx.android.synthetic\" alias=\"false\" withSubpackages=\"true\" />\n        </value>\n      </option>\n      <option name=\"PACKAGES_IMPORT_LAYOUT\">\n        <value>\n          <package name=\"\" alias=\"false\" withSubpackages=\"true\" />\n          <package name=\"java\" alias=\"false\" withSubpackages=\"true\" />\n          <package name=\"javax\" alias=\"false\" withSubpackages=\"true\" />\n          <package name=\"kotlin\" alias=\"false\" withSubpackages=\"true\" />\n          <package name=\"\" alias=\"true\" withSubpackages=\"true\" />\n        </value>\n      </option>\n      <option name=\"NAME_COUNT_TO_USE_STAR_IMPORT\" value=\"2147483647\" />\n      <option name=\"NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS\" value=\"2147483647\" />\n      <option name=\"CODE_STYLE_DEFAULTS\" value=\"KOTLIN_OFFICIAL\" />\n    </JetCodeStyleSettings>\n    <MarkdownNavigatorCodeStyleSettings>\n      <option name=\"RIGHT_MARGIN\" value=\"72\" />\n    </MarkdownNavigatorCodeStyleSettings>\n    <XML>\n      <option name=\"XML_LEGACY_SETTINGS_IMPORTED\" value=\"true\" />\n    </XML>\n    <ADDITIONAL_INDENT_OPTIONS fileType=\"php\">\n      <option name=\"INDENT_SIZE\" value=\"2\" />\n      <option name=\"CONTINUATION_INDENT_SIZE\" value=\"4\" />\n      <option name=\"TAB_SIZE\" value=\"2\" />\n    </ADDITIONAL_INDENT_OPTIONS>\n    <ADDITIONAL_INDENT_OPTIONS fileType=\"scala\">\n      <option name=\"INDENT_SIZE\" value=\"2\" />\n      <option name=\"CONTINUATION_INDENT_SIZE\" value=\"2\" />\n      <option name=\"TAB_SIZE\" value=\"2\" />\n    </ADDITIONAL_INDENT_OPTIONS>\n    <ADDITIONAL_INDENT_OPTIONS fileType=\"sql\">\n      <option name=\"INDENT_SIZE\" value=\"2\" />\n      <option name=\"CONTINUATION_INDENT_SIZE\" value=\"4\" />\n      <option name=\"TAB_SIZE\" value=\"2\" />\n    </ADDITIONAL_INDENT_OPTIONS>\n    <codeStyleSettings language=\"Groovy\">\n      <option name=\"RIGHT_MARGIN\" value=\"150\" />\n      <option name=\"KEEP_LINE_BREAKS\" value=\"false\" />\n      <option name=\"KEEP_FIRST_COLUMN_COMMENT\" value=\"false\" />\n      <option name=\"KEEP_BLANK_LINES_IN_DECLARATIONS\" value=\"1\" />\n      <option name=\"KEEP_BLANK_LINES_IN_CODE\" value=\"1\" />\n      <option name=\"KEEP_BLANK_LINES_BEFORE_RBRACE\" value=\"0\" />\n      <option name=\"ALIGN_MULTILINE_PARAMETERS\" value=\"false\" />\n      <option name=\"ALIGN_MULTILINE_FOR\" value=\"false\" />\n      <option name=\"CALL_PARAMETERS_WRAP\" value=\"1\" />\n      <option name=\"METHOD_PARAMETERS_WRAP\" value=\"1\" />\n      <option name=\"METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE\" value=\"true\" />\n      <option name=\"EXTENDS_LIST_WRAP\" value=\"1\" />\n      <option name=\"THROWS_LIST_WRAP\" value=\"1\" />\n      <option name=\"EXTENDS_KEYWORD_WRAP\" value=\"1\" />\n      <option name=\"THROWS_KEYWORD_WRAP\" value=\"1\" />\n      <option name=\"METHOD_CALL_CHAIN_WRAP\" value=\"5\" />\n      <option name=\"BINARY_OPERATION_WRAP\" value=\"5\" />\n      <option name=\"TERNARY_OPERATION_WRAP\" value=\"1\" />\n      <option name=\"FOR_STATEMENT_WRAP\" value=\"1\" />\n      <option name=\"ASSIGNMENT_WRAP\" value=\"1\" />\n      <option name=\"ASSERT_STATEMENT_WRAP\" value=\"1\" />\n      <option name=\"IF_BRACE_FORCE\" value=\"1\" />\n      <option name=\"WHILE_BRACE_FORCE\" value=\"1\" />\n      <option name=\"METHOD_ANNOTATION_WRAP\" value=\"1\" />\n      <option name=\"FIELD_ANNOTATION_WRAP\" value=\"1\" />\n      <option name=\"PARAMETER_ANNOTATION_WRAP\" value=\"1\" />\n      <option name=\"VARIABLE_ANNOTATION_WRAP\" value=\"1\" />\n      <indentOptions>\n        <option name=\"INDENT_SIZE\" value=\"2\" />\n        <option name=\"CONTINUATION_INDENT_SIZE\" value=\"2\" />\n        <option name=\"TAB_SIZE\" value=\"2\" />\n      </indentOptions>\n    </codeStyleSettings>\n    <codeStyleSettings language=\"JAVA\">\n      <option name=\"LINE_COMMENT_AT_FIRST_COLUMN\" value=\"false\" />\n      <option name=\"BLOCK_COMMENT_AT_FIRST_COLUMN\" value=\"false\" />\n      <option name=\"KEEP_LINE_BREAKS\" value=\"false\" />\n      <option name=\"KEEP_FIRST_COLUMN_COMMENT\" value=\"false\" />\n      <option name=\"KEEP_BLANK_LINES_IN_DECLARATIONS\" value=\"1\" />\n      <option name=\"KEEP_BLANK_LINES_IN_CODE\" value=\"1\" />\n      <option name=\"KEEP_BLANK_LINES_BEFORE_RBRACE\" value=\"0\" />\n      <option name=\"ALIGN_MULTILINE_PARAMETERS\" value=\"false\" />\n      <option name=\"ALIGN_MULTILINE_FOR\" value=\"false\" />\n      <option name=\"SPACE_WITHIN_ARRAY_INITIALIZER_BRACES\" value=\"true\" />\n      <option name=\"SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE\" value=\"true\" />\n      <option name=\"CALL_PARAMETERS_WRAP\" value=\"1\" />\n      <option name=\"METHOD_PARAMETERS_WRAP\" value=\"1\" />\n      <option name=\"RESOURCE_LIST_WRAP\" value=\"1\" />\n      <option name=\"EXTENDS_LIST_WRAP\" value=\"1\" />\n      <option name=\"THROWS_LIST_WRAP\" value=\"1\" />\n      <option name=\"EXTENDS_KEYWORD_WRAP\" value=\"1\" />\n      <option name=\"THROWS_KEYWORD_WRAP\" value=\"1\" />\n      <option name=\"METHOD_CALL_CHAIN_WRAP\" value=\"5\" />\n      <option name=\"BINARY_OPERATION_WRAP\" value=\"1\" />\n      <option name=\"BINARY_OPERATION_SIGN_ON_NEXT_LINE\" value=\"true\" />\n      <option name=\"TERNARY_OPERATION_WRAP\" value=\"1\" />\n      <option name=\"TERNARY_OPERATION_SIGNS_ON_NEXT_LINE\" value=\"true\" />\n      <option name=\"FOR_STATEMENT_WRAP\" value=\"1\" />\n      <option name=\"ARRAY_INITIALIZER_WRAP\" value=\"1\" />\n      <option name=\"ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE\" value=\"true\" />\n      <option name=\"ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE\" value=\"true\" />\n      <option name=\"ASSIGNMENT_WRAP\" value=\"1\" />\n      <option name=\"ASSERT_STATEMENT_WRAP\" value=\"1\" />\n      <option name=\"IF_BRACE_FORCE\" value=\"1\" />\n      <option name=\"DOWHILE_BRACE_FORCE\" value=\"1\" />\n      <option name=\"WHILE_BRACE_FORCE\" value=\"1\" />\n      <option name=\"METHOD_ANNOTATION_WRAP\" value=\"1\" />\n      <option name=\"FIELD_ANNOTATION_WRAP\" value=\"1\" />\n      <option name=\"PARAMETER_ANNOTATION_WRAP\" value=\"1\" />\n      <option name=\"VARIABLE_ANNOTATION_WRAP\" value=\"1\" />\n      <indentOptions>\n        <option name=\"INDENT_SIZE\" value=\"2\" />\n        <option name=\"CONTINUATION_INDENT_SIZE\" value=\"2\" />\n        <option name=\"TAB_SIZE\" value=\"2\" />\n      </indentOptions>\n    </codeStyleSettings>\n    <codeStyleSettings language=\"XML\">\n      <indentOptions>\n        <option name=\"INDENT_SIZE\" value=\"2\" />\n        <option name=\"CONTINUATION_INDENT_SIZE\" value=\"2\" />\n        <option name=\"TAB_SIZE\" value=\"2\" />\n      </indentOptions>\n      <arrangement>\n        <rules>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>xmlns:android</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>.*</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>xmlns:.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>.*</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:id</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:name</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>name</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>style</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>^$</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:orientation</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:layout_width</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:layout_height</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:layout_weight</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:layout_.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:width</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*:height</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n          <section>\n            <rule>\n              <match>\n                <AND>\n                  <NAME>.*</NAME>\n                  <XML_ATTRIBUTE />\n                  <XML_NAMESPACE>.*</XML_NAMESPACE>\n                </AND>\n              </match>\n              <order>BY_NAME</order>\n            </rule>\n          </section>\n        </rules>\n      </arrangement>\n    </codeStyleSettings>\n    <codeStyleSettings language=\"kotlin\">\n      <option name=\"CODE_STYLE_DEFAULTS\" value=\"KOTLIN_OFFICIAL\" />\n      <option name=\"ENUM_CONSTANTS_WRAP\" value=\"2\" />\n      <indentOptions>\n        <option name=\"INDENT_SIZE\" value=\"2\" />\n        <option name=\"CONTINUATION_INDENT_SIZE\" value=\"2\" />\n        <option name=\"TAB_SIZE\" value=\"2\" />\n      </indentOptions>\n    </codeStyleSettings>\n  </code_scheme>\n</component>"
  },
  {
    "path": ".idea/codeStyles/codeStyleConfig.xml",
    "content": "<component name=\"ProjectCodeStyleConfiguration\">\n    <state>\n        <option name=\"USE_PER_PROJECT_SETTINGS\" value=\"true\" />\n        <option name=\"PREFERRED_PROJECT_CODE_STYLE\" value=\"Default\" />\n    </state>\n</component>"
  },
  {
    "path": ".idea/encodings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"Encoding\" addBOMForNewFiles=\"with NO BOM\" />\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/vcs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping directory=\"\" vcs=\"Git\" />\n  </component>\n</project>"
  },
  {
    "path": "CHANGELOG.md",
    "content": "Change Log\n==========\n\nVersion 4.0.0 *(2020-08-27)*\n----------------------------\n\nUpdate:\n- Convert from all Java codes to Kotlin 1.3.72\n- The minSdkVersion from 14 to 21\n- The targetSdkVersion from 28 to 30\n- The compileSdkVersion from 28 to 30\n- Update project settings\n  - Disable Jetifier\n  - Add CodeStyle settings\n\nVersion 3.0.0 *(2018-11-15)*\n----------------------------\n\nUpdate:\n- Migrate to AndroidX\n- Remove novoda-bintray-plugin\n- Fix a buf [#161](https://github.com/wasabeef/recyclerview-animators/pull/161)\n\nVersion 2.3.0 *(2018-02-07)*\n----------------------------\n\nUpdate:  \n- Compile & Target SDK Version 25 -> 27  \n- Build Tools 26.0.1 -> 27.0.3  \n- Support Library 25.3.1 -> 27.0.2  \n\nVersion 2.2.7 *(2017-06-29)*\n----------------------------\n\nUpdate:\n- Support Library 25.3.0 -> 25.4.0\n\nVersion 2.2.6 *(2017-03-17)*\n----------------------------\n\nFeature:\n- [Changed Interpolator to DecelerateInterpolator #125](https://github.com/wasabeef/recyclerview-animators/pull/125)\n\nUpdate:\n- Build Tools 25 -> 25.0.2\n- Support Library 24.2.0 -> 25.3.0\n\nBugfix:\n- [Fix animations not fully canceled on endAnimations()  #86](https://github.com/wasabeef/recyclerview-animators/pull/86)\n\n\nVersion 2.2.5 *(2016-12-02)*\n----------------------------\n\nUpdate:\n- Build Tools 24.0.2 -> 25\n- Support Library 23.4.0 -> 24.2.0\n\n\nVersion 2.2.4 *(2016-08-03)*\n----------------------------\n\nUpdate:  \n- Build Tools 23.0.1 -> 24.0.2  \n- Support Library 23.0.1 -> 23.4.0  \n\n\nVersion 2.2.3 *(2016-04-19)*\n----------------------------\n\nBug fix:  \n [Dispatch onViewRecycled event to wrapped adapter #80](https://github.com/wasabeef/recyclerview-animators/pull/80)  \n [Fix setStartDelay() is not reset by clear() #82](https://github.com/wasabeef/recyclerview-animators/pull/82)  \n \nUpdate:  \n Support library 23.2.1\n\nVersion 2.2.2 *(2016-04-05)*\n----------------------------\n\nBug fix\n\nVersion 2.2.1 *(2016-02-28)*\n----------------------------\n\nBug fix: firstOnly\n\nVersion 2.2.0 *(2016-01-29)*\n----------------------------\n\nBug fix: [issue #64](https://github.com/wasabeef/recyclerview-animators/issues/64) by [@emartynov](https://github.com/wasabeef/recyclerview-animators/issues/64)\nFeature: [Motion Delay](https://github.com/wasabeef/recyclerview-animators/pull/66) by [@aphexcx](https://github.com/aphexcx)\n\nVersion 2.1.0 *(2015-11-25)*\n----------------------------\n\nMove the adapters of the package.  \nAdded BaseItemAnimator#setInterpolator.  \n\nVersion 2.0.2 *(2015-11-24)*\n----------------------------\n\nAdded AnimationAdapter#getIemId  \n Fixed the getItemId() to return the nested adapter item id  \n\nVersion 2.0.1 *(2015-11-10)*\n----------------------------\n\nBug fix registerAdapterDataObserver, unregisterAdapterDataObserver\n\nVersion 2.0.0 *(2015-10-16)*\n----------------------------\n\nSupport RecyclerView 23.1.0+\n\n**Use 1.3.0 If you are using a 23.0.1 or below.**\n\nVersion 1.3.0 *(2015-09-11)*\n----------------------------\n\nAdded in ability to pass in interpolators to the four ItemAnimators.\nThanks to [@craya1982](https://github.com/craya1982)\n\nVersion 1.2.3 *(2015-09-07)*\n----------------------------\n\nUpdate support library.\n\nVersion 1.2.2 *(2015-08-19)*\n----------------------------\n\nAdd tension in OvershootAnimators.\n\nVersion 1.2.1 *(2015-07-07)*\n----------------------------\n\nUpdate AnimationAdapter to allow grabbing the wrappedAdapter.\n\nVersion 1.2.0 *(2015-04-15)*\n----------------------------\n\nSupport Multiple animators for ViewHolders.\n\nVersion 1.1.3 *(2015-04-08)*\n----------------------------\n\nSupport Interpolator in AnimationAdapter.\n\nVersion 1.1.2 *(2015-03-23)*\n----------------------------\n\nSupports multiple viewTypes.\n\nVersion 1.1.1 *(2015-03-17)*\n----------------------------\n\nImproved reliability and speed.\n\nVersion 1.1.0 *(2015-01-21)*\n----------------------------\n\nadd RecyclerView.Adapter support.\n\n\nVersion 1.0.3 *(2015-01-21)*\n----------------------------\n\nfix setting of pom.xml\n\nVersion 1.0.2 *(2015-01-20)*\n----------------------------\n\nfix setting of pom.xml\n\nVersion 1.0.1 *(2015-01-10)*\n----------------------------\n\nAttach a jar for non-Gradle Android users.\n\nVersion 1.0.0 *(2015-01-05)*\n----------------------------\n\nInitial release.\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to making participation in our project and\nour community a harassment-free experience for everyone, regardless of age, body\nsize, disability, ethnicity, sex characteristics, gender identity and expression,\nlevel of experience, education, socio-economic status, nationality, personal\nappearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or\n advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic\n address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or\nreject comments, commits, code, wiki edits, issues, and other contributions\nthat are not aligned to this Code of Conduct, or to ban temporarily or\npermanently any contributor for other behaviors that they deem inappropriate,\nthreatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces\nwhen an individual is representing the project or its community. Examples of\nrepresenting a project or community include using an official project e-mail\naddress, posting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event. Representation of a project may be\nfurther defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported by contacting the project team at dadadada.chop@gmail.com. All\ncomplaints will be reviewed and investigated and will result in a response that\nis deemed necessary and appropriate to the circumstances. The project team is\nobligated to maintain confidentiality with regard to the reporter of an incident.\nFurther details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good\nfaith may face temporary or permanent repercussions as determined by other\nmembers of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,\navailable at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see\nhttps://www.contributor-covenant.org/faq\n"
  },
  {
    "path": "LICENSE",
    "content": "Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "README.md",
    "content": "RecyclerView Animators\n======================\n<p align=\"center\">\n  <img src=\"art/logo.jpg\" width=\"80%\">\n</p>\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-recyclerview--animators-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1327)\n[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/jp.wasabeef/recyclerview-animators/badge.svg)](https://search.maven.org/artifact/jp.wasabeef/recyclerview-animators)\n\nRecyclerView Animators is an Android library that allows developers to easily create RecyclerView with animations.\n\nPlease feel free to use this.\n\n# Features\n\n* Animate addition and removal of [`ItemAnimator`](#itemanimator-1)\n* Appearance animations for items in [`RecyclerView.Adapter`](#recyclerviewadapter)\n\n# Demo\n\n### ItemAnimator\n<img src=\"art/demo.gif\" width=\"32%\"> <img src=\"art/demo2.gif\" width=\"32%\"> <img src=\"art/demo3.gif\" width=\"32%\">\n\n### Adapters\n<img src=\"art/demo4.gif\" width=\"32%\"> <img src=\"art/demo5.gif\" width=\"32%\">\n\n# How do I use it?\n\n## Setup\n\n#### Gradle\n\nOn your module's `build.gradle` file add this implementation statement to the `dependencies` section:\n\n```groovy\ndependencies {\n  // Kotlin\n  implementation 'jp.wasabeef:recyclerview-animators:4.0.2'\n}\n```\n\nAlso make sure that the `repositories` section includes not only `\"mavenCentral()\"` but also a `maven` section with the `\"google()\"` endpoint. \n\n```\nrepositories {\n  google()\n  mavenCentral()\n  jcenter()\n}\n```\n\n## ItemAnimator\n### Step 1\n\nSet RecyclerView ItemAnimator.\n\n```kotlin\nval recyclerView = findViewById<RecyclerView>(R.id.list)\nrecyclerView.itemAnimator = SlideInLeftAnimator()\n```\n\n```kotlin\nval recyclerView = findViewById<RecyclerView>(R.id.list)\nrecyclerView.itemAnimator = SlideInUpAnimator(OvershootInterpolator(1f))\n```\n\n## Step 2\nPlease use the following  \n`notifyItemChanged(int)`  \n`notifyItemInserted(int)`  \n`notifyItemRemoved(int)`  \n`notifyItemRangeChanged(int, int)`  \n`notifyItemRangeInserted(int, int)`  \n`notifyItemRangeRemoved(int, int)`  \n\n> If you want your animations to work, do not rely on calling `notifyDataSetChanged()`; \n> as it is the RecyclerView's default behavior, animations are not triggered to start inside this method.\n\n```kotlin\nfun remove(position: Int) {\n  dataSet.removeAt(position)\n  notifyItemRemoved(position)\n}\n\nfun add(text: String, position: Int) {\n  dataSet.add(position, text)\n  notifyItemInserted(position)\n}\n```\n\n### Advanced Step 3\n\nYou can change the durations.\n\n```kotlin\nrecyclerView.itemAnimator?.apply {\n  addDuration = 1000\n  removeDuration = 100\n  moveDuration = 1000\n  changeDuration = 100\n}\n```\n\n### Advanced Step 4\n\nChange the interpolator.\n\n```kotlin\nrecyclerView.itemAnimator = SlideInLeftAnimator().apply {\n  setInterpolator(OvershootInterpolator())\n}\n```\n\n### Advanced Step 5\n\nBy implementing AnimateViewHolder, you can override preset animation.\nSo, custom animation can be set depending on view holder.\n\n```kotlin\nclass MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView), AnimateViewHolder {\n\n  override fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    // do something\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder, listener: ViewPropertyAnimatorListener) {\n    itemView.animate().apply {\n      translationY(-itemView.height * 0.3f)\n      alpha(0f)\n      duration = 300\n      setListener(listener)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    itemView.setTranslationY(-itemView.height * 0.3f)\n    itemView.setAlpha(0f)\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder, listener: ViewPropertyAnimatorListener) {\n    itemView.animate().apply {\n      translationY(0f)\n      alpha(1f)\n      duration = 300\n      setListener(listener)\n    }.start()\n  }\n}\n```\n\n### Animators\n\n#### Cool\n`LandingAnimator`\n\n##### Scale\n`ScaleInAnimator`, `ScaleInTopAnimator`, `ScaleInBottomAnimator`  \n`ScaleInLeftAnimator`, `ScaleInRightAnimator`\n\n\n##### Fade\n`FadeInAnimator`, `FadeInDownAnimator`, `FadeInUpAnimator`  \n`FadeInLeftAnimator`, `FadeInRightAnimator`\n\n##### Flip\n`FlipInTopXAnimator`, `FlipInBottomXAnimator`  \n`FlipInLeftYAnimator`, `FlipInRightYAnimator`\n\n##### Slide\n`SlideInLeftAnimator`, `SlideInRightAnimator`, `OvershootInLeftAnimator`, `OvershootInRightAnimator`  \n`SlideInUpAnimator`, `SlideInDownAnimator`\n\n## RecyclerView.Adapter\n### Step 1\n\nSet RecyclerView ItemAnimator.\n\n```kotlin\nval recyclerView = findViewById<RecyclerView>(R.id.list)\nrecyclerView.adapter = AlphaInAnimationAdapter(MyAdapter())\n```\n\n#### Java\n```java\nRecyclerView recyclerView = findViewById(R.id.list);\nrecyclerView.setAdapter(new AlphaInAnimationAdapter(MyAdapter());\n```\n\n### Advanced Step 2\n\n```kotlin\nrecyclerView.adapter = AlphaInAnimationAdapter(MyAdapter()).apply {\n  // Change the durations.\n  setDuration(1000)\n  // Change the interpolator.\n  setInterpolator(vershootInterpolator())\n  // Disable the first scroll mode.\n  setFirstOnly(false)\n}\n```\n\n#### Java\n```java\nAlphaInAnimationAdapter alphaInAnimationAdapter = new AlphaInAnimationAdapter(new MyAdapter());\nalphaInAnimationAdapter.setDuration(1000);\nalphaInAnimationAdapter.setInterpolator(new OvershootInterpolator());\nalphaInAnimationAdapter.setFirstOnly(false);\n```\n\n### Advanced Step 3\n\nMultiple Animations\n\n```kotlin\nval alphaAdapter = AlphaInAnimationAdapter(MyAdapter())\nrecyclerView.adapter = ScaleInAnimationAdapter(alphaAdapter)\n```\n\n#### Java\n```java\nrecyclerView.setAdapter(new ScaleInAnimationAdapter(alphaInAnimationAdapter));\n```\n\n### Adapters\n\n#### Alpha\n`AlphaInAnimationAdapter`\n\n#### Scale\n`ScaleInAnimationAdapter`\n\n#### Slide\n`SlideInBottomAnimationAdapter`  \n`SlideInRightAnimationAdapter`, `SlideInLeftAnimationAdapter`\n\nApplications using RecyclerView Animators\n---\n\nPlease [ping](mailto:dadadada.chop@gmail.com) me or send a pull request if you would like to be added here.\n\nIcon | Application\n------------ | -------------\n<img src=\"https://play-lh.googleusercontent.com/6zKH_uQY1bxCwXL4DLo_uoFEOXdShi3BgmN6XRHlaJ-oA1svmq6y1PZkmO50nWQn2Lg=s180-rw\" width=\"48\" height=\"48\" /> | [Ameba Ownd](https://play.google.com/store/apps/details?id=jp.co.cyberagent.madrid)\n<img src=\"https://lh3.googleusercontent.com/DHtrq5MZQ6aYGbmUSB8WNiOv-Oz9R4TyMCnzzYSjIqT3earlej7eq5DUudnN0bhSOeg=s180-rw\" width=\"48\" height=\"48\" /> | [QuitNow!](https://play.google.com/store/apps/details?id=com.EAGINsoftware.dejaloYa)\n<img src=\"https://lh3.googleusercontent.com/yFhps2nQ3q7QcpqZhMWYP5_ltMWJekX2eOiE0oWORUsP8CiwWkRtRlxVgiRtCZXUdQ=s180-rw\" width=\"48\" height=\"48\" /> | [AbemaTV](https://play.google.com/store/apps/details?id=tv.abema)\n<img src=\"https://lh3.googleusercontent.com/S8r0TL8pJ8PGWh_IOkULOHY3MhWvv1LSAOZ3uWJXwpfRq7icS79cPrqH8R5MeXWgAOo=s180-rw\" width=\"48\" height=\"48\" /> | [CL](https://play.google.com/store/apps/details?id=com.cllive)\n\nDeveloped By\n-------\nDaichi Furiya (Wasabeef) - <dadadada.chop@gmail.com>\n\n<a href=\"https://twitter.com/wasabeef_jp\">\n<img alt=\"Follow me on Twitter\"\nsrc=\"https://raw.githubusercontent.com/wasabeef/art/master/twitter.png\" width=\"75\"/>\n</a>\n\nContributions\n-------\n\nAny contributions are welcome!\n\nContributers\n-------\n\n* [craya1982](https://github.com/craya1982)\n\nThanks\n-------\n\n* Inspired by `AndroidViewAnimations` in [daimajia](https://github.com/daimajia).\n\nLicense\n-------\n\n    Copyright 2020 Daichi Furiya / Wasabeef\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n"
  },
  {
    "path": "animators/build.gradle",
    "content": "apply plugin: 'com.android.library'\napply plugin: 'kotlin-android'\n\nandroid {\n  compileSdkVersion COMPILE_SDK_VERSION as int\n\n  defaultConfig {\n    minSdkVersion MIN_SDK_VERSION as int\n    targetSdkVersion TARGET_SDK_VERSION as int\n  }\n}\n\ndependencies {\n  implementation \"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version\"\n  implementation \"androidx.recyclerview:recyclerview:1.1.0\"\n}\n\next {\n  bintrayRepo = 'maven'\n  bintrayName = 'recyclerview-animators'\n  bintrayUserOrg = 'wasabeef'\n  publishedGroupId = 'jp.wasabeef'\n  libraryName = 'recyclerview-animators'\n  artifact = 'recyclerview-animators'\n  libraryDescription = 'Which provides simple Item animations to RecyclerView items'\n  siteUrl = 'https://github.com/wasabeef/recyclerview-animators'\n  gitUrl = 'https://github.com/wasabeef/recyclerview-animators.git'\n  issueUrl = 'https://github.com/wasabeef/recyclerview-animators/issues'\n  libraryVersion = VERSION_NAME\n  developerId = 'wasabeef'\n  developerName = 'Wasabeef'\n  developerEmail = 'dadadada.chop@gmail.com'\n  licenseName = 'The Apache Software License, Version 2.0'\n  licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'\n  allLicenses = [\"Apache-2.0\"]\n}\n\n// TODO: Close JCenter on May 1st https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/\n// apply from: 'https://gist.githubusercontent.com/wasabeef/cf14805bee509baf7461974582f17d26/raw/bintray-v1.gradle'\n// apply from: 'https://gist.githubusercontent.com/wasabeef/cf14805bee509baf7461974582f17d26/raw/install-v1.gradle'\n\napply from: 'https://gist.githubusercontent.com/wasabeef/2f2ae8d97b429e7d967128125dc47854/raw/maven-central-v1.gradle'"
  },
  {
    "path": "animators/src/androidTest/java/jp/wasabeef/recyclerview/ApplicationTest.java",
    "content": "package jp.wasabeef.recyclerview;\n\nimport android.app.Application;\nimport android.test.ApplicationTestCase;\n\n/**\n * <a href=\"http://d.android.com/tools/testing/testing_android.html\">Testing Fundamentals</a>\n */\npublic class ApplicationTest extends ApplicationTestCase<Application> {\n\n  public ApplicationTest() {\n    super(Application.class);\n  }\n}"
  },
  {
    "path": "animators/src/main/AndroidManifest.xml",
    "content": "<manifest package=\"jp.wasabeef.recyclerview\" />\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/adapters/AlphaInAnimationAdapter.kt",
    "content": "package jp.wasabeef.recyclerview.adapters\n\nimport android.animation.Animator\nimport android.animation.ObjectAnimator\nimport android.view.View\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class AlphaInAnimationAdapter @JvmOverloads constructor(\n  adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>,\n  private val from: Float = DEFAULT_ALPHA_FROM\n) : AnimationAdapter(adapter) {\n\n  override fun getAnimators(view: View): Array<Animator> =\n    arrayOf(ObjectAnimator.ofFloat(view, \"alpha\", from, 1f))\n\n  companion object {\n    private const val DEFAULT_ALPHA_FROM = 0f\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/adapters/AnimationAdapter.kt",
    "content": "package jp.wasabeef.recyclerview.adapters\n\nimport android.animation.Animator\nimport android.view.View\nimport android.view.ViewGroup\nimport android.view.animation.Interpolator\nimport android.view.animation.LinearInterpolator\nimport androidx.recyclerview.widget.RecyclerView\nimport androidx.recyclerview.widget.RecyclerView.AdapterDataObserver\nimport jp.wasabeef.recyclerview.internal.ViewHelper.clear\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nabstract class AnimationAdapter(wrapped: RecyclerView.Adapter<out RecyclerView.ViewHolder>) :\n  RecyclerView.Adapter<RecyclerView.ViewHolder>() {\n\n  private var duration = 300\n  private var interpolator: Interpolator = LinearInterpolator()\n  private var lastPosition = -1\n  private var isFirstOnly = true\n\n  protected var adapter: RecyclerView.Adapter<RecyclerView.ViewHolder>\n\n  init {\n    @Suppress(\"UNCHECKED_CAST\")\n    this.adapter = wrapped as RecyclerView.Adapter<RecyclerView.ViewHolder>\n    super.setHasStableIds(this.adapter.hasStableIds())\n  }\n\n  override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {\n    return adapter.onCreateViewHolder(parent, viewType)\n  }\n\n  override fun registerAdapterDataObserver(observer: AdapterDataObserver) {\n    super.registerAdapterDataObserver(observer)\n    adapter.registerAdapterDataObserver(observer)\n  }\n\n  override fun unregisterAdapterDataObserver(observer: AdapterDataObserver) {\n    super.unregisterAdapterDataObserver(observer)\n    adapter.unregisterAdapterDataObserver(observer)\n  }\n\n  override fun onAttachedToRecyclerView(recyclerView: RecyclerView) {\n    super.onAttachedToRecyclerView(recyclerView)\n    adapter.onAttachedToRecyclerView(recyclerView)\n  }\n\n  override fun onDetachedFromRecyclerView(recyclerView: RecyclerView) {\n    super.onDetachedFromRecyclerView(recyclerView)\n    adapter.onDetachedFromRecyclerView(recyclerView)\n  }\n\n  override fun onViewAttachedToWindow(holder: RecyclerView.ViewHolder) {\n    super.onViewAttachedToWindow(holder)\n    adapter.onViewAttachedToWindow(holder)\n  }\n\n  override fun onViewDetachedFromWindow(holder: RecyclerView.ViewHolder) {\n    super.onViewDetachedFromWindow(holder)\n    adapter.onViewDetachedFromWindow(holder)\n  }\n\n  override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {\n    adapter.onBindViewHolder(holder, position)\n    val adapterPosition = holder.adapterPosition\n    if (!isFirstOnly || adapterPosition > lastPosition) {\n      for (anim in getAnimators(holder.itemView)) {\n        anim.setDuration(duration.toLong()).start()\n        anim.interpolator = interpolator\n      }\n      lastPosition = adapterPosition\n    } else {\n      clear(holder.itemView)\n    }\n  }\n\n  override fun onViewRecycled(holder: RecyclerView.ViewHolder) {\n    adapter.onViewRecycled(holder)\n    super.onViewRecycled(holder)\n  }\n\n  override fun getItemCount(): Int {\n    return adapter.itemCount\n  }\n\n  fun setDuration(duration: Int) {\n    this.duration = duration\n  }\n\n  fun setInterpolator(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  fun setStartPosition(start: Int) {\n    lastPosition = start\n  }\n\n  protected abstract fun getAnimators(view: View): Array<Animator>\n  fun setFirstOnly(firstOnly: Boolean) {\n    isFirstOnly = firstOnly\n  }\n\n  override fun getItemViewType(position: Int): Int {\n    return adapter.getItemViewType(position)\n  }\n\n  val wrappedAdapter: RecyclerView.Adapter<RecyclerView.ViewHolder>\n    get() = adapter\n\n  override fun setHasStableIds(hasStableIds: Boolean) {\n    super.setHasStableIds(hasStableIds)\n    adapter.setHasStableIds(hasStableIds)\n  }\n\n  override fun getItemId(position: Int): Long {\n    return adapter.getItemId(position)\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/adapters/ScaleInAnimationAdapter.kt",
    "content": "package jp.wasabeef.recyclerview.adapters\n\nimport android.animation.Animator\nimport android.animation.ObjectAnimator\nimport android.view.View\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class ScaleInAnimationAdapter @JvmOverloads constructor(\n  adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>,\n  private val from: Float = DEFAULT_SCALE_FROM\n) : AnimationAdapter(adapter) {\n\n  override fun getAnimators(view: View): Array<Animator> {\n    val scaleX = ObjectAnimator.ofFloat(view, \"scaleX\", from, 1f)\n    val scaleY = ObjectAnimator.ofFloat(view, \"scaleY\", from, 1f)\n    return arrayOf(scaleX, scaleY)\n  }\n\n  companion object {\n    private const val DEFAULT_SCALE_FROM = .5f\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/adapters/SlideInBottomAnimationAdapter.kt",
    "content": "package jp.wasabeef.recyclerview.adapters\n\nimport android.animation.Animator\nimport android.animation.ObjectAnimator\nimport android.view.View\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInBottomAnimationAdapter(\n  adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>\n) : AnimationAdapter(adapter) {\n\n  override fun getAnimators(view: View): Array<Animator> = arrayOf(\n    ObjectAnimator.ofFloat(view, \"translationY\", view.measuredHeight.toFloat(), 0f)\n  )\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/adapters/SlideInLeftAnimationAdapter.kt",
    "content": "package jp.wasabeef.recyclerview.adapters\n\nimport android.animation.Animator\nimport android.animation.ObjectAnimator\nimport android.view.View\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInLeftAnimationAdapter(\n  adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>\n) : AnimationAdapter(adapter) {\n\n  override fun getAnimators(view: View): Array<Animator> = arrayOf(\n    ObjectAnimator.ofFloat(view, \"translationX\", -view.rootView.width.toFloat(), 0f)\n  )\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/adapters/SlideInRightAnimationAdapter.kt",
    "content": "package jp.wasabeef.recyclerview.adapters\n\nimport android.animation.Animator\nimport android.animation.ObjectAnimator\nimport android.view.View\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInRightAnimationAdapter(\n  adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>\n) : AnimationAdapter(adapter) {\n\n  override fun getAnimators(view: View): Array<Animator> = arrayOf(\n    ObjectAnimator.ofFloat(view, \"translationX\", view.rootView.width.toFloat(), 0f)\n  )\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/BaseItemAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.animation.Animator\nimport android.view.animation.DecelerateInterpolator\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\nimport androidx.recyclerview.widget.SimpleItemAnimator\nimport jp.wasabeef.recyclerview.animators.holder.AnimateViewHolder\nimport jp.wasabeef.recyclerview.internal.ViewHelper.clear\nimport java.util.ArrayList\nimport kotlin.math.abs\n\n/*\n* Copyright (C) 2021 Daichi Furiya / Wasabeef\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n*      http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*\n*/\nabstract class BaseItemAnimator : SimpleItemAnimator() {\n\n  private val pendingRemovals = ArrayList<RecyclerView.ViewHolder>()\n  private val pendingAdditions = ArrayList<RecyclerView.ViewHolder>()\n  private val pendingMoves = ArrayList<MoveInfo>()\n  private val pendingChanges = ArrayList<ChangeInfo>()\n  private val additionsList = ArrayList<ArrayList<RecyclerView.ViewHolder>>()\n  private val movesList = ArrayList<ArrayList<MoveInfo>>()\n  private val changesList = ArrayList<ArrayList<ChangeInfo>>()\n  protected var addAnimations = ArrayList<RecyclerView.ViewHolder>()\n  private val moveAnimations = ArrayList<RecyclerView.ViewHolder>()\n  protected var removeAnimations = ArrayList<RecyclerView.ViewHolder>()\n  private val changeAnimations = ArrayList<RecyclerView.ViewHolder>()\n  protected var interpolator: Interpolator = DecelerateInterpolator()\n\n  companion object {\n    private const val DEBUG = false\n  }\n\n  init {\n    supportsChangeAnimations = false\n  }\n\n  private class MoveInfo(\n    var holder: RecyclerView.ViewHolder,\n    var fromX: Int,\n    var fromY: Int,\n    var toX: Int,\n    var toY: Int\n  )\n\n  private class ChangeInfo private constructor(\n    oldHolder: RecyclerView.ViewHolder,\n    newHolder: RecyclerView.ViewHolder\n  ) {\n    var oldHolder: RecyclerView.ViewHolder? = oldHolder\n    var newHolder: RecyclerView.ViewHolder? = newHolder\n    var fromX = 0\n    var fromY = 0\n    var toX = 0\n    var toY = 0\n\n    constructor(\n      oldHolder: RecyclerView.ViewHolder,\n      newHolder: RecyclerView.ViewHolder,\n      fromX: Int,\n      fromY: Int,\n      toX: Int,\n      toY: Int\n    ) : this(oldHolder, newHolder) {\n      this.fromX = fromX\n      this.fromY = fromY\n      this.toX = toX\n      this.toY = toY\n    }\n\n    override fun toString(): String {\n      return (\"ChangeInfo{\" + \"oldHolder=\" + oldHolder + \", newHolder=\" + newHolder + \", fromX=\"\n        + fromX + \", fromY=\" + fromY + \", toX=\" + toX + \", toY=\" + toY + '}')\n    }\n  }\n\n  override fun runPendingAnimations() {\n    val removalsPending = pendingRemovals.isNotEmpty()\n    val movesPending = pendingMoves.isNotEmpty()\n    val changesPending = pendingChanges.isNotEmpty()\n    val additionsPending = pendingAdditions.isNotEmpty()\n    if (!removalsPending && !movesPending && !additionsPending && !changesPending) {\n      // nothing to animate\n      return\n    }\n    // First, remove stuff\n    for (holder in pendingRemovals) {\n      doAnimateRemove(holder)\n    }\n    pendingRemovals.clear()\n    // Next, move stuff\n    if (movesPending) {\n      val moves = ArrayList(pendingMoves)\n      movesList.add(moves)\n      pendingMoves.clear()\n      val mover = Runnable {\n        val removed = movesList.remove(moves)\n        if (!removed) {\n          // already canceled\n          return@Runnable\n        }\n        for (moveInfo in moves) {\n          animateMoveImpl(\n            moveInfo.holder, moveInfo.fromX, moveInfo.fromY, moveInfo.toX,\n            moveInfo.toY\n          )\n        }\n        moves.clear()\n      }\n      if (removalsPending) {\n        val view = moves[0].holder.itemView\n        view.postOnAnimationDelayed(mover, removeDuration)\n      } else {\n        mover.run()\n      }\n    }\n    // Next, change stuff, to run in parallel with move animations\n    if (changesPending) {\n      val changes = ArrayList(pendingChanges)\n      changesList.add(changes)\n      pendingChanges.clear()\n      val changer = Runnable {\n        val removed = changesList.remove(changes)\n        if (!removed) {\n          // already canceled\n          return@Runnable\n        }\n        for (change in changes) {\n          animateChangeImpl(change)\n        }\n        changes.clear()\n      }\n      if (removalsPending) {\n        val holder = changes[0].oldHolder\n        holder!!.itemView.postOnAnimationDelayed(changer, removeDuration)\n      } else {\n        changer.run()\n      }\n    }\n    // Next, add stuff\n    if (additionsPending) {\n      val additions = ArrayList(pendingAdditions)\n      additionsList.add(additions)\n      pendingAdditions.clear()\n      val adder = Runnable {\n        val removed = additionsList.remove(additions)\n        if (!removed) {\n          // already canceled\n          return@Runnable\n        }\n        for (holder in additions) {\n          doAnimateAdd(holder)\n        }\n        additions.clear()\n      }\n      if (removalsPending || movesPending || changesPending) {\n        val removeDuration = if (removalsPending) removeDuration else 0\n        val moveDuration = if (movesPending) moveDuration else 0\n        val changeDuration = if (changesPending) changeDuration else 0\n        val totalDelay = removeDuration + moveDuration.coerceAtLeast(changeDuration)\n        val view = additions[0].itemView\n        view.postOnAnimationDelayed(adder, totalDelay)\n      } else {\n        adder.run()\n      }\n    }\n  }\n\n  protected open fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder) {}\n\n  protected open fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {}\n\n  protected abstract fun animateRemoveImpl(holder: RecyclerView.ViewHolder)\n\n  protected abstract fun animateAddImpl(holder: RecyclerView.ViewHolder)\n\n  private fun preAnimateRemove(holder: RecyclerView.ViewHolder) {\n    clear(holder.itemView)\n    if (holder is AnimateViewHolder) {\n      holder.preAnimateRemoveImpl(holder)\n    } else {\n      preAnimateRemoveImpl(holder)\n    }\n  }\n\n  private fun preAnimateAdd(holder: RecyclerView.ViewHolder) {\n    clear(holder.itemView)\n    if (holder is AnimateViewHolder) {\n      holder.preAnimateAddImpl(holder)\n    } else {\n      preAnimateAddImpl(holder)\n    }\n  }\n\n  private fun doAnimateRemove(holder: RecyclerView.ViewHolder) {\n    if (holder is AnimateViewHolder) {\n      holder.animateRemoveImpl(holder, DefaultRemoveAnimatorListener(holder))\n    } else {\n      animateRemoveImpl(holder)\n    }\n    removeAnimations.add(holder)\n  }\n\n  private fun doAnimateAdd(holder: RecyclerView.ViewHolder) {\n    if (holder is AnimateViewHolder) {\n      holder.animateAddImpl(holder, DefaultAddAnimatorListener(holder))\n    } else {\n      animateAddImpl(holder)\n    }\n    addAnimations.add(holder)\n  }\n\n  override fun animateRemove(holder: RecyclerView.ViewHolder): Boolean {\n    endAnimation(holder)\n    preAnimateRemove(holder)\n    pendingRemovals.add(holder)\n    return true\n  }\n\n  protected fun getRemoveDelay(holder: RecyclerView.ViewHolder): Long {\n    return abs(holder.oldPosition * removeDuration / 4)\n  }\n\n  override fun animateAdd(holder: RecyclerView.ViewHolder): Boolean {\n    endAnimation(holder)\n    preAnimateAdd(holder)\n    pendingAdditions.add(holder)\n    return true\n  }\n\n  protected fun getAddDelay(holder: RecyclerView.ViewHolder): Long {\n    return abs(holder.adapterPosition * addDuration / 4)\n  }\n\n  override fun animateMove(\n    holder: RecyclerView.ViewHolder,\n    fromX: Int,\n    fromY: Int,\n    toX: Int,\n    toY: Int\n  ): Boolean {\n    var fX = fromX\n    var fY = fromY\n    val view = holder.itemView\n    fX += holder.itemView.translationX.toInt()\n    fY += holder.itemView.translationY.toInt()\n    endAnimation(holder)\n    val deltaX = toX - fX\n    val deltaY = toY - fY\n    if (deltaX == 0 && deltaY == 0) {\n      dispatchMoveFinished(holder)\n      return false\n    }\n    if (deltaX != 0) {\n      view.translationX = -deltaX.toFloat()\n    }\n    if (deltaY != 0) {\n      view.translationY = -deltaY.toFloat()\n    }\n    pendingMoves.add(MoveInfo(holder, fX, fY, toX, toY))\n    return true\n  }\n\n  private fun animateMoveImpl(\n    holder: RecyclerView.ViewHolder,\n    fromX: Int,\n    fromY: Int,\n    toX: Int,\n    toY: Int\n  ) {\n    val view = holder.itemView\n    val deltaX = toX - fromX\n    val deltaY = toY - fromY\n    if (deltaX != 0) {\n      view.animate().translationX(0f)\n    }\n    if (deltaY != 0) {\n      view.animate().translationY(0f)\n    }\n    // TODO: make EndActions end listeners instead, since end actions aren't called when\n    // vpas are canceled (and can't end them. why?)\n    // need listener functionality in VPACompat for this. Ick.\n    moveAnimations.add(holder)\n    val animation = view.animate()\n    animation.setDuration(moveDuration).setListener(object : AnimatorListenerAdapter() {\n      override fun onAnimationStart(animator: Animator) {\n        dispatchMoveStarting(holder)\n      }\n\n      override fun onAnimationCancel(animator: Animator) {\n        if (deltaX != 0) {\n          view.translationX = 0f\n        }\n        if (deltaY != 0) {\n          view.translationY = 0f\n        }\n      }\n\n      override fun onAnimationEnd(animator: Animator) {\n        animation.setListener(null)\n        dispatchMoveFinished(holder)\n        moveAnimations.remove(holder)\n        dispatchFinishedWhenDone()\n      }\n    }).start()\n  }\n\n  override fun animateChange(\n    oldHolder: RecyclerView.ViewHolder, newHolder: RecyclerView.ViewHolder, fromX: Int, fromY: Int,\n    toX: Int, toY: Int\n  ): Boolean {\n    if (oldHolder === newHolder) {\n      // Don't know how to run change animations when the same view holder is re-used.\n      // run a move animation to handle position changes.\n      return animateMove(oldHolder, fromX, fromY, toX, toY)\n    }\n    val prevTranslationX = oldHolder.itemView.translationX\n    val prevTranslationY = oldHolder.itemView.translationY\n    val prevAlpha = oldHolder.itemView.alpha\n    endAnimation(oldHolder)\n    val deltaX = (toX - fromX - prevTranslationX).toInt()\n    val deltaY = (toY - fromY - prevTranslationY).toInt()\n    // recover prev translation state after ending animation\n    oldHolder.itemView.translationX = prevTranslationX\n    oldHolder.itemView.translationY = prevTranslationY\n    oldHolder.itemView.alpha = prevAlpha\n    // carry over translation values\n    endAnimation(newHolder)\n    newHolder.itemView.translationX = -deltaX.toFloat()\n    newHolder.itemView.translationY = -deltaY.toFloat()\n    newHolder.itemView.alpha = 0f\n    pendingChanges.add(ChangeInfo(oldHolder, newHolder, fromX, fromY, toX, toY))\n    return true\n  }\n\n  private fun animateChangeImpl(changeInfo: ChangeInfo) {\n    val holder = changeInfo.oldHolder\n    val view = holder?.itemView\n    val newHolder = changeInfo.newHolder\n    val newView = newHolder?.itemView\n    if (view != null) {\n      if (changeInfo.oldHolder != null) changeAnimations.add(changeInfo.oldHolder!!)\n      val oldViewAnim = view.animate().setDuration(\n        changeDuration\n      )\n      oldViewAnim.translationX(changeInfo.toX - changeInfo.fromX.toFloat())\n      oldViewAnim.translationY(changeInfo.toY - changeInfo.fromY.toFloat())\n      oldViewAnim.alpha(0f).setListener(object : AnimatorListenerAdapter() {\n        override fun onAnimationStart(animator: Animator) {\n          dispatchChangeStarting(changeInfo.oldHolder, true)\n        }\n\n        override fun onAnimationEnd(animator: Animator) {\n          oldViewAnim.setListener(null)\n          view.alpha = 1f\n          view.translationX = 0f\n          view.translationY = 0f\n          dispatchChangeFinished(changeInfo.oldHolder, true)\n          if (changeInfo.oldHolder != null) changeAnimations.remove(changeInfo.oldHolder!!)\n          dispatchFinishedWhenDone()\n        }\n      }).start()\n    }\n    if (newView != null) {\n      if (changeInfo.newHolder != null) changeAnimations.add(changeInfo.newHolder!!)\n      val newViewAnimation = newView.animate()\n      newViewAnimation.translationX(0f).translationY(0f).setDuration(changeDuration).alpha(1f)\n        .setListener(object : AnimatorListenerAdapter() {\n          override fun onAnimationStart(animator: Animator) {\n            dispatchChangeStarting(changeInfo.newHolder, false)\n          }\n\n          override fun onAnimationEnd(animator: Animator) {\n            newViewAnimation.setListener(null)\n            newView.alpha = 1f\n            newView.translationX = 0f\n            newView.translationY = 0f\n            dispatchChangeFinished(changeInfo.newHolder, false)\n            if (changeInfo.newHolder != null) changeAnimations.remove(changeInfo.newHolder!!)\n            dispatchFinishedWhenDone()\n          }\n        }).start()\n    }\n  }\n\n  private fun endChangeAnimation(infoList: MutableList<ChangeInfo>, item: RecyclerView.ViewHolder) {\n    for (i in infoList.indices.reversed()) {\n      val changeInfo = infoList[i]\n      if (endChangeAnimationIfNecessary(changeInfo, item)) {\n        if (changeInfo.oldHolder == null && changeInfo.newHolder == null) {\n          infoList.remove(changeInfo)\n        }\n      }\n    }\n  }\n\n  private fun endChangeAnimationIfNecessary(changeInfo: ChangeInfo) {\n    if (changeInfo.oldHolder != null) {\n      endChangeAnimationIfNecessary(changeInfo, changeInfo.oldHolder)\n    }\n    if (changeInfo.newHolder != null) {\n      endChangeAnimationIfNecessary(changeInfo, changeInfo.newHolder)\n    }\n  }\n\n  private fun endChangeAnimationIfNecessary(\n    changeInfo: ChangeInfo,\n    item: RecyclerView.ViewHolder?\n  ): Boolean {\n    var oldItem = false\n    when {\n      changeInfo.newHolder === item -> {\n        changeInfo.newHolder = null\n      }\n      changeInfo.oldHolder === item -> {\n        changeInfo.oldHolder = null\n        oldItem = true\n      }\n      else -> {\n        return false\n      }\n    }\n    item!!.itemView.alpha = 1f\n    item.itemView.translationX = 0f\n    item.itemView.translationY = 0f\n    dispatchChangeFinished(item, oldItem)\n    return true\n  }\n\n  override fun endAnimation(item: RecyclerView.ViewHolder) {\n    val view = item.itemView\n    // this will trigger end callback which should set properties to their target values.\n    view.animate().cancel()\n    // TODO if some other animations are chained to end, how do we cancel them as well?\n    for (i in pendingMoves.indices.reversed()) {\n      val moveInfo = pendingMoves[i]\n      if (moveInfo.holder === item) {\n        view.translationY = 0f\n        view.translationX = 0f\n        dispatchMoveFinished(item)\n        pendingMoves.removeAt(i)\n      }\n    }\n    endChangeAnimation(pendingChanges, item)\n    if (pendingRemovals.remove(item)) {\n      clear(item.itemView)\n      dispatchRemoveFinished(item)\n    }\n    if (pendingAdditions.remove(item)) {\n      clear(item.itemView)\n      dispatchAddFinished(item)\n    }\n    for (i in changesList.indices.reversed()) {\n      val changes = changesList[i]\n      endChangeAnimation(changes, item)\n      if (changes.isEmpty()) {\n        changesList.removeAt(i)\n      }\n    }\n    for (i in movesList.indices.reversed()) {\n      val moves = movesList[i]\n      for (j in moves.indices.reversed()) {\n        val moveInfo = moves[j]\n        if (moveInfo.holder === item) {\n          view.translationY = 0f\n          view.translationX = 0f\n          dispatchMoveFinished(item)\n          moves.removeAt(j)\n          if (moves.isEmpty()) {\n            movesList.removeAt(i)\n          }\n          break\n        }\n      }\n    }\n    for (i in additionsList.indices.reversed()) {\n      val additions = additionsList[i]\n      if (additions.remove(item)) {\n        clear(item.itemView)\n        dispatchAddFinished(item)\n        if (additions.isEmpty()) {\n          additionsList.removeAt(i)\n        }\n      }\n    }\n\n    // animations should be ended by the cancel above.\n    check(!(removeAnimations.remove(item) && DEBUG)) { \"after animation is cancelled, item should not be in \" + \"mRemoveAnimations list\" }\n    check(!(addAnimations.remove(item) && DEBUG)) { \"after animation is cancelled, item should not be in \" + \"mAddAnimations list\" }\n    check(!(changeAnimations.remove(item) && DEBUG)) { \"after animation is cancelled, item should not be in \" + \"mChangeAnimations list\" }\n    check(!(moveAnimations.remove(item) && DEBUG)) { \"after animation is cancelled, item should not be in \" + \"mMoveAnimations list\" }\n    dispatchFinishedWhenDone()\n  }\n\n  override fun isRunning(): Boolean {\n    return (pendingAdditions.isNotEmpty() || pendingChanges.isNotEmpty() || pendingMoves.isNotEmpty()\n      || pendingRemovals.isNotEmpty() || moveAnimations.isNotEmpty() || removeAnimations.isNotEmpty()\n      || addAnimations.isNotEmpty() || changeAnimations.isNotEmpty() || movesList.isNotEmpty()\n      || additionsList.isNotEmpty() || changesList.isNotEmpty())\n  }\n\n  /**\n   * Check the state of currently pending and running animations. If there are none\n   * pending/running, call #dispatchAnimationsFinished() to notify any\n   * listeners.\n   */\n  private fun dispatchFinishedWhenDone() {\n    if (!isRunning) {\n      dispatchAnimationsFinished()\n    }\n  }\n\n  override fun endAnimations() {\n    var count = pendingMoves.size\n    for (i in count - 1 downTo 0) {\n      val item = pendingMoves[i]\n      val view = item.holder.itemView\n      view.translationY = 0f\n      view.translationX = 0f\n      dispatchMoveFinished(item.holder)\n      pendingMoves.removeAt(i)\n    }\n    count = pendingRemovals.size\n    for (i in count - 1 downTo 0) {\n      val item = pendingRemovals[i]\n      dispatchRemoveFinished(item)\n      pendingRemovals.removeAt(i)\n    }\n    count = pendingAdditions.size\n    for (i in count - 1 downTo 0) {\n      val item = pendingAdditions[i]\n      clear(item.itemView)\n      dispatchAddFinished(item)\n      pendingAdditions.removeAt(i)\n    }\n    count = pendingChanges.size\n    for (i in count - 1 downTo 0) {\n      endChangeAnimationIfNecessary(pendingChanges[i])\n    }\n    pendingChanges.clear()\n    if (!isRunning) {\n      return\n    }\n    var listCount = movesList.size\n    for (i in listCount - 1 downTo 0) {\n      val moves = movesList[i]\n      count = moves.size\n      for (j in count - 1 downTo 0) {\n        val moveInfo = moves[j]\n        val item = moveInfo.holder\n        val view = item.itemView\n        view.translationY = 0f\n        view.translationX = 0f\n        dispatchMoveFinished(moveInfo.holder)\n        moves.removeAt(j)\n        if (moves.isEmpty()) {\n          movesList.remove(moves)\n        }\n      }\n    }\n    listCount = additionsList.size\n    for (i in listCount - 1 downTo 0) {\n      val additions = additionsList[i]\n      count = additions.size\n      for (j in count - 1 downTo 0) {\n        val item = additions[j]\n        val view = item.itemView\n        view.alpha = 1f\n        dispatchAddFinished(item)\n        //this check prevent exception when removal already happened during finishing animation\n        if (j < additions.size) {\n          additions.removeAt(j)\n        }\n        if (additions.isEmpty()) {\n          additionsList.remove(additions)\n        }\n      }\n    }\n    listCount = changesList.size\n    for (i in listCount - 1 downTo 0) {\n      val changes = changesList[i]\n      count = changes.size\n      for (j in count - 1 downTo 0) {\n        endChangeAnimationIfNecessary(changes[j])\n        if (changes.isEmpty()) {\n          changesList.remove(changes)\n        }\n      }\n    }\n    cancelAll(removeAnimations)\n    cancelAll(moveAnimations)\n    cancelAll(addAnimations)\n    cancelAll(changeAnimations)\n    dispatchAnimationsFinished()\n  }\n\n  private fun cancelAll(viewHolders: List<RecyclerView.ViewHolder>) {\n    for (i in viewHolders.indices.reversed()) {\n      viewHolders[i].itemView.animate().cancel()\n    }\n  }\n\n  open class AnimatorListenerAdapter : Animator.AnimatorListener {\n    override fun onAnimationStart(animator: Animator) {}\n    override fun onAnimationEnd(animator: Animator) {}\n    override fun onAnimationCancel(animator: Animator) {}\n    override fun onAnimationRepeat(animator: Animator) {}\n  }\n\n  inner class DefaultAddAnimatorListener(var viewHolder: RecyclerView.ViewHolder) :\n    AnimatorListenerAdapter() {\n    override fun onAnimationStart(animator: Animator) {\n      dispatchAddStarting(viewHolder)\n    }\n\n    override fun onAnimationCancel(animator: Animator) {\n      clear(viewHolder.itemView)\n    }\n\n    override fun onAnimationEnd(animator: Animator) {\n      clear(viewHolder.itemView)\n      dispatchAddFinished(viewHolder)\n      addAnimations.remove(viewHolder)\n      dispatchFinishedWhenDone()\n    }\n  }\n\n  protected inner class DefaultRemoveAnimatorListener(var viewHolder: RecyclerView.ViewHolder) :\n    AnimatorListenerAdapter() {\n    override fun onAnimationStart(animator: Animator) {\n      dispatchRemoveStarting(viewHolder)\n    }\n\n    override fun onAnimationCancel(animator: Animator) {\n      clear(viewHolder.itemView)\n    }\n\n    override fun onAnimationEnd(animator: Animator) {\n      clear(viewHolder.itemView)\n      dispatchRemoveFinished(viewHolder)\n      removeAnimations.remove(viewHolder)\n      dispatchFinishedWhenDone()\n    }\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FadeInAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FadeInAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FadeInDownAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FadeInDownAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(-holder.itemView.height * .25f)\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationY = -holder.itemView.height * .25f\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(0f)\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FadeInLeftAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FadeInLeftAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(-holder.itemView.rootView.width * .25f)\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationX = -holder.itemView.rootView.width * .25f\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(0f)\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FadeInRightAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FadeInRightAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(holder.itemView.rootView.width * .25f)\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationX = holder.itemView.rootView.width * .25f\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(0f)\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FadeInUpAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FadeInUpAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(holder.itemView.height * .25f)\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationY = holder.itemView.height * .25f\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(0f)\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FlipInBottomXAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FlipInBottomXAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationX(-90f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.rotationX = -90f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationX(0f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FlipInLeftYAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FlipInLeftYAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationY(90f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.rotationY = 90f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationY(0f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FlipInRightYAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FlipInRightYAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationY(-90f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.rotationY = -90f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationY(0f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/FlipInTopXAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class FlipInTopXAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationX(90f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.rotationX = 90f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      rotationX(0f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/LandingAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class LandingAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      alpha(0f)\n        .scaleX(1.5f)\n        .scaleY(1.5f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.alpha = 0f\n    holder.itemView.scaleX = 1.5f\n    holder.itemView.scaleY = 1.5f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      alpha(1f)\n      scaleX(1f)\n      scaleY(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/OvershootInLeftAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.OvershootInterpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class OvershootInLeftAnimator : BaseItemAnimator {\n  private val tension: Float\n\n  constructor() {\n    tension = 2.0f\n  }\n\n  constructor(tension: Float) {\n    this.tension = tension\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(-holder.itemView.rootView.width.toFloat())\n      duration = removeDuration\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationX = -holder.itemView.rootView.width.toFloat()\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(0f)\n      duration = addDuration\n      setListener(DefaultAddAnimatorListener(holder))\n      interpolator = OvershootInterpolator(tension)\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/OvershootInRightAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.OvershootInterpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class OvershootInRightAnimator : BaseItemAnimator {\n  private val tension: Float\n\n  constructor() {\n    tension = 2.0f\n  }\n\n  constructor(tension: Float) {\n    this.tension = tension\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(holder.itemView.rootView.width.toFloat())\n      duration = removeDuration\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationX = holder.itemView.rootView.width.toFloat()\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(0f)\n      duration = addDuration\n      interpolator = OvershootInterpolator(tension)\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/ScaleInAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class ScaleInAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(0f)\n      scaleY(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.scaleX = 0f\n    holder.itemView.scaleY = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(1f)\n      scaleY(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/ScaleInBottomAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class ScaleInBottomAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotY = holder.itemView.height.toFloat()\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(0f)\n      scaleY(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotY = holder.itemView.height.toFloat()\n    holder.itemView.scaleX = 0f\n    holder.itemView.scaleY = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(1f)\n      scaleY(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/ScaleInLeftAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class ScaleInLeftAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotX = 0f\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(0f)\n      scaleY(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotX = 0f\n    holder.itemView.scaleX = 0f\n    holder.itemView.scaleY = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(1f)\n      scaleY(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/ScaleInRightAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class ScaleInRightAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotX = holder.itemView.width.toFloat()\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(0f)\n      scaleY(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotX = holder.itemView.width.toFloat()\n    holder.itemView.scaleX = 0f\n    holder.itemView.scaleY = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(1f)\n      scaleY(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/ScaleInTopAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class ScaleInTopAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotY = 0f\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(0f)\n      scaleY(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.pivotY = 0f\n    holder.itemView.scaleX = 0f\n    holder.itemView.scaleY = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      scaleX(1f)\n      scaleY(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/SlideInDownAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInDownAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(-holder.itemView.height.toFloat())\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationY = -holder.itemView.height.toFloat()\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(0f)\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/SlideInLeftAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInLeftAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(-holder.itemView.rootView.width.toFloat())\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationX = -holder.itemView.rootView.width.toFloat()\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(0f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/SlideInRightAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInRightAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(holder.itemView.rootView.width.toFloat())\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationX = holder.itemView.rootView.width.toFloat()\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationX(0f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/SlideInUpAnimator.kt",
    "content": "package jp.wasabeef.recyclerview.animators\n\nimport android.view.animation.Interpolator\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nopen class SlideInUpAnimator : BaseItemAnimator {\n  constructor()\n  constructor(interpolator: Interpolator) {\n    this.interpolator = interpolator\n  }\n\n  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(holder.itemView.height.toFloat())\n      alpha(0f)\n      duration = removeDuration\n      interpolator = interpolator\n      setListener(DefaultRemoveAnimatorListener(holder))\n      startDelay = getRemoveDelay(holder)\n    }.start()\n  }\n\n  override fun preAnimateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.translationY = holder.itemView.height.toFloat()\n    holder.itemView.alpha = 0f\n  }\n\n  override fun animateAddImpl(holder: RecyclerView.ViewHolder) {\n    holder.itemView.animate().apply {\n      translationY(0f)\n      alpha(1f)\n      duration = addDuration\n      interpolator = interpolator\n      setListener(DefaultAddAnimatorListener(holder))\n      startDelay = getAddDelay(holder)\n    }.start()\n  }\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/animators/holder/AnimateViewHolder.kt",
    "content": "package jp.wasabeef.recyclerview.animators.holder\n\nimport android.animation.Animator\nimport androidx.recyclerview.widget.RecyclerView\n\ninterface AnimateViewHolder {\n  fun preAnimateAddImpl(holder: RecyclerView.ViewHolder)\n  fun preAnimateRemoveImpl(holder: RecyclerView.ViewHolder)\n  fun animateAddImpl(holder: RecyclerView.ViewHolder, listener: Animator.AnimatorListener)\n  fun animateRemoveImpl(\n    holder: RecyclerView.ViewHolder,\n    listener: Animator.AnimatorListener\n  )\n}\n"
  },
  {
    "path": "animators/src/main/java/jp/wasabeef/recyclerview/internal/ViewHelper.kt",
    "content": "package jp.wasabeef.recyclerview.internal\n\nimport android.view.View\n\n/**\n * Copyright (C) 2021 Daichi Furiya / Wasabeef\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nobject ViewHelper {\n  @JvmStatic\n  fun clear(v: View) {\n    v.apply {\n      alpha = 1f\n      scaleY = 1f\n      scaleX = 1f\n      translationY = 0f\n      translationX = 0f\n      rotation = 0f\n      rotationY = 0f\n      rotationX = 0f\n      pivotY = v.measuredHeight / 2f\n      pivotX = v.measuredWidth / 2f\n      animate().setInterpolator(null).startDelay = 0\n    }\n  }\n}\n"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n  ext.kotlin_version = '1.3.72'\n  repositories {\n    google()\n    jcenter()\n  }\n  dependencies {\n    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'\n    classpath 'com.android.tools.build:gradle:4.2.0-beta04'\n    classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'\n    classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version\"\n  }\n}\n\nallprojects {\n  repositories {\n    google()\n    mavenCentral()\n    jcenter()\n  }\n  tasks.withType(Javadoc) {\n    enabled = false\n  }\n}\n"
  },
  {
    "path": "example/build.gradle",
    "content": "apply plugin: 'com.android.application'\napply plugin: 'kotlin-android'\n\nandroid {\n  compileSdkVersion COMPILE_SDK_VERSION as int\n\n  defaultConfig {\n    minSdkVersion MIN_SDK_VERSION as int\n    targetSdkVersion TARGET_SDK_VERSION as int\n    versionCode VERSION_CODE as int\n    versionName VERSION_NAME\n  }\n\n  // SigningConfigs\n  apply from: '../signingConfigs/debug.gradle', to: android\n\n  buildTypes {\n    debug {\n      debuggable true\n      signingConfig signingConfigs.debug\n    }\n    release {\n      debuggable false\n      zipAlignEnabled true\n    }\n  }\n}\n\nrepositories {\n  // maven { url = \"https://oss.sonatype.org/content/repositories/snapshots\"}\n}\n\ndependencies {\n  implementation project(':animators')\n  implementation \"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version\"\n  implementation \"androidx.appcompat:appcompat:1.2.0\"\n  implementation \"androidx.recyclerview:recyclerview:1.1.0\"\n  implementation 'com.squareup.picasso:picasso:2.8'\n}\n"
  },
  {
    "path": "example/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  xmlns:tools=\"http://schemas.android.com/tools\"\n  package=\"jp.wasabeef.example.recyclerview\"\n  >\n\n  <application\n    android:allowBackup=\"true\"\n    android:icon=\"@drawable/ic_launcher\"\n    android:label=\"@string/app_name\"\n    android:theme=\"@style/AppTheme\"\n    tools:ignore=\"GoogleAppIndexingWarning\"\n    >\n    <activity\n      android:name=\".MainActivity\"\n      android:label=\"@string/app_name\"\n      >\n      <intent-filter>\n        <action android:name=\"android.intent.action.MAIN\" />\n        <category android:name=\"android.intent.category.LAUNCHER\" />\n      </intent-filter>\n    </activity>\n\n    <activity android:name=\".AnimatorSampleActivity\" />\n    <activity android:name=\".AdapterSampleActivity\" />\n\n  </application>\n\n</manifest>\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/AdapterSampleActivity.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\nimport android.content.Context\nimport android.os.Bundle\nimport android.view.View\nimport android.view.animation.OvershootInterpolator\nimport android.widget.AdapterView\nimport android.widget.ArrayAdapter\nimport android.widget.Spinner\nimport androidx.appcompat.app.AppCompatActivity\nimport androidx.recyclerview.widget.GridLayoutManager\nimport androidx.recyclerview.widget.LinearLayoutManager\nimport androidx.recyclerview.widget.RecyclerView\nimport jp.wasabeef.recyclerview.adapters.AlphaInAnimationAdapter\nimport jp.wasabeef.recyclerview.adapters.AnimationAdapter\nimport jp.wasabeef.recyclerview.adapters.ScaleInAnimationAdapter\nimport jp.wasabeef.recyclerview.adapters.SlideInBottomAnimationAdapter\nimport jp.wasabeef.recyclerview.adapters.SlideInLeftAnimationAdapter\nimport jp.wasabeef.recyclerview.adapters.SlideInRightAnimationAdapter\nimport jp.wasabeef.recyclerview.animators.FadeInAnimator\n\n/**\n * Created by Daichi Furiya / Wasabeef on 2020/08/26.\n */\nclass AdapterSampleActivity : AppCompatActivity() {\n\n  internal enum class Type {\n    AlphaIn {\n      override operator fun get(context: Context): AnimationAdapter {\n        return AlphaInAnimationAdapter(MainAdapter(context, SampleData.LIST.toMutableList()))\n      }\n    },\n    ScaleIn {\n      override operator fun get(context: Context): AnimationAdapter {\n        return ScaleInAnimationAdapter(MainAdapter(context, SampleData.LIST.toMutableList()))\n      }\n    },\n    SlideInBottom {\n      override operator fun get(context: Context): AnimationAdapter {\n        return SlideInBottomAnimationAdapter(MainAdapter(context, SampleData.LIST.toMutableList()))\n      }\n    },\n    SlideInLeft {\n      override operator fun get(context: Context): AnimationAdapter {\n        return SlideInLeftAnimationAdapter(MainAdapter(context, SampleData.LIST.toMutableList()))\n      }\n    },\n    SlideInRight {\n      override operator fun get(context: Context): AnimationAdapter {\n        return SlideInRightAnimationAdapter(MainAdapter(context, SampleData.LIST.toMutableList()))\n      }\n    };\n\n    abstract operator fun get(context: Context): AnimationAdapter\n  }\n\n  override fun onCreate(savedInstanceState: Bundle?) {\n    super.onCreate(savedInstanceState)\n    setContentView(R.layout.activity_adapter_sample)\n\n    setSupportActionBar(findViewById(R.id.tool_bar))\n    supportActionBar?.setDisplayShowTitleEnabled(false)\n\n    val recyclerView = findViewById<RecyclerView>(R.id.list)\n    recyclerView.layoutManager = if (intent.getBooleanExtra(MainActivity.KEY_GRID, true)) {\n      GridLayoutManager(this, 2)\n    } else {\n      LinearLayoutManager(this)\n    }\n\n    val spinner = findViewById<Spinner>(R.id.spinner)\n    spinner.adapter = ArrayAdapter<String>(this, android.R.layout.simple_list_item_1).apply {\n      for (type in Type.values()) add(type.name)\n    }\n    spinner.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {\n      override fun onItemSelected(parent: AdapterView<*>, view: View, position: Int, id: Long) {\n        recyclerView.adapter = Type.values()[position][view.context].apply {\n          setFirstOnly(true)\n          setDuration(500)\n          setInterpolator(OvershootInterpolator(.5f))\n        }\n      }\n\n      override fun onNothingSelected(parent: AdapterView<*>) {\n        // no-op\n      }\n    }\n\n    recyclerView.itemAnimator = FadeInAnimator()\n    val adapter = MainAdapter(this, SampleData.LIST.toMutableList())\n    recyclerView.adapter = AlphaInAnimationAdapter(adapter).apply {\n      setFirstOnly(true)\n      setDuration(500)\n      setInterpolator(OvershootInterpolator(.5f))\n    }\n  }\n}\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/AnimatorSampleActivity.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\nimport android.os.Bundle\nimport android.view.View\nimport android.widget.AdapterView\nimport android.widget.ArrayAdapter\nimport android.widget.Spinner\nimport androidx.appcompat.app.AppCompatActivity\nimport androidx.recyclerview.widget.GridLayoutManager\nimport androidx.recyclerview.widget.LinearLayoutManager\nimport androidx.recyclerview.widget.RecyclerView\nimport jp.wasabeef.recyclerview.animators.BaseItemAnimator\nimport jp.wasabeef.recyclerview.animators.FadeInAnimator\nimport jp.wasabeef.recyclerview.animators.FadeInDownAnimator\nimport jp.wasabeef.recyclerview.animators.FadeInLeftAnimator\nimport jp.wasabeef.recyclerview.animators.FadeInRightAnimator\nimport jp.wasabeef.recyclerview.animators.FadeInUpAnimator\nimport jp.wasabeef.recyclerview.animators.FlipInBottomXAnimator\nimport jp.wasabeef.recyclerview.animators.FlipInLeftYAnimator\nimport jp.wasabeef.recyclerview.animators.FlipInRightYAnimator\nimport jp.wasabeef.recyclerview.animators.FlipInTopXAnimator\nimport jp.wasabeef.recyclerview.animators.LandingAnimator\nimport jp.wasabeef.recyclerview.animators.OvershootInLeftAnimator\nimport jp.wasabeef.recyclerview.animators.OvershootInRightAnimator\nimport jp.wasabeef.recyclerview.animators.ScaleInAnimator\nimport jp.wasabeef.recyclerview.animators.ScaleInBottomAnimator\nimport jp.wasabeef.recyclerview.animators.ScaleInLeftAnimator\nimport jp.wasabeef.recyclerview.animators.ScaleInRightAnimator\nimport jp.wasabeef.recyclerview.animators.ScaleInTopAnimator\nimport jp.wasabeef.recyclerview.animators.SlideInDownAnimator\nimport jp.wasabeef.recyclerview.animators.SlideInLeftAnimator\nimport jp.wasabeef.recyclerview.animators.SlideInRightAnimator\nimport jp.wasabeef.recyclerview.animators.SlideInUpAnimator\n\n/**\n * Created by Daichi Furiya / Wasabeef on 2020/08/26.\n */\nclass AnimatorSampleActivity : AppCompatActivity() {\n\n  internal enum class Type(val animator: BaseItemAnimator) {\n    FadeIn(FadeInAnimator()),\n    FadeInDown(FadeInDownAnimator()),\n    FadeInUp(FadeInUpAnimator()),\n    FadeInLeft(FadeInLeftAnimator()),\n    FadeInRight(FadeInRightAnimator()),\n    Landing(LandingAnimator()),\n    ScaleIn(ScaleInAnimator()),\n    ScaleInTop(ScaleInTopAnimator()),\n    ScaleInBottom(ScaleInBottomAnimator()),\n    ScaleInLeft(ScaleInLeftAnimator()),\n    ScaleInRight(ScaleInRightAnimator()),\n    FlipInTopX(FlipInTopXAnimator()),\n    FlipInBottomX(FlipInBottomXAnimator()),\n    FlipInLeftY(FlipInLeftYAnimator()),\n    FlipInRightY(FlipInRightYAnimator()),\n    SlideInLeft(SlideInLeftAnimator()),\n    SlideInRight(SlideInRightAnimator()),\n    SlideInDown(SlideInDownAnimator()),\n    SlideInUp(SlideInUpAnimator()),\n    OvershootInRight(OvershootInRightAnimator(1.0f)),\n    OvershootInLeft(OvershootInLeftAnimator(1.0f))\n  }\n\n  private val adapter = MainAdapter(this, SampleData.LIST.toMutableList())\n\n  override fun onCreate(savedInstanceState: Bundle?) {\n    super.onCreate(savedInstanceState)\n    setContentView(R.layout.activity_animator_sample)\n\n    setSupportActionBar(findViewById(R.id.tool_bar))\n    supportActionBar?.setDisplayShowTitleEnabled(false)\n\n    val recyclerView = findViewById<RecyclerView>(R.id.list)\n    recyclerView.apply {\n      itemAnimator = SlideInLeftAnimator()\n      adapter = this@AnimatorSampleActivity.adapter\n\n      layoutManager = if (intent.getBooleanExtra(MainActivity.KEY_GRID, true)) {\n        GridLayoutManager(context, 2)\n      } else {\n        LinearLayoutManager(context)\n      }\n    }\n\n\n    val spinner = findViewById<Spinner>(R.id.spinner)\n    val spinnerAdapter = ArrayAdapter<String>(this, android.R.layout.simple_list_item_1)\n    for (type in Type.values()) {\n      spinnerAdapter.add(type.name)\n    }\n    spinner.adapter = spinnerAdapter\n    spinner.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {\n      override fun onItemSelected(parent: AdapterView<*>, view: View, position: Int, id: Long) {\n        recyclerView.itemAnimator = Type.values()[position].animator\n        recyclerView.itemAnimator?.addDuration = 500\n        recyclerView.itemAnimator?.removeDuration = 500\n      }\n\n      override fun onNothingSelected(parent: AdapterView<*>) {\n        // no-op\n      }\n    }\n\n    findViewById<View>(R.id.add).setOnClickListener { adapter.add(\"newly added item\", 1) }\n\n    findViewById<View>(R.id.del).setOnClickListener { adapter.remove(1) }\n  }\n\n}\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/MainActivity.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\nimport android.content.Intent\nimport android.os.Bundle\nimport android.view.View\nimport androidx.appcompat.app.AppCompatActivity\nimport androidx.appcompat.widget.SwitchCompat\n\n/**\n * Created by Daichi Furiya / Wasabeef on 2020/08/26.\n */\nclass MainActivity : AppCompatActivity() {\n\n  companion object {\n    const val KEY_GRID = \"GRID\"\n  }\n\n  private var enabledGrid = false\n\n  override fun onCreate(savedInstanceState: Bundle?) {\n    super.onCreate(savedInstanceState)\n    setContentView(R.layout.activity_main)\n\n    findViewById<View>(R.id.btn_animator_sample).setOnClickListener {\n      startActivity(Intent(this, AnimatorSampleActivity::class.java).apply {\n        putExtra(KEY_GRID, enabledGrid)\n      })\n    }\n\n    findViewById<View>(R.id.btn_adapter_sample).setOnClickListener {\n      startActivity(Intent(this, AdapterSampleActivity::class.java).apply {\n        putExtra(KEY_GRID, enabledGrid)\n      })\n    }\n\n    findViewById<SwitchCompat>(R.id.grid).setOnCheckedChangeListener { _, isChecked ->\n      enabledGrid = isChecked\n    }\n  }\n}\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/MainAdapter.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\nimport android.content.Context\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport android.widget.ImageView\nimport android.widget.TextView\nimport androidx.recyclerview.widget.RecyclerView\nimport com.squareup.picasso.Picasso\n\n/**\n * Created by Daichi Furiya / Wasabeef on 2020/08/26.\n */\nclass MainAdapter(private val context: Context, private val dataSet: MutableList<String>) :\n  RecyclerView.Adapter<MainAdapter.ViewHolder>() {\n\n  override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {\n    val v = LayoutInflater.from(context).inflate(R.layout.layout_list_item, parent, false)\n    return ViewHolder(v)\n  }\n\n  override fun onBindViewHolder(holder: ViewHolder, position: Int) {\n    Picasso.get().load(R.drawable.chip).into(holder.image)\n    holder.text.text = dataSet[position]\n  }\n\n  override fun getItemCount(): Int {\n    return dataSet.size\n  }\n\n  fun remove(position: Int) {\n    dataSet.removeAt(position)\n    notifyItemRemoved(position)\n  }\n\n  fun add(text: String, position: Int) {\n    dataSet.add(position, text)\n    notifyItemInserted(position)\n  }\n\n  class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {\n\n    var image: ImageView = itemView.findViewById<View>(R.id.image) as ImageView\n    var text: TextView = itemView.findViewById<View>(R.id.text) as TextView\n\n  }\n}\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/MyAnimationAdapter.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\nimport androidx.recyclerview.widget.RecyclerView\nimport jp.wasabeef.recyclerview.adapters.AlphaInAnimationAdapter\n\nclass MyAnimatorAdapter constructor(\n  adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>,\n  from: Float = 0.5f\n) : AlphaInAnimationAdapter(adapter, from) {\n}\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/MyAnimator.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\nimport android.view.animation.Interpolator\nimport androidx.interpolator.view.animation.LinearOutSlowInInterpolator\nimport jp.wasabeef.recyclerview.animators.ScaleInRightAnimator\n\nclass MyAnimator(\n  interpolator: Interpolator = LinearOutSlowInInterpolator()\n) : ScaleInRightAnimator(interpolator) {\n}\n"
  },
  {
    "path": "example/src/main/java/jp/wasabeef/example/recyclerview/SampleData.kt",
    "content": "package jp.wasabeef.example.recyclerview\n\n/**\n * Created by Daichi Furiya / Wasabeef on 2020/08/26.\n */\ninterface SampleData {\n  companion object {\n    val LIST = arrayOf(\n      \"Apple\", \"Ball\", \"Camera\", \"Day\", \"Egg\", \"Foo\", \"Google\", \"Hello\",\n      \"Iron\", \"Japan\", \"Coke\", \"Dog\", \"Cat\", \"Yahoo\", \"Sony\", \"Canon\", \"Fujitsu\", \"USA\", \"Nexus\",\n      \"LINE\", \"Haskell\", \"C++\", \"Java\", \"Go\", \"Swift\", \"Objective-c\", \"Ruby\", \"PHP\", \"Bash\", \"ksh\",\n      \"C\", \"Groovy\", \"Kotlin\", \"Chip\", \"Japan\", \"U.S.A\", \"San Francisco\", \"Paris\", \"Tokyo\",\n      \"Silicon Valley\", \"London\", \"Spain\", \"China\", \"Taiwan\", \"Asia\", \"New York\", \"France\", \"Kyoto\",\n      \"Android\", \"Google\", \"iPhone\", \"iPad\", \"iPod\", \"Wasabeef\"\n    )\n  }\n}\n"
  },
  {
    "path": "example/src/main/res/layout/activity_adapter_sample.xml",
    "content": "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  android:orientation=\"vertical\"\n  android:layout_width=\"match_parent\"\n  android:layout_height=\"match_parent\"\n  >\n\n  <androidx.appcompat.widget.Toolbar\n    android:id=\"@+id/tool_bar\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:background=\"#3DC49D\"\n    android:minHeight=\"?attr/actionBarSize\"\n    >\n\n    <RelativeLayout\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      >\n\n      <Spinner\n        android:id=\"@+id/spinner\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        />\n\n    </RelativeLayout>\n\n  </androidx.appcompat.widget.Toolbar>\n\n  <androidx.recyclerview.widget.RecyclerView\n    android:id=\"@+id/list\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    />\n\n</LinearLayout>\n"
  },
  {
    "path": "example/src/main/res/layout/activity_animator_sample.xml",
    "content": "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  android:orientation=\"vertical\"\n  android:layout_width=\"match_parent\"\n  android:layout_height=\"match_parent\"\n  >\n\n  <androidx.appcompat.widget.Toolbar\n    android:id=\"@+id/tool_bar\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:background=\"#3DC49D\"\n    android:minHeight=\"?attr/actionBarSize\"\n    >\n\n    <RelativeLayout\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      >\n\n      <Spinner\n        android:id=\"@+id/spinner\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        />\n\n      <TextView\n        android:id=\"@+id/del\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentRight=\"true\"\n        android:layout_centerInParent=\"true\"\n        android:background=\"?attr/selectableItemBackground\"\n        android:padding=\"10dp\"\n        android:text=\"DEL\"\n        />\n\n      <TextView\n        android:id=\"@+id/add\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_centerInParent=\"true\"\n        android:layout_toLeftOf=\"@id/del\"\n        android:background=\"?attr/selectableItemBackground\"\n        android:padding=\"10dp\"\n        android:text=\"ADD\"\n        />\n\n    </RelativeLayout>\n\n  </androidx.appcompat.widget.Toolbar>\n\n  <androidx.recyclerview.widget.RecyclerView\n    android:id=\"@+id/list\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    />\n\n</LinearLayout>\n"
  },
  {
    "path": "example/src/main/res/layout/activity_main.xml",
    "content": "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  android:orientation=\"vertical\"\n  android:layout_width=\"match_parent\"\n  android:layout_height=\"match_parent\"\n  android:layout_centerInParent=\"true\"\n  >\n\n  <Button\n    android:id=\"@+id/btn_animator_sample\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:text=\"Animator Sample Activity\"\n    />\n\n  <Button\n    android:id=\"@+id/btn_adapter_sample\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:text=\"Adapter Sample Activity\"\n    />\n\n  <androidx.appcompat.widget.SwitchCompat\n    android:id=\"@+id/grid\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:layout_gravity=\"right\"\n    android:text=\"Set to Grid\"\n    />\n\n</LinearLayout>\n"
  },
  {
    "path": "example/src/main/res/layout/layout_list_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  android:orientation=\"vertical\"\n  android:layout_width=\"match_parent\"\n  android:layout_height=\"wrap_content\"\n  android:padding=\"20dp\"\n  >\n\n  <ImageView\n    android:id=\"@+id/image\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"100dp\"\n    android:background=\"#11000000\"\n    android:scaleType=\"centerCrop\"\n    />\n\n  <TextView\n    android:id=\"@+id/text\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:layout_gravity=\"center_horizontal\"\n    android:textSize=\"18sp\"\n    />\n\n</LinearLayout>"
  },
  {
    "path": "example/src/main/res/values/dimens.xml",
    "content": "<resources>\n  <!-- Default screen margins, per the Android Design guidelines. -->\n  <dimen name=\"activity_horizontal_margin\">16dp</dimen>\n  <dimen name=\"activity_vertical_margin\">16dp</dimen>\n</resources>\n"
  },
  {
    "path": "example/src/main/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n  <string name=\"app_name\">RecyclerViewAnimators</string>\n\n</resources>\n"
  },
  {
    "path": "example/src/main/res/values/styles.xml",
    "content": "<resources>\n\n  <!-- Base application theme. -->\n  <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light\">\n    <!-- Customize your theme here. -->\n    <item name=\"windowActionBar\">false</item>\n    <item name=\"windowNoTitle\">true</item>\n    <item name=\"android:windowNoTitle\">true</item>\n\n  </style>\n</resources>\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\norg.gradle.parallel=true\norg.gradle.daemon=true\norg.gradle.configureondemand=true\norg.gradle.caching=true\nandroid.enableBuildCache=true\nandroid.useAndroidX=true\nandroid.enableJetifier=false\n\n# Use R8 instead of ProGuard for code shrinking.\nandroid.enableR8=true\nandroid.enableR8.fullMode=true\n\nVERSION_NAME=4.0.1\nVERSION_CODE=401\nGROUP=jp.wasabeef\n\nCOMPILE_SDK_VERSION=30\nTARGET_SDK_VERSION=30\nMIN_SDK_VERSION=21\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\r\n@rem you may not use this file except in compliance with the License.\r\n@rem You may obtain a copy of the License at\r\n@rem\r\n@rem      https://www.apache.org/licenses/LICENSE-2.0\r\n@rem\r\n@rem Unless required by applicable law or agreed to in writing, software\r\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\r\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n@rem See the License for the specific language governing permissions and\r\n@rem limitations under the License.\r\n@rem\r\n\r\n@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\r\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':example', ':animators'\n"
  },
  {
    "path": "signingConfigs/debug.gradle",
    "content": "signingConfigs {\n  debug {\n    storeFile file(\"debug.keystore\")\n    storePassword \"android\"\n    keyAlias \"androiddebugkey\"\n    keyPassword \"android\"\n  }\n}\n\n// $ keytool -v -list -keystore\n// Certificate fingerprints:\n// MD5:  28:22:7C:A4:B9:2F:6E:C7:D5:58:62:48:EB:7E:82:C3\n// SHA1: 94:25:A9:50:9C:0E:AE:AA:00:37:5E:D6:71:E3:BC:ED:17:E5:0C:A3\n// SHA256: 04:92:39:09:3D:1C:B6:16:BE:55:58:A3:5F:3B:BB:CB:0B:E7:F1:DA:AA:26:C5:2D:BD:2F:44:CF:AE:47:CF:87"
  }
]