[
  {
    "path": ".gitignore",
    "content": "### Android ###\n# Built application files\n*.apk\n*.ap_\nreports/\npushlibrary*\n*.json\n\n# Media\nresources/\n*.ai\n*.psd\n*.svg\n*.mp4\n\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/\n\n# Keystore files\n*.jks\n\n### Android Patch ###\ngen-external-apklibs\n\n\n### Intellij ###\n# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm\n# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839\n\n## File-based project format:\n*.iws\n\n## Plugin-specific files:\n\n# IntelliJ\n/out/\n\n# mpeltonen/sbt-idea plugin\n.idea_modules/\n\n# JIRA plugin\natlassian-ide-plugin.xml\n\n# Crashlytics plugin (for Android Studio and IntelliJ)\ncom_crashlytics_export_strings.xml\ncrashlytics.properties\ncrashlytics-build.properties\nfabric.properties\n\n### Intellij Patch ###\n# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721\n\n# *.iml\n# modules.xml\n# *.ipr"
  },
  {
    "path": ".travis.yml",
    "content": "\nlanguage: android\njdk: openjdk8\n\nandroid:\n  components:\n    - tools\n    - build-tools-27.0.3\n    - android-27\n    - extra-android-m2repository\n    - extra-android-support\n  licenses:\n    - 'android-sdk-license-.+'\n    - 'google-gdk-license-.+'\n\nnotifications:\n  email: false\n\nbefore_install:\n - yes | sdkmanager \"platforms;android-27\"\n - chmod +x gradlew\n - mkdir \"$ANDROID_HOME/licenses\" || true\n - echo -e \"\\nd56f5187479451eabf01fb78af6dfcb131a6481e\\n8933bad161af4178b1185d1a37fbf41ea5269c55\" > \"$ANDROID_HOME/licenses/android-sdk-license\"\n - echo -e \"\\n84831b9409646a918e30573bab4c9c91346d8abd\" > \"$ANDROID_HOME/licenses/android-sdk-preview-license\"\n - touch ./pushlibrary.gradle\n\nscript: ./gradlew clean build"
  },
  {
    "path": "LICENSE.txt",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "README.md",
    "content": "# **「 Push Down Animation Click 」**\n\n![alt text](./pictures/logo.png)\n\n[![Build Status](https://travis-ci.org/TheKhaeng/pushdown-anim-click.svg?branch=master)](https://travis-ci.org/TheKhaeng/pushdown-anim-click) [ ![Download](https://api.bintray.com/packages/nonthawit/TheKhaeng/pushdown-anim-click/images/download.svg) ](https://bintray.com/nonthawit/TheKhaeng/pushdown-anim-click/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Push%20Down%20Animation%20Click-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6821) [![Google play store](https://img.shields.io/badge/Google-play%20store-green.svg)](https://play.google.com/store/apps/details?id=com.thekhaeng.pushdownanimexample)\n\n#### A library for Android developers who want to create \"push down animation click\" for view like spotify application. :)\n\n![alt text](./pictures/screenshot_1.png)\n![alt text](./pictures/push_down_anim.gif)\n\n\n## 「 DEMO APPLICATION 」\n\n```\nclone repo and build it :)\n```\n\nor\n\n<a href=\"https://play.google.com/store/apps/details?id=com.thekhaeng.pushdownanimexample\" target=\"_blank\">\n<img src=\"https://storage.googleapis.com/support-kms-prod/D90D94331E54D2005CC8CEE352FF98ECF639\" height=\"60\" width=\"200\">\n</a>\n\n## 「 UPDATE 」\n- **version: 1.1.1**\n\t- remove `ViewTreeObserver.OnGlobalLayoutListener` use getMeasuredWidth()/getMeasuredHeight() instead\n\n- **version: 1.1.0**\n\t- add `setOnLongClickListener(...)`\n\t- add new mode\n\t    - `MODE_SCALE`\n\t    - `MODE_STATIC_DP`\n\n- **version: 1.0.8**\n\t- change `setOnTouchPushDownAnim(...)` to `setPushDownAnimTo(...) `\n\t- can set multiple view at `setPushDownAnimTo(...)`\n\n## 「 Installation 」\n\nMaven\n```xml\n<dependency>\n  <groupId>com.github.thekhaeng</groupId>\n  <artifactId>pushdown-anim-click</artifactId>\n  <version>1.1.1</version>\n  <type>pom</type>\n</dependency>\n```\n\nGradle\n```gradle\ncompile( 'com.github.thekhaeng:pushdown-anim-click:1.1.1' ){\n    exclude group: 'com.android.support'\n}\n```\n\n## 「 Usage 」\n\n```java\nButton button = findViewById( R.id.button );\n\nPushDownAnim.setPushDownAnimTo( button, ... )\n        .setOnClickListener( new View.OnClickListener(){\n            @Override\n            public void onClick( View view ){\n                Toast.makeText( MainActivity.this, \"PUSH DOWN !!\", Toast.LENGTH_SHORT ).show();\n            }\n\n        } );\n\n```\n\n#### Full option\n\n```java\nPushDownAnim.setPushDownAnimTo( button, ... )\n        .setScale( MODE_SCALE | MODE_STATIC_DP,\n         \t   PushDownAnim.DEFAULT_PUSH_SCALE | PushDownAnim.DEFAULT_PUSH_STATIC  ) \n        .setDurationPush( PushDownAnim.DEFAULT_PUSH_DURATION )\n        .setDurationRelease( PushDownAnim.DEFAULT_RELEASE_DURATION )\n        .setInterpolatorPush( PushDownAnim.DEFAULT_INTERPOLATOR )\n        .setInterpolatorRelease( PushDownAnim.DEFAULT_INTERPOLATOR )\n        .setOnClickListener( new View.OnClickListener(){\n            @Override\n            public void onClick( View view ){\n                Toast.makeText( MainActivity.this, \"PUSH DOWN !!\", Toast.LENGTH_SHORT ).show();\n            }\n        } )\n        .setOnLongClickListener( new View.OnLongClickListener(){\n            @Override\n            public boolean onLongClick( View view ){\n\t\tToast.makeText( MainActivity.this, \"LONG PUSH DOWN !!\", Toast.LENGTH_SHORT ).show();\n                return true; // true: not effect to single click\n            }\n        } )\n        .setOnTouchEvent( new View.OnTouchListener(){\n            @Override\n            public boolean onTouch( View view, MotionEvent motionEvent ){\n                return false;\n            }\n        } );\n\n```\n\n#### Default values\n\n- Default mode: `MODE_SCALE`\n- Default scale: `0.97f`\n- Default push duration: `50 millisecond`\n- Default release duration:  `125 millisecond`\n- Default interpolator push/release: `AccelerateDecelerateInterpolator()`\n\n\n## 「 MODE 」\n\n**1. `MODE_SCALE`**: use range scale **0.00 - 1.00** to push down view.\n\n>**EXAMPLE:** This case 8dp ≈ 0.89 scale\n\n![TheKhaeng](./pictures/push_down_scale.gif)\n\n```java\nPushDownAnim.setPushDownAnimTo( button )\n\t.setScale( MODE_SCALE, 0.89f  ) \n        ...;\n```\n\n**2. `MODE_STATIC_DP`**: use static dp unit to push down view.\n\n>**EXAMPLE:** 8dp static scale\n\n\n![TheKhaeng](./pictures/push_down_static.gif)\n\n```java\nPushDownAnim.setPushDownAnimTo( button )\n\t.setScale( MODE_STATIC_DP, 8  ) \n        ...;\n```\n\n\n\n\n## 「 Long Click 」\n\n`setOnClickListener(...)`\n\n```java\n@Override\npublic boolean onLongClick( View view ){\n    ...\n    return true; // true: not effect to single click\n}\n```\n\n>NOTE: If you do not want to trigger a normal click **`return true`**\n\n## 「 Disable Click Programmatically 」\n\nIf your project has logic that want to disable click programmatically. You must use **``setEnabled(...)``** (do not use **`setClickable(...)`** it is not effective.)\n\n```java\nbutton.setEnabled( false );\n```\n\n\n# Licence\n\nCopyright 2017 TheKhaeng\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n\n### Developed By Thai android developer.\n\n\n[<img src=\"./pictures/profile2_circle.png\" width=\"170\">](https://www.facebook.com/nonthawit) [![TheKhaeng](./pictures/thekhaeng_logo.png)](https://www.facebook.com/thekhaeng.io/)\n\n\nFollow [facebook.com/thekhaeng.io](https://www.facebook.com/thekhaeng.io) on Facebook page.\nor [@nonthawit](https://medium.com/@nonthawit) at my Medium blog. :)\n\nFor contact, shoot me an email at nonthawit.thekhaeng@gmail.com\n\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 27\n    buildToolsVersion \"27.0.3\"\n    defaultConfig {\n        applicationId \"com.thekhaeng.pushdownanimexample\"\n        minSdkVersion 18\n        targetSdkVersion 27\n        versionCode 2\n        versionName \"1.1.0\"\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n        vectorDrawables.useSupportLibrary = true\n    }\n    signingConfigs {\n//        release {\n//            storeFile file(KEYSTORE_FILE)\n//            storePassword KEYSTORE_PASSWORD\n//            keyAlias KEYSTORE_ALIAS\n//            keyPassword KEYSTORE_PASSWORD\n//        }\n    }\n\n\n    buildTypes {\n        release {\n//            signingConfig signingConfigs.release\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n\n    lintOptions {\n        abortOnError false\n    }\n\n}\n\ndependencies {\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\n    implementation 'com.android.support:appcompat-v7:27.1.1'\n    implementation 'com.android.support.constraint:constraint-layout:1.1.0'\n    implementation \"com.andkulikov:transitionseverywhere:1.7.9\"\n\n    implementation(project(':pushdown-anim-click'))\n\n//    compile( 'com.github.thekhaeng:pushdown-anim-click:1.0.8' ){\n//        exclude group: 'com.android.support'\n//    }\n\n    testImplementation 'junit:junit:4.12'\n    androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {\n        exclude group: 'com.android.support', module: 'support-annotations'\n    })\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "app/src/androidTest/java/com/thekhaeng/pushdownanim/ExampleInstrumentedTest.java",
    "content": "package com.thekhaeng.pushdownanim;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith( AndroidJUnit4.class )\npublic class ExampleInstrumentedTest{\n    @Test\n    public void useAppContext() throws Exception{\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals( \"com.thekhaeng.pushdownanim\", appContext.getPackageName() );\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest package=\"com.thekhaeng.pushdownanimexample\"\n          xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\">\n        <activity android:name=\"com.thekhaeng.pushdownanimexample.MainActivity\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\"/>\n\n                <category android:name=\"android.intent.category.LAUNCHER\"/>\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/thekhaeng/pushdownanimexample/MainActivity.java",
    "content": "package com.thekhaeng.pushdownanimexample;\n\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.support.annotation.NonNull;\nimport android.support.v7.app.AppCompatActivity;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.view.animation.OvershootInterpolator;\nimport android.widget.Button;\nimport android.widget.Toast;\n\nimport com.thekhaeng.pushdownanim.PushDownAnim;\nimport com.transitionseverywhere.Fade;\nimport com.transitionseverywhere.TransitionManager;\nimport com.transitionseverywhere.TransitionSet;\nimport com.transitionseverywhere.extra.Scale;\n\n\npublic class MainActivity extends AppCompatActivity{\n\n    private Button button1;\n    private Button button2;\n    private View music;\n    private ViewGroup container;\n\n    @Override\n    protected void onCreate( Bundle savedInstanceState ){\n        super.onCreate( savedInstanceState );\n        setContentView( R.layout.activity_main );\n\n        container = findViewById(R.id.container);\n        button1 = findViewById( R.id.button1 );\n        button2 = findViewById( R.id.button2 );\n\n\n        music = findViewById( R.id.music );\n\n        // music.setEnabled( false ); // if you want to disable click\n//        PushDownAnim.setPushDownAnimTo( music )\n//                .setScale( PushDownAnim.MODE_STATIC_DP, 2 )\n//                .setOnClickListener( getClickListener() )\n//                .setOnLongClickListener( getLongClickListener() );\n//\n//        PushDownAnim.setPushDownAnimTo( button1 )\n//                .setOnClickListener( getClickListener() )\n//                .setOnLongClickListener( getLongClickListener() );\n//\n//        PushDownAnim.setPushDownAnimTo( button2 )\n//                .setOnClickListener( getClickListener() )\n//                .setOnLongClickListener( getLongClickListener() );\n\n//        [equal]\n//        PushDownAnim.setPushDownAnimTo( button )\n//                .setScale( PushDownAnim.MODE_SCALE , PushDownAnim.DEFAULT_PUSH_SCALE )\n//                .setDurationPush( PushDownAnim.DEFAULT_PUSH_DURATION )\n//                .setDurationRelease( PushDownAnim.DEFAULT_RELEASE_DURATION )\n//                .setInterpolatorPush( PushDownAnim.DEFAULT_INTERPOLATOR )\n//                .setInterpolatorRelease( PushDownAnim.DEFAULT_INTERPOLATOR\n//                .setOnClickListener( getClickListener() )\n//                .setOnLongClickListener( getLongClickListener() );\n//        [equal]\n        PushDownAnim.setPushDownAnimTo( music, button1, button2 )\n                .setScale( PushDownAnim.MODE_STATIC_DP , 2 )\n                .setDurationPush( PushDownAnim.DEFAULT_PUSH_DURATION )\n                .setDurationRelease( PushDownAnim.DEFAULT_RELEASE_DURATION )\n                .setInterpolatorPush( PushDownAnim.DEFAULT_INTERPOLATOR )\n                .setInterpolatorRelease( PushDownAnim.DEFAULT_INTERPOLATOR )\n                .setOnClickListener( getClickListener() )\n                .setOnLongClickListener( getLongClickListener() );\n\n\n        // delay show view to check PushDownAnim.MODE_STATIC_DP not calculate size of view is zero.\n        button2.setVisibility(View.GONE);\n        final Handler handler = new Handler();\n        handler.postDelayed(new Runnable() {\n            @Override\n            public void run() {\n                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n                    TransitionSet set = new TransitionSet()\n                            .addTransition(new Scale())\n                            .addTransition(new Fade())\n                            .setDuration(200)\n                            .setInterpolator(new OvershootInterpolator(1.0f));\n                    TransitionManager.beginDelayedTransition(container, set);\n                    TransitionManager.beginDelayedTransition(container);\n                    button2.setVisibility(View.VISIBLE);\n                }\n            }\n        }, 1000);\n\n\n    }\n\n    @NonNull\n    private View.OnClickListener getClickListener(){\n        return new View.OnClickListener(){\n            @Override\n            public void onClick( View view ){\n                if( view == music ){\n                    Toast.makeText( MainActivity.this, \"PUSH DOWN 1 !!\", Toast.LENGTH_SHORT ).show();\n                }else if( view == button1 ){\n                    Toast.makeText( MainActivity.this, \"PUSH DOWN 2 !!\", Toast.LENGTH_SHORT ).show();\n                }else if( view == button2 ){\n                    Toast.makeText( MainActivity.this, \"PUSH DOWN 3 !!\", Toast.LENGTH_SHORT ).show();\n                }\n            }\n\n        };\n    }\n\n    @NonNull\n    private View.OnLongClickListener getLongClickListener(){\n        return new View.OnLongClickListener(){\n            @Override\n            public boolean onLongClick( View view ){\n                if( view == music ){\n                    Toast.makeText( MainActivity.this, \"LONG PUSH DOWN 1 !!\", Toast.LENGTH_SHORT ).show();\n                }else if( view == button1 ){\n                    Toast.makeText( MainActivity.this, \"LONG PUSH DOWN 2 !!\", Toast.LENGTH_SHORT ).show();\n                }else if( view == button2 ){\n                    Toast.makeText( MainActivity.this, \"LONG PUSH DOWN 3 !!\", Toast.LENGTH_SHORT ).show();\n                }\n                return true; // true: not effect to single click\n            }\n        };\n    }\n\n\n}\n"
  },
  {
    "path": "app/src/main/res/drawable/button_green_focused.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\">\n\n    <solid android:color=\"@color/colorAccent\"/>\n\n    <corners android:radius=\"30dp\"/>\n\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/button_green_normal.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\">\n\n    <solid android:color=\"@color/colorAccent\"/>\n\n    <corners android:radius=\"30dp\"/>\n\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/button_green_pressed.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\">\n\n    <solid android:color=\"@color/colorAccentDark\"/>\n\n    <corners android:radius=\"30dp\"/>\n\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/button_white_focused.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\">\n\n    <solid android:color=\"@android:color/white\"/>\n\n    <corners android:radius=\"30dp\"/>\n\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/button_white_normal.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\">\n\n    <solid android:color=\"@android:color/white\"/>\n\n    <corners android:radius=\"30dp\"/>\n\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/button_white_pressed.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\">\n\n    <solid android:color=\"@color/colorAccent\"/>\n\n    <corners android:radius=\"30dp\"/>\n\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"108.0\"\n    android:viewportWidth=\"108.0\">\n    <path\n        android:fillColor=\"#26A69A\"\n        android:pathData=\"M0,0h108v108h-108z\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,0L19,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M9,0L9,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,0L39,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,0L29,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,0L59,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,0L49,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,0L79,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,0L69,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M89,0L89,108\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M99,0L99,108\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,89L108,89\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,99L108,99\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,69L108,69\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,79L108,79\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,49L108,49\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,59L108,59\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,29L108,29\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,39L108,39\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,19L108,19\"\n        android:strokeColor=\"#33FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,9L108,9\"\n        android:strokeColor=\"#66FFFFFF\"\n        android:strokeWidth=\"0.8\"/>\n</vector>\n\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_music.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"55dp\"\n        android:height=\"55dp\"\n        android:viewportWidth=\"55\"\n        android:viewportHeight=\"55\">\n\n    <path\n        android:fillColor=\"#000000\"\n        android:pathData=\"M52.66,0.249c-0.216-0.189-0.501-0.275-0.789-0.241l-31,4.011C20.373,4.084,20,4.507,20,5.01v6.017v4.212v25.384\nC18.174,38.428,15.273,37,12,37c-5.514,0-10,4.037-10,9s4.486,9,10,9s10-4.037,10-9c0-0.232-0.019-0.46-0.039-0.687\nC21.974,45.248,22,45.189,22,45.121V16.118l29-3.753v18.257C49.174,28.428,46.273,27,43,27c-5.514,0-10,4.037-10,9s4.486,9,10,9\nc5.464,0,9.913-3.966,9.993-8.867c0-0.013,0.007-0.024,0.007-0.037V11.227V7.016V1C53,0.712,52.876,0.438,52.66,0.249z\nM12,53 c-4.411,0-8-3.141-8-7s3.589-7,8-7s8,3.141,8,7S16.411,53,12,53z\nM43,43c-4.411,0-8-3.141-8-7s3.589-7,8-7s8,3.141,8,7 S47.411,43,43,43z\nM22,14.101v-3.074V5.889l29-3.752v4.879v3.332L22,14.101z\" />\n</vector>"
  },
  {
    "path": "app/src/main/res/drawable/selector_button_green.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <item android:drawable=\"@drawable/button_green_pressed\"\n          android:state_pressed=\"true\" />\n\n    <item android:drawable=\"@drawable/button_green_focused\"\n          android:state_focused=\"true\" />\n\n    <item android:drawable=\"@drawable/button_green_normal\" />\n\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable/selector_button_white.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <item android:drawable=\"@drawable/button_white_pressed\"\n          android:state_pressed=\"true\" />\n\n    <item android:drawable=\"@drawable/button_white_focused\"\n          android:state_focused=\"true\" />\n\n    <item android:drawable=\"@drawable/button_white_normal\" />\n\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable-v21/selector_button_green.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ripple xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:color=\"@color/colorAccentDark\">\n    <item\n        android:id=\"@android:id/mask\"\n        android:drawable=\"@drawable/button_green_normal\"/>\n    <item android:drawable=\"@drawable/button_green_normal\"/>\n</ripple>"
  },
  {
    "path": "app/src/main/res/drawable-v21/selector_button_white.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ripple xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:color=\"@color/colorAccent\">\n    <item\n        android:id=\"@android:id/mask\"\n        android:drawable=\"@drawable/button_white_normal\"/>\n    <item android:drawable=\"@drawable/button_white_normal\"/>\n</ripple>"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.v4.widget.NestedScrollView\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fillViewport=\"true\">\n\n    <android.support.constraint.ConstraintLayout\n        android:id=\"@+id/container\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:background=\"@color/background\"\n        tools:layout_editor_absoluteX=\"0dp\"\n        tools:layout_editor_absoluteY=\"81dp\">\n\n        <android.support.v7.widget.AppCompatTextView\n            android:id=\"@+id/tv_push_down_size_1\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginBottom=\"4dp\"\n            android:text=\"8dp\"\n            android:textColor=\"@android:color/white\"\n            android:visibility=\"gone\"\n            app:layout_constraintBottom_toTopOf=\"@+id/line1\"\n            app:layout_constraintEnd_toEndOf=\"@+id/line2\"\n            app:layout_constraintStart_toStartOf=\"@+id/line1\"\n            />\n\n        <android.support.v7.widget.AppCompatTextView\n            android:id=\"@+id/tv_push_down_size_2\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginBottom=\"4dp\"\n            android:text=\"8dp\"\n            android:textColor=\"@android:color/white\"\n            android:visibility=\"gone\"\n            app:layout_constraintBottom_toTopOf=\"@+id/line3\"\n            app:layout_constraintEnd_toEndOf=\"@+id/line4\"\n            app:layout_constraintStart_toStartOf=\"@+id/line3\"/>\n\n        <View\n            android:id=\"@+id/line1\"\n            android:layout_width=\"1dp\"\n            android:layout_height=\"180dp\"\n            android:background=\"@android:color/holo_green_light\"\n            android:visibility=\"gone\"\n            app:layout_constraintBottom_toBottomOf=\"@+id/music\"\n            app:layout_constraintStart_toStartOf=\"@+id/music\"\n            app:layout_constraintTop_toTopOf=\"@+id/music\"\n            />\n\n        <View\n            android:id=\"@+id/line2\"\n            android:layout_width=\"1dp\"\n            android:layout_height=\"0dp\"\n            android:layout_marginStart=\"8dp\"\n            android:background=\"@android:color/holo_red_light\"\n            android:visibility=\"gone\"\n            app:layout_constraintBottom_toBottomOf=\"@+id/line1\"\n            app:layout_constraintStart_toEndOf=\"@+id/line1\"\n            app:layout_constraintTop_toTopOf=\"@+id/line1\"\n            />\n\n        <View\n            android:id=\"@+id/line3\"\n            android:layout_width=\"1dp\"\n            android:layout_height=\"140dp\"\n            android:background=\"@android:color/holo_green_light\"\n            android:visibility=\"gone\"\n            app:layout_constraintBottom_toBottomOf=\"@+id/button2\"\n            app:layout_constraintStart_toStartOf=\"@+id/button1\"\n            app:layout_constraintTop_toTopOf=\"@+id/button1\"/>\n\n        <View\n            android:id=\"@+id/line4\"\n            android:layout_width=\"1dp\"\n            android:layout_height=\"0dp\"\n            android:layout_marginStart=\"8dp\"\n            android:background=\"@android:color/holo_red_light\"\n            android:visibility=\"gone\"\n            app:layout_constraintBottom_toBottomOf=\"@+id/line3\"\n            app:layout_constraintStart_toEndOf=\"@+id/line3\"\n            app:layout_constraintTop_toTopOf=\"@+id/line3\"\n            />\n\n\n        <Button\n            android:id=\"@+id/button1\"\n            android:layout_width=\"200dp\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginTop=\"44dp\"\n            android:background=\"@drawable/selector_button_green\"\n            android:text=\"Push down Anim\"\n            android:textColor=\"@android:color/white\"\n            app:layout_constraintLeft_toLeftOf=\"parent\"\n            app:layout_constraintRight_toRightOf=\"parent\"\n            app:layout_constraintTop_toBottomOf=\"@+id/music\"\n            />\n\n        <Button\n            android:id=\"@+id/button2\"\n            android:layout_width=\"200dp\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginBottom=\"16dp\"\n            android:layout_marginTop=\"8dp\"\n            android:background=\"@drawable/selector_button_white\"\n            android:text=\"Push down Anim\"\n            app:layout_constraintBottom_toBottomOf=\"parent\"\n            app:layout_constraintLeft_toLeftOf=\"parent\"\n            app:layout_constraintRight_toRightOf=\"parent\"\n            app:layout_constraintTop_toBottomOf=\"@+id/button1\"\n            app:layout_constraintVertical_bias=\"0.19\"/>\n\n        <FrameLayout\n            android:id=\"@+id/music\"\n            android:layout_width=\"150dp\"\n            android:layout_height=\"150dp\"\n            android:layout_marginEnd=\"8dp\"\n            android:layout_marginStart=\"8dp\"\n            android:layout_marginTop=\"92dp\"\n            android:background=\"@color/gray\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"parent\">\n\n            <android.support.v7.widget.AppCompatImageView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_gravity=\"center\"\n                android:tint=\"@color/grayLight\"\n                app:srcCompat=\"@drawable/ic_music\"/>\n\n        </FrameLayout>\n\n    </android.support.constraint.ConstraintLayout>\n\n</android.support.v4.widget.NestedScrollView>\n"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#222326</color>\n    <color name=\"colorPrimaryDark\">#0B0B0B</color>\n    <color name=\"colorAccent\">#1DD35E</color>\n    <color name=\"colorAccentDark\">#164D2A</color>\n\n    <color name=\"background\">#121212</color>\n\n    <color name=\"grayLight\">#88898C</color>\n    <color name=\"gray\">#222326</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">PushDown Anim</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/test/java/com/thekhaeng/pushdownanim/ExampleUnitTest.java",
    "content": "package com.thekhaeng.pushdownanim;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest{\n    @Test\n    public void addition_isCorrect() throws Exception{\n        assertEquals( 4, 2 + 2 );\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "buildscript {\n    \n    repositories {\n        google()\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.1.2'\n        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'\n        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n        jcenter()\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Fri Apr 27 20:21:13 ICT 2018\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.4-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\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\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=\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 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 init\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 init\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:init\r\n@rem Get command-line arguments, handling Windowz variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\ngoto execute\r\n\r\n:4NT_args\r\n@rem Get arguments from the 4NT Shell from JP Software\r\nset CMD_LINE_ARGS=%$\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@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 %CMD_LINE_ARGS%\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": "pushdown-anim-click/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "pushdown-anim-click/build.gradle",
    "content": "apply plugin: 'com.android.library'\n\nandroid {\n    compileSdkVersion 27\n    buildToolsVersion \"27.0.3\"\n\n\n    defaultConfig {\n        minSdkVersion 15\n        targetSdkVersion 27\n        versionCode 1\n        versionName \"1.1.1\"\n\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n\n    }\n\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n\n}\n\ndependencies {\n    compile 'com.android.support:appcompat-v7:27.1.1'\n}\n\napply from: \"$project.rootDir/pushlibrary.gradle\"\n\n"
  },
  {
    "path": "pushdown-anim-click/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "pushdown-anim-click/src/main/AndroidManifest.xml",
    "content": "<manifest package=\"com.thekhaeng.pushdownanim\"\n          xmlns:android=\"http://schemas.android.com/apk/res/android\"/>\n"
  },
  {
    "path": "pushdown-anim-click/src/main/java/com/thekhaeng/pushdownanim/PushDown.java",
    "content": "package com.thekhaeng.pushdownanim;\n\nimport android.view.View;\nimport android.view.animation.AccelerateDecelerateInterpolator;\n\n/**\n * Created by The Khaeng on 21 Mar 2018 :)\n */\n\npublic interface PushDown{\n    PushDown setScale( float scale );\n\n    PushDown setScale( @PushDownAnim.Mode int mode, float scale );\n\n    PushDown setDurationPush( long duration );\n\n    PushDown setDurationRelease( long duration );\n\n    PushDown setInterpolatorPush( AccelerateDecelerateInterpolator interpolatorPush );\n\n    PushDown setInterpolatorRelease( AccelerateDecelerateInterpolator interpolatorRelease );\n\n    PushDown setOnClickListener( View.OnClickListener clickListener );\n\n    PushDown setOnLongClickListener( View.OnLongClickListener clickListener );\n\n    PushDown setOnTouchEvent( View.OnTouchListener eventListener );\n}\n"
  },
  {
    "path": "pushdown-anim-click/src/main/java/com/thekhaeng/pushdownanim/PushDownAnim.java",
    "content": "package com.thekhaeng.pushdownanim;\n\nimport android.animation.Animator;\nimport android.animation.AnimatorListenerAdapter;\nimport android.animation.AnimatorSet;\nimport android.animation.ObjectAnimator;\nimport android.animation.TimeInterpolator;\nimport android.animation.ValueAnimator;\nimport android.graphics.Rect;\nimport android.support.annotation.IntDef;\nimport android.util.TypedValue;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.view.animation.AccelerateDecelerateInterpolator;\n\nimport java.lang.annotation.Retention;\nimport java.lang.ref.WeakReference;\n\nimport static java.lang.annotation.RetentionPolicy.SOURCE;\n\n/**\n * Created by The Khaeng on 09 Sep 2017\n */\n\npublic class PushDownAnim implements PushDown{\n    @Retention( SOURCE )\n    @IntDef( {MODE_SCALE, MODE_STATIC_DP} )\n    public @interface Mode{\n    }\n\n\n    public static final float DEFAULT_PUSH_SCALE = 0.97f;\n    public static final float DEFAULT_PUSH_STATIC = 2;\n    public static final long DEFAULT_PUSH_DURATION = 50;\n    public static final long DEFAULT_RELEASE_DURATION = 125;\n    public static final int MODE_SCALE = 0;\n    public static final int MODE_STATIC_DP = 1;\n    public static final AccelerateDecelerateInterpolator DEFAULT_INTERPOLATOR\n            = new AccelerateDecelerateInterpolator();\n\n    private final float defaultScale;\n    private int mode = MODE_SCALE;\n    private float pushScale = DEFAULT_PUSH_SCALE;\n    private float pushStatic = DEFAULT_PUSH_STATIC;\n    private long durationPush = DEFAULT_PUSH_DURATION;\n    private long durationRelease = DEFAULT_RELEASE_DURATION;\n    private AccelerateDecelerateInterpolator interpolatorPush = DEFAULT_INTERPOLATOR;\n    private AccelerateDecelerateInterpolator interpolatorRelease = DEFAULT_INTERPOLATOR;\n    private WeakReference<View> weakView;\n    private AnimatorSet scaleAnimSet;\n\n    private PushDownAnim( final View view ){\n        this.weakView = new WeakReference<>(view) ;\n        this.weakView.get().setClickable( true );\n        defaultScale = view.getScaleX();\n    }\n\n\n    public static PushDownAnim setPushDownAnimTo( final View view ){\n        PushDownAnim pushAnim = new PushDownAnim( view );\n        pushAnim.setOnTouchEvent( null );\n        return pushAnim;\n    }\n\n    public static PushDownAnimList setPushDownAnimTo( View... views ){\n        return new PushDownAnimList( views );\n    }\n\n    @Override\n    public PushDown setScale( float scale ){\n        if( this.mode == MODE_SCALE ){\n            this.pushScale = scale;\n        }else if( this.mode == MODE_STATIC_DP ){\n            this.pushStatic = scale;\n        }\n        return this;\n    }\n\n    @Override\n    public PushDown setScale( @Mode int mode, float scale ){\n        this.mode = mode;\n        this.setScale( scale );\n        return this;\n    }\n\n    @Override\n    public PushDown setDurationPush( long duration ){\n        this.durationPush = duration;\n        return this;\n    }\n\n    @Override\n    public PushDown setDurationRelease( long duration ){\n        this.durationRelease = duration;\n        return this;\n    }\n\n    @Override\n    public PushDown setInterpolatorPush( AccelerateDecelerateInterpolator interpolatorPush ){\n        this.interpolatorPush = interpolatorPush;\n        return this;\n    }\n\n    @Override\n    public PushDown setInterpolatorRelease( AccelerateDecelerateInterpolator interpolatorRelease ){\n        this.interpolatorRelease = interpolatorRelease;\n        return this;\n    }\n\n    @Override\n    public PushDown setOnClickListener( View.OnClickListener clickListener ){\n        if( weakView.get() != null ){\n            weakView.get().setOnClickListener( clickListener );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDown setOnLongClickListener( View.OnLongClickListener clickListener ){\n        if( weakView.get() != null ){\n            weakView.get().setOnLongClickListener( clickListener );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDown setOnTouchEvent( final View.OnTouchListener eventListener ){\n        if( weakView.get() != null ){\n            if( eventListener == null ){\n                weakView.get().setOnTouchListener( new View.OnTouchListener(){\n                    boolean isOutSide;\n                    Rect rect;\n\n                    @Override\n                    public boolean onTouch( View view, MotionEvent motionEvent ){\n                        if( view.isClickable() ){\n                            int i = motionEvent.getAction();\n                            if( i == MotionEvent.ACTION_DOWN ){\n                                isOutSide = false;\n                                rect = new Rect(\n                                        view.getLeft(),\n                                        view.getTop(),\n                                        view.getRight(),\n                                        view.getBottom() );\n                                makeDecisionAnimScale( view,\n                                        mode,\n                                        pushScale,\n                                        pushStatic,\n                                        durationPush,\n                                        interpolatorPush,\n                                        i );\n                            }else if( i == MotionEvent.ACTION_MOVE ){\n                                if( rect != null\n                                        && !isOutSide\n                                        && !rect.contains(\n                                        view.getLeft() + (int) motionEvent.getX(),\n                                        view.getTop() + (int) motionEvent.getY() ) ){\n                                    isOutSide = true;\n                                    makeDecisionAnimScale( view,\n                                            mode,\n                                            defaultScale,\n                                            0,\n                                            durationRelease,\n                                            interpolatorRelease,\n                                            i );\n                                }\n                            }else if( i == MotionEvent.ACTION_CANCEL\n                                    || i == MotionEvent.ACTION_UP ){\n                                makeDecisionAnimScale( view,\n                                        mode,\n                                        defaultScale,\n                                        0,\n                                        durationRelease,\n                                        interpolatorRelease,\n                                        i );\n                            }\n                        }\n                        return false;\n                    }\n                } );\n\n            }else{\n                weakView.get().setOnTouchListener( new View.OnTouchListener(){\n\n                    @Override\n                    public boolean onTouch( View v, MotionEvent motionEvent ){\n                        return eventListener.onTouch( weakView.get(), motionEvent );\n                    }\n                } );\n            }\n        }\n\n        return this;\n    }\n\n    /* =========================== Private method =============================================== */\n    private void makeDecisionAnimScale( final View view,\n                                        @Mode int mode,\n                                        float pushScale,\n                                        float pushStatic,\n                                        long duration,\n                                        TimeInterpolator interpolator,\n                                        int action ){\n        float tmpScale = pushScale;\n        if( mode == MODE_STATIC_DP ){\n            tmpScale = getScaleFromStaticSize( pushStatic );\n        }\n        animScale( view, tmpScale, duration, interpolator );\n    }\n\n    private void animScale( final View view,\n                            float scale,\n                            long duration,\n                            TimeInterpolator interpolator ){\n\n        view.animate().cancel();\n        if( scaleAnimSet != null ){\n            scaleAnimSet.cancel();\n        }\n\n        ObjectAnimator scaleX = ObjectAnimator.ofFloat( view, \"scaleX\", scale );\n        ObjectAnimator scaleY = ObjectAnimator.ofFloat( view, \"scaleY\", scale );\n        scaleX.setInterpolator( interpolator );\n        scaleX.setDuration( duration );\n        scaleY.setInterpolator( interpolator );\n        scaleY.setDuration( duration );\n\n        scaleAnimSet = new AnimatorSet();\n        scaleAnimSet\n                .play( scaleX )\n                .with( scaleY );\n        scaleX.addListener( new AnimatorListenerAdapter(){\n            @Override\n            public void onAnimationStart( Animator animation ){\n                super.onAnimationStart( animation );\n            }\n\n            @Override\n            public void onAnimationEnd( Animator animation ){\n                super.onAnimationEnd( animation );\n            }\n        } );\n        scaleX.addUpdateListener( new ValueAnimator.AnimatorUpdateListener(){\n            @Override\n            public void onAnimationUpdate( ValueAnimator valueAnimator ){\n                View p = (View) view.getParent();\n                if( p != null ) p.invalidate();\n            }\n        } );\n        scaleAnimSet.start();\n    }\n\n    private float getScaleFromStaticSize( float sizeStaticDp ){\n        if( sizeStaticDp <= 0 ) return defaultScale;\n\n        float sizePx = dpToPx( sizeStaticDp );\n        if( getViewWidth() > getViewHeight() ){\n            if( sizePx > getViewWidth() ) return 1.0f;\n            float pushWidth = getViewWidth() - ( sizePx * 2 );\n            return pushWidth / getViewWidth();\n        }else{\n            if( sizePx > getViewHeight() ) return 1.0f;\n            float pushHeight = getViewHeight() - ( sizePx * 2 );\n            return pushHeight / (float) getViewHeight();\n        }\n    }\n\n    private int getViewHeight(){\n        return weakView.get().getMeasuredHeight();\n    }\n\n    private int getViewWidth(){\n        return weakView.get().getMeasuredWidth();\n    }\n\n    private float dpToPx( final float dp ){\n        return TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, dp, weakView.get().getResources().getDisplayMetrics() );\n    }\n\n\n}\n"
  },
  {
    "path": "pushdown-anim-click/src/main/java/com/thekhaeng/pushdownanim/PushDownAnimList.java",
    "content": "package com.thekhaeng.pushdownanim;\n\nimport android.view.View;\nimport android.view.animation.AccelerateDecelerateInterpolator;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Created by The Khaeng on 09 Sep 2017\n */\n\npublic class PushDownAnimList implements PushDown{\n\n    private final List<PushDownAnim> pushDownList = new ArrayList<>();\n\n\n    PushDownAnimList( View... views ){\n        for( View view : views ){\n            PushDownAnim pushDown = PushDownAnim.setPushDownAnimTo( view );\n            pushDown.setOnTouchEvent( null );\n            this.pushDownList.add( pushDown );\n        }\n    }\n\n    @Override\n    public PushDownAnimList setScale( float scale ){\n        for( PushDownAnim pushDown : pushDownList ){\n            pushDown.setScale( scale );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDown setScale( int mode, float scale ){\n        for( PushDownAnim pushDown : pushDownList ){\n            pushDown.setScale( mode, scale );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDownAnimList setDurationPush( long duration ){\n        for( PushDownAnim pushDown : pushDownList ){\n            pushDown.setDurationPush( duration );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDownAnimList setDurationRelease( long duration ){\n        for( PushDownAnim pushDown : pushDownList ){\n            pushDown.setDurationRelease( duration );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDownAnimList setInterpolatorPush( AccelerateDecelerateInterpolator interpolatorPush ){\n        for( PushDownAnim pushDown : pushDownList ){\n            pushDown.setInterpolatorPush( interpolatorPush );\n        }\n        return this;\n    }\n\n    @Override\n    public PushDownAnimList setInterpolatorRelease( AccelerateDecelerateInterpolator interpolatorRelease ){\n        for( PushDownAnim pushDown : pushDownList ){\n            pushDown.setInterpolatorRelease( interpolatorRelease );\n        }\n        return this;\n    }\n\n\n    @Override\n    public PushDownAnimList setOnClickListener( View.OnClickListener clickListener ){\n        for( PushDownAnim pushDown : pushDownList ){\n            if( clickListener != null ){\n                pushDown.setOnClickListener( clickListener );\n            }\n        }\n        return this;\n    }\n\n    @Override\n    public PushDown setOnLongClickListener( View.OnLongClickListener clickListener ){\n        for( PushDownAnim pushDown : pushDownList ){\n            if( clickListener != null ){\n                pushDown.setOnLongClickListener( clickListener );\n            }\n        }\n        return this;\n    }\n\n    public PushDownAnimList setOnTouchEvent( final View.OnTouchListener eventListener ){\n        for( PushDownAnim pushDown : pushDownList ){\n            if( eventListener != null ){\n                pushDown.setOnTouchEvent( eventListener );\n            }\n        }\n        return this;\n    }\n\n}\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app', ':pushdown-anim-click'\n"
  }
]