[
  {
    "path": ".gitignore",
    "content": "# Created by https://www.gitignore.io\n\n### Android ###\n\n# Files for the Dalvik VM\n*.dex\n\n# Java class files\n*.class\n\n# Generated files\nbin/\ngen/\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\n### Intellij ###\n# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm\n\n*.iml\n\n## Directory-based project format:\n.idea/\n# if you remove the above rule, at least ignore the following:\n\n# User-specific stuff:\n# .idea/workspace.xml\n# .idea/tasks.xml\n# .idea/dictionaries\n\n# Sensitive or high-churn files:\n# .idea/dataSources.ids\n# .idea/dataSources.xml\n# .idea/sqlDataSources.xml\n# .idea/dynamic.xml\n# .idea/uiDesigner.xml\n\n# Gradle:\n# .idea/gradle.xml\n# .idea/libraries\n\n# Mongo Explorer plugin:\n# .idea/mongoSettings.xml\n\n## File-based project format:\n*.ipr\n*.iws\n\n## Plugin-specific files:\n\n# IntelliJ\nout/\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\n\n# Ignore Gradle GUI config\ngradle-app.setting\n\n# Mobile Tools for Java (J2ME)\n.mtj.tmp/\n\n# Package Files #\n*.war\n*.ear\n\n# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml\nhs_err_pid*\n\n*.DS_Store"
  },
  {
    "path": ".travis.yml",
    "content": "language: android\n\njdk:\n  - oraclejdk8\n\nandroid:\n  components:\n    - tools\n    - platform-tools\n\nbefore_install:\n  - mkdir \"$ANDROID_HOME/licenses\" || true\n  - echo \"d56f5187479451eabf01fb78af6dfcb131a6481e\\n24333f8a63b6825ea9c5514f83c2829b004d1fee\" > \"$ANDROID_HOME/licenses/android-sdk-license\"\n  - yes | sdkmanager tools\n  - chmod +x gradlew\n\nscript: \"./gradlew build\"\n"
  },
  {
    "path": "LICENSE.txt",
    "content": "\n                                 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": "# ElasticDragDismissLayout\nStandard ViewGroups which responds to nested scrolls to create drag-dismissable layouts. Original code taken from [Plaid](https://github.com/nickbutcher/plaid) and made backwards compatible.\n\n[![Build Status](https://travis-ci.org/Commit451/ElasticDragDismissLayout.svg?branch=master)](https://travis-ci.org/Commit451/ElasticDragDismissLayout) [![](https://jitpack.io/v/Commit451/ElasticDragDismissLayout.svg)](https://jitpack.io/#Commit451/ElasticDragDismissLayout)\n\n<img src=\"/art/sample.gif?raw=true\" width=\"200px\">\n\n# Gradle Dependency\n\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\nThen, add the library to your project `build.gradle`\n```gradle\ndependencies {\n    implementation 'com.github.Commit451:ElasticDragDismissLayout:1.0.4'\n}\n```\n\n# Usage\nSee the sample project for a full example. Within XML:\n\n```xml\n<com.commit451.elasticdragdismisslayout.ElasticDragDismissLinearLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/draggable_frame\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    app:dragDismissDistance=\"112dp\"\n    app:dragDismissScale=\"0.95\">\n\n    <android.support.v7.widget.Toolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"?attr/actionBarSize\"\n        android:background=\"#993F51B5\" />\n\n    <android.support.v7.widget.RecyclerView\n        android:id=\"@+id/recyclerview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\" />\n\n</com.commit451.elasticdragdismisslayout.ElasticDragDismissLinearLayout>\n```\nIn addition, you will probably want to have your new activity have a theme that allows for transparency. See `styles.xml` for an example.\n\nTo allow for dismiss:\n```java\nmDraggableFrame.addListener(new ElasticDragDismissListener() {\n        @Override\n        public void onDrag(float elasticOffset, float elasticOffsetPixels, float rawOffset, float rawOffsetPixels) {}\n\n        @Override\n        public void onDragDismissed() {\n            //if you are targeting 21+ you might want to finish after transition\n            finish();\n        }\n    });\n```\n\n# Supported ScrollViews\n- ScrollView (if 21+ and android:nestedScrollingEnabled=\"true\")\n- RecyclerView\n- NestedScrollView (from support v4 library)\n\n# Currently Created Elastic Views\n- ElasticDragDismissFrameLayout\n- ElasticDragDismissLinearLayout\n- ElasticDragDismissRelativeLayout\n\nYou can create your own by using the `ElasticDragDismissDelegate` and using one of the created views as a reference.\n\nLicense\n--------\n\n    Copyright 2015 Google, Inc.\n    Copyright 2017 Commit 451\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": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 28\n\n    defaultConfig {\n        applicationId \"com.commit451.elasticdragdismisslayout.sample\"\n        minSdkVersion 15\n        targetSdkVersion 27\n        versionCode 1\n        versionName \"1.0\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n    lintOptions {\n        abortOnError false\n    }\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n}\n\ndependencies {\n    implementation 'androidx.appcompat:appcompat:1.0.0'\n    implementation 'com.google.android.material:material:1.0.0'\n    implementation 'androidx.recyclerview:recyclerview:1.0.0'\n    implementation 'androidx.cardview:cardview:1.0.0'\n\n    implementation 'com.jakewharton:butterknife:10.0.0'\n    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'\n\n    implementation 'com.github.bumptech.glide:glide:4.3.1'\n\n    implementation 'com.github.Commit451:Viewtiful:1.0.3'\n\n    implementation project(':elasticdragdismisslayout')\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in C:\\Users\\Jawn\\Develop\\Android\\sdk/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the proguardFiles\n# directive in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.commit451.elasticdragdismisslayout.sample\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n\n    <application\n        android:allowBackup=\"true\"\n        android:fullBackupContent=\"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=\".MainActivity\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n        <activity android:name=\".DetailActivity\" android:theme=\"@style/AppTheme.Translucent\"/>\n        <activity android:name=\".DetailRecyclerViewActivity\" android:theme=\"@style/AppTheme.Translucent\" />\n    </application>\n\n</manifest>\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/Cheese.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport java.io.Serializable;\n\n/**\n * A fake model to show usage\n * Created by John on 11/24/15.\n */\npublic class Cheese implements Serializable {\n\n    int mDrawable;\n    String mName;\n\n    public Cheese(int drawable, String name) {\n        mDrawable = drawable;\n        mName = name;\n    }\n\n    public int getDrawable() {\n        return mDrawable;\n    }\n\n    public String getName() {\n        return mName;\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/CheeseAdapter.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport android.content.Context;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\n\n/**\n * Adapter for the recyclerview, which holds cheeses\n */\npublic class CheeseAdapter extends RecyclerView.Adapter<CheeseViewHolder> {\n\n    private Listener mListener;\n    private ArrayList<Cheese> mValues;\n    private final View.OnClickListener mOnClickListener = new View.OnClickListener() {\n        @Override\n        public void onClick(View v) {\n            int position = (int) v.getTag(R.id.list_position);\n            Cheese cheese = getItemAt(position);\n            //Communicate to the activity that the item was long pressed\n            mListener.onItemClicked(cheese);\n        }\n    };\n\n    public CheeseAdapter(Context context, Listener listener) {\n        mListener = listener;\n        mValues = new ArrayList<>();\n    }\n\n    public void setData(Collection<Cheese> cheeses) {\n        mValues.addAll(cheeses);\n        notifyDataSetChanged();\n    }\n\n    @Override\n    public CheeseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n        CheeseViewHolder holder = CheeseViewHolder.newInstance(parent);\n        holder.itemView.setOnClickListener(mOnClickListener);\n        return holder;\n    }\n\n    @Override\n    public void onBindViewHolder(final CheeseViewHolder holder, int position) {\n        Cheese cheese = getItemAt(position);\n        holder.bind(cheese);\n        holder.itemView.setTag(R.id.list_position, position);\n        holder.itemView.setTag(R.id.list_holder, holder);\n    }\n\n    @Override\n    public int getItemCount() {\n        return mValues.size();\n    }\n\n    private Cheese getItemAt(int position) {\n        return mValues.get(position);\n    }\n\n    public interface Listener {\n        void onItemClicked(Cheese cheese);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/CheeseViewHolder.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.ImageView;\nimport android.widget.TextView;\n\nimport androidx.recyclerview.widget.RecyclerView;\n\n/**\n * The view holder related to each Cheese item\n * Created by John on 11/24/15.\n */\npublic class CheeseViewHolder extends RecyclerView.ViewHolder {\n\n    public static CheeseViewHolder newInstance(ViewGroup parent) {\n        View view = LayoutInflater.from(parent.getContext())\n                .inflate(R.layout.item_cheese, parent, false);\n        return new CheeseViewHolder(view);\n    }\n\n    public ImageView image;\n    public TextView title;\n\n    public CheeseViewHolder(View view) {\n        super(view);\n        image = view.findViewById(R.id.image);\n        title = view.findViewById(R.id.name);\n    }\n\n    public void bind(Cheese cheese) {\n        image.setImageResource(cheese.getDrawable());\n        title.setText(cheese.getName());\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/Cheeses.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport java.util.Random;\n\npublic class Cheeses {\n\n    private static final Random RANDOM = new Random();\n\n    public static int getRandomCheeseDrawable() {\n        switch (RANDOM.nextInt(5)) {\n            default:\n            case 0:\n                return R.drawable.cheese_1;\n            case 1:\n                return R.drawable.cheese_2;\n            case 2:\n                return R.drawable.cheese_3;\n            case 3:\n                return R.drawable.cheese_4;\n            case 4:\n                return R.drawable.cheese_5;\n        }\n    }\n\n    public static final String[] sCheeseStrings = {\n            \"Abbaye de Belloc\", \"Abbaye du Mont des Cats\", \"Abertam\", \"Abondance\", \"Ackawi\",\n            \"Acorn\", \"Adelost\", \"Affidelice au Chablis\", \"Afuega'l Pitu\", \"Airag\", \"Airedale\",\n            \"Aisy Cendre\", \"Allgauer Emmentaler\", \"Alverca\", \"Ambert\", \"American Cheese\",\n            \"Ami du Chambertin\", \"Anejo Enchilado\", \"Anneau du Vic-Bilh\", \"Anthoriro\", \"Appenzell\",\n            \"Aragon\", \"Ardi Gasna\", \"Ardrahan\", \"Armenian String\", \"Aromes au Gene de Marc\",\n            \"Asadero\", \"Asiago\", \"Aubisque Pyrenees\", \"Autun\", \"Avaxtskyr\", \"Baby Swiss\",\n            \"Babybel\", \"Baguette Laonnaise\", \"Bakers\", \"Baladi\", \"Balaton\", \"Bandal\", \"Banon\",\n            \"Barry's Bay Cheddar\", \"Basing\", \"Basket Cheese\", \"Bath Cheese\", \"Bavarian Bergkase\",\n            \"Baylough\", \"Beaufort\", \"Beauvoorde\", \"Beenleigh Blue\", \"Beer Cheese\", \"Bel Paese\",\n            \"Bergader\", \"Bergere Bleue\", \"Berkswell\", \"Beyaz Peynir\", \"Bierkase\", \"Bishop Kennedy\",\n            \"Blarney\", \"Bleu d'Auvergne\", \"Bleu de Gex\", \"Bleu de Laqueuille\",\n            \"Bleu de Septmoncel\", \"Bleu Des Causses\", \"Blue\", \"Blue Castello\", \"Blue Rathgore\",\n            \"Blue Vein (Australian)\", \"Blue Vein Cheeses\", \"Bocconcini\", \"Bocconcini (Australian)\",\n            \"Boeren Leidenkaas\", \"Bonchester\", \"Bosworth\", \"Bougon\", \"Boule Du Roves\",\n            \"Boulette d'Avesnes\", \"Boursault\", \"Boursin\", \"Bouyssou\", \"Bra\", \"Braudostur\",\n            \"Breakfast Cheese\", \"Brebis du Lavort\", \"Brebis du Lochois\", \"Brebis du Puyfaucon\",\n            \"Bresse Bleu\", \"Brick\", \"Brie\", \"Brie de Meaux\", \"Brie de Melun\", \"Brillat-Savarin\",\n            \"Brin\", \"Brin d' Amour\", \"Brin d'Amour\", \"Brinza (Burduf Brinza)\",\n            \"Briquette de Brebis\", \"Briquette du Forez\", \"Broccio\", \"Broccio Demi-Affine\",\n            \"Brousse du Rove\", \"Bruder Basil\", \"Brusselae Kaas (Fromage de Bruxelles)\", \"Bryndza\",\n            \"Buchette d'Anjou\", \"Buffalo\", \"Burgos\", \"Butte\", \"Butterkase\", \"Button (Innes)\",\n            \"Buxton Blue\", \"Cabecou\", \"Caboc\", \"Cabrales\", \"Cachaille\", \"Caciocavallo\", \"Caciotta\",\n            \"Caerphilly\", \"Cairnsmore\", \"Calenzana\", \"Cambazola\", \"Camembert de Normandie\",\n            \"Canadian Cheddar\", \"Canestrato\", \"Cantal\", \"Caprice des Dieux\", \"Capricorn Goat\",\n            \"Capriole Banon\", \"Carre de l'Est\", \"Casciotta di Urbino\", \"Cashel Blue\", \"Castellano\",\n            \"Castelleno\", \"Castelmagno\", \"Castelo Branco\", \"Castigliano\", \"Cathelain\",\n            \"Celtic Promise\", \"Cendre d'Olivet\", \"Cerney\", \"Chabichou\", \"Chabichou du Poitou\",\n            \"Chabis de Gatine\", \"Chaource\", \"Charolais\", \"Chaumes\", \"Cheddar\",\n            \"Cheddar Clothbound\", \"Cheshire\", \"Chevres\", \"Chevrotin des Aravis\", \"Chontaleno\",\n            \"Civray\", \"Coeur de Camembert au Calvados\", \"Coeur de Chevre\", \"Colby\", \"Cold Pack\",\n            \"Comte\", \"Coolea\", \"Cooleney\", \"Coquetdale\", \"Corleggy\", \"Cornish Pepper\",\n            \"Cotherstone\", \"Cotija\", \"Cottage Cheese\", \"Cottage Cheese (Australian)\",\n            \"Cougar Gold\", \"Coulommiers\", \"Coverdale\", \"Crayeux de Roncq\", \"Cream Cheese\",\n            \"Cream Havarti\", \"Crema Agria\", \"Crema Mexicana\", \"Creme Fraiche\", \"Crescenza\",\n            \"Croghan\", \"Crottin de Chavignol\", \"Crottin du Chavignol\", \"Crowdie\", \"Crowley\",\n            \"Cuajada\", \"Curd\", \"Cure Nantais\", \"Curworthy\", \"Cwmtawe Pecorino\",\n            \"Cypress Grove Chevre\", \"Danablu (Danish Blue)\", \"Danbo\", \"Danish Fontina\",\n            \"Daralagjazsky\", \"Dauphin\", \"Delice des Fiouves\", \"Denhany Dorset Drum\", \"Derby\",\n            \"Dessertnyj Belyj\", \"Devon Blue\", \"Devon Garland\", \"Dolcelatte\", \"Doolin\",\n            \"Doppelrhamstufel\", \"Dorset Blue Vinney\", \"Double Gloucester\", \"Double Worcester\",\n            \"Dreux a la Feuille\", \"Dry Jack\", \"Duddleswell\", \"Dunbarra\", \"Dunlop\", \"Dunsyre Blue\",\n            \"Duroblando\", \"Durrus\", \"Dutch Mimolette (Commissiekaas)\", \"Edam\", \"Edelpilz\",\n            \"Emental Grand Cru\", \"Emlett\", \"Emmental\", \"Epoisses de Bourgogne\", \"Esbareich\",\n            \"Esrom\", \"Etorki\", \"Evansdale Farmhouse Brie\", \"Evora De L'Alentejo\", \"Exmoor Blue\",\n            \"Explorateur\", \"Feta\", \"Feta (Australian)\", \"Figue\", \"Filetta\", \"Fin-de-Siecle\",\n            \"Finlandia Swiss\", \"Finn\", \"Fiore Sardo\", \"Fleur du Maquis\", \"Flor de Guia\",\n            \"Flower Marie\", \"Folded\", \"Folded cheese with mint\", \"Fondant de Brebis\",\n            \"Fontainebleau\", \"Fontal\", \"Fontina Val d'Aosta\", \"Formaggio di capra\", \"Fougerus\",\n            \"Four Herb Gouda\", \"Fourme d' Ambert\", \"Fourme de Haute Loire\", \"Fourme de Montbrison\",\n            \"Fresh Jack\", \"Fresh Mozzarella\", \"Fresh Ricotta\", \"Fresh Truffles\", \"Fribourgeois\",\n            \"Friesekaas\", \"Friesian\", \"Friesla\", \"Frinault\", \"Fromage a Raclette\", \"Fromage Corse\",\n            \"Fromage de Montagne de Savoie\", \"Fromage Frais\", \"Fruit Cream Cheese\",\n            \"Frying Cheese\", \"Fynbo\", \"Gabriel\", \"Galette du Paludier\", \"Galette Lyonnaise\",\n            \"Galloway Goat's Milk Gems\", \"Gammelost\", \"Gaperon a l'Ail\", \"Garrotxa\", \"Gastanberra\",\n            \"Geitost\", \"Gippsland Blue\", \"Gjetost\", \"Gloucester\", \"Golden Cross\", \"Gorgonzola\",\n            \"Gornyaltajski\", \"Gospel Green\", \"Gouda\", \"Goutu\", \"Gowrie\", \"Grabetto\", \"Graddost\",\n            \"Grafton Village Cheddar\", \"Grana\", \"Grana Padano\", \"Grand Vatel\",\n            \"Grataron d' Areches\", \"Gratte-Paille\", \"Graviera\", \"Greuilh\", \"Greve\",\n            \"Gris de Lille\", \"Gruyere\", \"Gubbeen\", \"Guerbigny\", \"Halloumi\",\n            \"Halloumy (Australian)\", \"Haloumi-Style Cheese\", \"Harbourne Blue\", \"Havarti\",\n            \"Heidi Gruyere\", \"Hereford Hop\", \"Herrgardsost\", \"Herriot Farmhouse\", \"Herve\",\n            \"Hipi Iti\", \"Hubbardston Blue Cow\", \"Hushallsost\", \"Iberico\", \"Idaho Goatster\",\n            \"Idiazabal\", \"Il Boschetto al Tartufo\", \"Ile d'Yeu\", \"Isle of Mull\", \"Jarlsberg\",\n            \"Jermi Tortes\", \"Jibneh Arabieh\", \"Jindi Brie\", \"Jubilee Blue\", \"Juustoleipa\",\n            \"Kadchgall\", \"Kaseri\", \"Kashta\", \"Kefalotyri\", \"Kenafa\", \"Kernhem\", \"Kervella Affine\",\n            \"Kikorangi\", \"King Island Cape Wickham Brie\", \"King River Gold\", \"Klosterkaese\",\n            \"Knockalara\", \"Kugelkase\", \"L'Aveyronnais\", \"L'Ecir de l'Aubrac\", \"La Taupiniere\",\n            \"La Vache Qui Rit\", \"Laguiole\", \"Lairobell\", \"Lajta\", \"Lanark Blue\", \"Lancashire\",\n            \"Langres\", \"Lappi\", \"Laruns\", \"Lavistown\", \"Le Brin\", \"Le Fium Orbo\", \"Le Lacandou\",\n            \"Le Roule\", \"Leafield\", \"Lebbene\", \"Leerdammer\", \"Leicester\", \"Leyden\", \"Limburger\",\n            \"Lincolnshire Poacher\", \"Lingot Saint Bousquet d'Orb\", \"Liptauer\", \"Little Rydings\",\n            \"Livarot\", \"Llanboidy\", \"Llanglofan Farmhouse\", \"Loch Arthur Farmhouse\",\n            \"Loddiswell Avondale\", \"Longhorn\", \"Lou Palou\", \"Lou Pevre\", \"Lyonnais\", \"Maasdam\",\n            \"Macconais\", \"Mahoe Aged Gouda\", \"Mahon\", \"Malvern\", \"Mamirolle\", \"Manchego\",\n            \"Manouri\", \"Manur\", \"Marble Cheddar\", \"Marbled Cheeses\", \"Maredsous\", \"Margotin\",\n            \"Maribo\", \"Maroilles\", \"Mascares\", \"Mascarpone\", \"Mascarpone (Australian)\",\n            \"Mascarpone Torta\", \"Matocq\", \"Maytag Blue\", \"Meira\", \"Menallack Farmhouse\",\n            \"Menonita\", \"Meredith Blue\", \"Mesost\", \"Metton (Cancoillotte)\", \"Meyer Vintage Gouda\",\n            \"Mihalic Peynir\", \"Milleens\", \"Mimolette\", \"Mine-Gabhar\", \"Mini Baby Bells\", \"Mixte\",\n            \"Molbo\", \"Monastery Cheeses\", \"Mondseer\", \"Mont D'or Lyonnais\", \"Montasio\",\n            \"Monterey Jack\", \"Monterey Jack Dry\", \"Morbier\", \"Morbier Cru de Montagne\",\n            \"Mothais a la Feuille\", \"Mozzarella\", \"Mozzarella (Australian)\",\n            \"Mozzarella di Bufala\", \"Mozzarella Fresh, in water\", \"Mozzarella Rolls\", \"Munster\",\n            \"Murol\", \"Mycella\", \"Myzithra\", \"Naboulsi\", \"Nantais\", \"Neufchatel\",\n            \"Neufchatel (Australian)\", \"Niolo\", \"Nokkelost\", \"Northumberland\", \"Oaxaca\",\n            \"Olde York\", \"Olivet au Foin\", \"Olivet Bleu\", \"Olivet Cendre\",\n            \"Orkney Extra Mature Cheddar\", \"Orla\", \"Oschtjepka\", \"Ossau Fermier\", \"Ossau-Iraty\",\n            \"Oszczypek\", \"Oxford Blue\", \"P'tit Berrichon\", \"Palet de Babligny\", \"Paneer\", \"Panela\",\n            \"Pannerone\", \"Pant ys Gawn\", \"Parmesan (Parmigiano)\", \"Parmigiano Reggiano\",\n            \"Pas de l'Escalette\", \"Passendale\", \"Pasteurized Processed\", \"Pate de Fromage\",\n            \"Patefine Fort\", \"Pave d'Affinois\", \"Pave d'Auge\", \"Pave de Chirac\", \"Pave du Berry\",\n            \"Pecorino\", \"Pecorino in Walnut Leaves\", \"Pecorino Romano\", \"Peekskill Pyramid\",\n            \"Pelardon des Cevennes\", \"Pelardon des Corbieres\", \"Penamellera\", \"Penbryn\",\n            \"Pencarreg\", \"Perail de Brebis\", \"Petit Morin\", \"Petit Pardou\", \"Petit-Suisse\",\n            \"Picodon de Chevre\", \"Picos de Europa\", \"Piora\", \"Pithtviers au Foin\",\n            \"Plateau de Herve\", \"Plymouth Cheese\", \"Podhalanski\", \"Poivre d'Ane\", \"Polkolbin\",\n            \"Pont l'Eveque\", \"Port Nicholson\", \"Port-Salut\", \"Postel\", \"Pouligny-Saint-Pierre\",\n            \"Pourly\", \"Prastost\", \"Pressato\", \"Prince-Jean\", \"Processed Cheddar\", \"Provolone\",\n            \"Provolone (Australian)\", \"Pyengana Cheddar\", \"Pyramide\", \"Quark\",\n            \"Quark (Australian)\", \"Quartirolo Lombardo\", \"Quatre-Vents\", \"Quercy Petit\",\n            \"Queso Blanco\", \"Queso Blanco con Frutas --Pina y Mango\", \"Queso de Murcia\",\n            \"Queso del Montsec\", \"Queso del Tietar\", \"Queso Fresco\", \"Queso Fresco (Adobera)\",\n            \"Queso Iberico\", \"Queso Jalapeno\", \"Queso Majorero\", \"Queso Media Luna\",\n            \"Queso Para Frier\", \"Queso Quesadilla\", \"Rabacal\", \"Raclette\", \"Ragusano\", \"Raschera\",\n            \"Reblochon\", \"Red Leicester\", \"Regal de la Dombes\", \"Reggianito\", \"Remedou\",\n            \"Requeson\", \"Richelieu\", \"Ricotta\", \"Ricotta (Australian)\", \"Ricotta Salata\", \"Ridder\",\n            \"Rigotte\", \"Rocamadour\", \"Rollot\", \"Romano\", \"Romans Part Dieu\", \"Roncal\", \"Roquefort\",\n            \"Roule\", \"Rouleau De Beaulieu\", \"Royalp Tilsit\", \"Rubens\", \"Rustinu\", \"Saaland Pfarr\",\n            \"Saanenkaese\", \"Saga\", \"Sage Derby\", \"Sainte Maure\", \"Saint-Marcellin\",\n            \"Saint-Nectaire\", \"Saint-Paulin\", \"Salers\", \"Samso\", \"San Simon\", \"Sancerre\",\n            \"Sap Sago\", \"Sardo\", \"Sardo Egyptian\", \"Sbrinz\", \"Scamorza\", \"Schabzieger\", \"Schloss\",\n            \"Selles sur Cher\", \"Selva\", \"Serat\", \"Seriously Strong Cheddar\", \"Serra da Estrela\",\n            \"Sharpam\", \"Shelburne Cheddar\", \"Shropshire Blue\", \"Siraz\", \"Sirene\", \"Smoked Gouda\",\n            \"Somerset Brie\", \"Sonoma Jack\", \"Sottocenare al Tartufo\", \"Soumaintrain\",\n            \"Sourire Lozerien\", \"Spenwood\", \"Sraffordshire Organic\", \"St. Agur Blue Cheese\",\n            \"Stilton\", \"Stinking Bishop\", \"String\", \"Sussex Slipcote\", \"Sveciaost\", \"Swaledale\",\n            \"Sweet Style Swiss\", \"Swiss\", \"Syrian (Armenian String)\", \"Tala\", \"Taleggio\", \"Tamie\",\n            \"Tasmania Highland Chevre Log\", \"Taupiniere\", \"Teifi\", \"Telemea\", \"Testouri\",\n            \"Tete de Moine\", \"Tetilla\", \"Texas Goat Cheese\", \"Tibet\", \"Tillamook Cheddar\",\n            \"Tilsit\", \"Timboon Brie\", \"Toma\", \"Tomme Brulee\", \"Tomme d'Abondance\",\n            \"Tomme de Chevre\", \"Tomme de Romans\", \"Tomme de Savoie\", \"Tomme des Chouans\", \"Tommes\",\n            \"Torta del Casar\", \"Toscanello\", \"Touree de L'Aubier\", \"Tourmalet\",\n            \"Trappe (Veritable)\", \"Trois Cornes De Vendee\", \"Tronchon\", \"Trou du Cru\", \"Truffe\",\n            \"Tupi\", \"Turunmaa\", \"Tymsboro\", \"Tyn Grug\", \"Tyning\", \"Ubriaco\", \"Ulloa\",\n            \"Vacherin-Fribourgeois\", \"Valencay\", \"Vasterbottenost\", \"Venaco\", \"Vendomois\",\n            \"Vieux Corse\", \"Vignotte\", \"Vulscombe\", \"Waimata Farmhouse Blue\",\n            \"Washed Rind Cheese (Australian)\", \"Waterloo\", \"Weichkaese\", \"Wellington\",\n            \"Wensleydale\", \"White Stilton\", \"Whitestone Farmhouse\", \"Wigmore\", \"Woodside Cabecou\",\n            \"Xanadu\", \"Xynotyro\", \"Yarg Cornish\", \"Yarra Valley Pyramid\", \"Yorkshire Blue\",\n            \"Zamorano\", \"Zanetti Grana Padano\", \"Zanetti Parmigiano Reggiano\"\n    };\n\n    public static String getRandomCheeseName() {\n        return sCheeseStrings[RANDOM.nextInt(sCheeseStrings.length-1)];\n    }\n\n    public static Cheese getRandomCheese() {\n        return new Cheese(getRandomCheeseDrawable(), getRandomCheeseName());\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/ColorUtils.java",
    "content": "/*\n * Copyright 2015 Google Inc.\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\npackage com.commit451.elasticdragdismisslayout.sample;\n\nimport androidx.annotation.ColorInt;\nimport androidx.annotation.FloatRange;\nimport androidx.annotation.IntRange;\n\n/**\n * Utility methods for working with colors.\n */\npublic class ColorUtils {\n\n    private ColorUtils() {\n    }\n\n    /**\n     * Set the alpha component of {@code color} to be {@code alpha}.\n     */\n    public static int modifyAlpha(@ColorInt int color, @IntRange(from = 0, to = 255) int alpha) {\n        return (color & 0x00ffffff) | (alpha << 24);\n    }\n\n    /**\n     * Set the alpha component of {@code color} to be {@code alpha}.\n     */\n    public static int modifyAlpha(@ColorInt int color,\n                                  @FloatRange(from = 0f, to = 1f) float alpha) {\n        return modifyAlpha(color, (int) (255f * alpha));\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/DetailActivity.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.transition.TransitionInflater;\nimport android.view.View;\n\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\n\nimport com.commit451.elasticdragdismisslayout.ElasticDragDismissCallback;\nimport com.commit451.elasticdragdismisslayout.ElasticDragDismissFrameLayout;\n\nimport butterknife.BindView;\nimport butterknife.ButterKnife;\n\n/**\n * Sample detail activity\n */\npublic class DetailActivity extends AppCompatActivity {\n\n    private static final String KEY_CHEESE = \"cheese\";\n\n    public static Intent newIntent(Context context, Cheese cheese) {\n        Intent intent = new Intent(context, DetailActivity.class);\n        intent.putExtra(KEY_CHEESE, cheese);\n        return intent;\n    }\n\n    @BindView(R.id.toolbar)\n    Toolbar toolbar;\n    @BindView(R.id.draggable_frame)\n    ElasticDragDismissFrameLayout draggableFrame;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_detail);\n        ButterKnife.bind(this);\n\n        Cheese cheese = (Cheese) getIntent().getSerializableExtra(KEY_CHEESE);\n\n        toolbar.setNavigationIcon(R.drawable.ic_arrow_back_24dp);\n        toolbar.setNavigationOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View v) {\n                onBackPressed();\n            }\n        });\n        toolbar.setTitle(cheese.getName());\n\n        draggableFrame.addListener(new ElasticDragDismissCallback() {\n            @Override\n            public void onDrag(float elasticOffset, float elasticOffsetPixels, float rawOffset, float rawOffsetPixels) {\n            }\n\n            @Override\n            public void onDragDismissed() {\n                // if we drag dismiss downward then the default reversal of the enter\n                // transition would slide content upward which looks weird. So reverse it.\n                if (draggableFrame.getTranslationY() > 0 && Build.VERSION.SDK_INT >= 21) {\n                    getWindow().setReturnTransition(\n                            TransitionInflater.from(DetailActivity.this)\n                                    .inflateTransition(R.transition.about_return_downward));\n                }\n                if (Build.VERSION.SDK_INT >= 21) {\n                    finishAfterTransition();\n                } else {\n                    finish();\n                }\n            }\n        });\n        if (Build.VERSION.SDK_INT >= 21) {\n            draggableFrame.addListener(new SystemChromeFader(this));\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/DetailRecyclerViewActivity.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.TextView;\n\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.recyclerview.widget.LinearLayoutManager;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport com.commit451.elasticdragdismisslayout.ElasticDragDismissCallback;\nimport com.commit451.elasticdragdismisslayout.ElasticDragDismissLinearLayout;\n\nimport butterknife.BindView;\nimport butterknife.ButterKnife;\n\n/**\n * Testing using a RecyclerView\n */\npublic class DetailRecyclerViewActivity extends AppCompatActivity {\n\n    public static Intent newIntent(Context context) {\n        Intent intent = new Intent(context, DetailRecyclerViewActivity.class);\n        return intent;\n    }\n\n    @BindView(R.id.toolbar)\n    Toolbar toolbar;\n    @BindView(R.id.draggable_frame)\n    ElasticDragDismissLinearLayout dragLayout;\n    @BindView(R.id.recyclerview)\n    RecyclerView recyclerView;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_detail_recyclerview);\n        ButterKnife.bind(this);\n        toolbar.setTitle(\"Countries\");\n        toolbar.setNavigationIcon(R.drawable.ic_arrow_back_24dp);\n        toolbar.setNavigationOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View v) {\n                onBackPressed();\n            }\n        });\n\n        CountriesAdapter adapter = new CountriesAdapter(this);\n        recyclerView.setAdapter(adapter);\n        recyclerView.setLayoutManager(new LinearLayoutManager(this));\n        dragLayout.addListener(new ElasticDragDismissCallback() {\n            @Override\n            public void onDrag(float elasticOffset, float elasticOffsetPixels, float rawOffset, float rawOffsetPixels) {\n            }\n\n            @Override\n            public void onDragDismissed() {\n                // if we drag dismiss downward then the default reversal of the enter\n                // transition would slide content upward which looks weird. So reverse it.\n                if (dragLayout.getTranslationY() > 0) {\n                    //TODO\n                    //                            getWindow().setReturnTransition(\n                    //                                    TransitionInflater.from(AboutActivity.this)\n                    //                                            .inflateTransition(R.transition.about_return_downward));\n                }\n                if (Build.VERSION.SDK_INT >= 21) {\n                    finishAfterTransition();\n                } else {\n                    finish();\n                }\n            }\n        });\n        if (Build.VERSION.SDK_INT >= 21) {\n            dragLayout.addListener(new SystemChromeFader(this));\n        }\n    }\n\n    static class CountriesAdapter extends RecyclerView.Adapter<CountriesViewHolder> {\n\n        String[] countries;\n\n        public CountriesAdapter(Context context) {\n            countries = context.getResources().getStringArray(R.array.countries);\n\n        }\n\n        @Override\n        public CountriesViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n            return CountriesViewHolder.inflate(parent);\n        }\n\n        @Override\n        public void onBindViewHolder(CountriesViewHolder holder, int position) {\n            holder.bind(countries[position]);\n        }\n\n        @Override\n        public int getItemCount() {\n            return countries.length;\n        }\n    }\n\n    static class CountriesViewHolder extends RecyclerView.ViewHolder {\n\n        public static CountriesViewHolder inflate(ViewGroup parent) {\n            View view = LayoutInflater.from(parent.getContext())\n                    .inflate(R.layout.viewholder_game, parent, false);\n            return new CountriesViewHolder(view);\n        }\n\n        @BindView(R.id.text)\n        TextView mText;\n\n        public CountriesViewHolder(View view) {\n            super(view);\n            ButterKnife.bind(this, view);\n        }\n\n        public void bind(String country) {\n            mText.setText(country);\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/MainActivity.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.MenuItem;\n\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.recyclerview.widget.GridLayoutManager;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimport java.util.ArrayList;\n\nimport butterknife.BindView;\nimport butterknife.ButterKnife;\n\npublic class MainActivity extends AppCompatActivity {\n\n    @BindView(R.id.toolbar)\n    Toolbar toolbar;\n    @BindView(R.id.recyclerview)\n    RecyclerView recyclerView;\n\n    CheeseAdapter cheeseAdapter;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        ButterKnife.bind(this);\n        toolbar.setTitle(\"ElasticDragDismissLayout\");\n        toolbar.inflateMenu(R.menu.main);\n        toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {\n            @Override\n            public boolean onMenuItemClick(MenuItem item) {\n                switch (item.getItemId()) {\n                    case R.id.action_recyclerview:\n                        Intent intent = DetailRecyclerViewActivity.newIntent(MainActivity.this);\n                        startActivity(intent);\n                        return true;\n                }\n                return false;\n            }\n        });\n        cheeseAdapter = new CheeseAdapter(MainActivity.this, new CheeseAdapter.Listener() {\n            @Override\n            public void onItemClicked(Cheese cheese) {\n                startActivity(DetailActivity.newIntent(MainActivity.this, cheese));\n            }\n        });\n        recyclerView.setAdapter(cheeseAdapter);\n        recyclerView.setLayoutManager(new GridLayoutManager(this, 2));\n        load();\n    }\n\n    private void load() {\n        ArrayList<Cheese> cheeses = new ArrayList<>();\n        for (int i = 0; i < 20; i++) {\n            cheeses.add(Cheeses.getRandomCheese());\n        }\n        cheeseAdapter.setData(cheeses);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/commit451/elasticdragdismisslayout/sample/SystemChromeFader.java",
    "content": "package com.commit451.elasticdragdismisslayout.sample;\n\nimport android.annotation.TargetApi;\nimport android.app.Activity;\nimport android.graphics.Color;\n\nimport com.commit451.elasticdragdismisslayout.ElasticDragDismissCallback;\nimport com.commit451.viewtiful.Viewtiful;\n\n/**\n * An {@link ElasticDragDismissCallback} which fades system chrome (i.e. status bar and\n * navigation bar) when elastic drags are performed. Consuming classes must provide the\n * implementation for {@link ElasticDragDismissCallback#onDragDismissed()}.\n */\n@TargetApi(21)\npublic class SystemChromeFader extends ElasticDragDismissCallback {\n\n    private final Activity activity;\n    private final int statusBarAlpha;\n    private final int navBarAlpha;\n    private final boolean fadeNavBar;\n\n    public SystemChromeFader(Activity activity) {\n        this.activity = activity;\n        statusBarAlpha = Color.alpha(activity.getWindow().getStatusBarColor());\n        navBarAlpha = Color.alpha(activity.getWindow().getNavigationBarColor());\n        fadeNavBar = Viewtiful.isNavigationBarOnBottom(activity);\n    }\n\n    @Override\n    public void onDrag(float elasticOffset, float elasticOffsetPixels,\n                       float rawOffset, float rawOffsetPixels) {\n        if (elasticOffsetPixels > 0) {\n            // dragging downward, fade the status bar in proportion\n            activity.getWindow().setStatusBarColor(ColorUtils.modifyAlpha(activity.getWindow()\n                    .getStatusBarColor(), (int) ((1f - rawOffset) * statusBarAlpha)));\n        } else if (elasticOffsetPixels == 0) {\n            // reset\n            activity.getWindow().setStatusBarColor(ColorUtils.modifyAlpha(\n                    activity.getWindow().getStatusBarColor(), statusBarAlpha));\n            activity.getWindow().setNavigationBarColor(ColorUtils.modifyAlpha(\n                    activity.getWindow().getNavigationBarColor(), navBarAlpha));\n        } else if (fadeNavBar) {\n            // dragging upward, fade the navigation bar in proportion\n            activity.getWindow().setNavigationBarColor(\n                    ColorUtils.modifyAlpha(activity.getWindow().getNavigationBarColor(),\n                            (int) ((1f - rawOffset) * navBarAlpha)));\n        }\n    }\n\n    public void onDragDismissed() {\n        activity.finishAfterTransition();\n    }\n}"
  },
  {
    "path": "app/src/main/res/drawable/ic_arrow_back_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#FFFFFFFF\"\n        android:pathData=\"M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_favorite_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#FFFFFFFF\"\n        android:pathData=\"M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_detail.xml",
    "content": "<com.commit451.elasticdragdismisslayout.ElasticDragDismissFrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/draggable_frame\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    android:background=\"@android:color/white\"\n    app:dragDismissDistance=\"@dimen/drag_dismiss_distance\"\n    app:dragDismissScale=\"0.95\"\n    app:dragDismissEnableBottomDrag=\"true\">\n\n    <View\n        android:id=\"@+id/libs_list_background\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:background=\"@android:color/white\" />\n\n    <androidx.appcompat.widget.Toolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"?attr/actionBarSize\"\n        android:background=\"?attr/colorPrimary\" />\n\n    <androidx.core.widget.NestedScrollView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"?attr/actionBarSize\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:orientation=\"vertical\">\n\n            <TextView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:padding=\"16dp\"\n                android:textColor=\"@android:color/black\"\n                android:textSize=\"22sp\"\n                android:text=\"@string/cheese_ipsum\" />\n\n\n        </LinearLayout>\n\n    </androidx.core.widget.NestedScrollView>\n\n</com.commit451.elasticdragdismisslayout.ElasticDragDismissFrameLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_detail_recyclerview.xml",
    "content": "<com.commit451.elasticdragdismisslayout.ElasticDragDismissLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/draggable_frame\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    app:dragDismissDistance=\"@dimen/drag_dismiss_distance\"\n    app:dragDismissScale=\"0.95\">\n\n    <androidx.appcompat.widget.Toolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"?attr/actionBarSize\"\n        android:background=\"#993F51B5\" />\n\n    <androidx.recyclerview.widget.RecyclerView\n        android:id=\"@+id/recyclerview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\" />\n\n</com.commit451.elasticdragdismisslayout.ElasticDragDismissLinearLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:id=\"@+id/root\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\">\n\n    <androidx.appcompat.widget.Toolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"?attr/actionBarSize\"\n        android:background=\"?attr/colorPrimary\" />\n\n    <androidx.recyclerview.widget.RecyclerView\n        android:id=\"@+id/recyclerview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\" />\n\n</LinearLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/item_cheese.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n             xmlns:tools=\"http://schemas.android.com/tools\"\n             android:layout_width=\"match_parent\"\n             android:layout_height=\"180dp\"\n             android:foreground=\"?selectableItemBackground\">\n\n    <ImageView\n        android:id=\"@+id/image\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:contentDescription=\"@null\"\n        android:scaleType=\"centerCrop\"\n        tools:src=\"@drawable/cheese_1\" />\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"bottom\"\n        android:background=\"#99a8a8a8\">\n\n        <TextView\n            android:id=\"@+id/name\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_gravity=\"center_vertical\"\n            android:padding=\"8dp\" />\n    </LinearLayout>\n</FrameLayout>"
  },
  {
    "path": "app/src/main/res/layout/viewholder_game.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"180dp\">\n\n    <ImageView\n        android:id=\"@+id/image\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:contentDescription=\"@null\"\n        android:scaleType=\"centerCrop\"\n        tools:src=\"@mipmap/ic_launcher\"/>\n\n    <TextView\n        android:id=\"@+id/text\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"16sp\"\n        android:singleLine=\"true\"\n        android:ellipsize=\"end\"\n        android:layout_gravity=\"bottom\"\n        android:background=\"#99000000\"\n        android:padding=\"16dp\"\n        tools:text=\"Hello\"/>\n\n</FrameLayout>"
  },
  {
    "path": "app/src/main/res/menu/main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n\n    <item\n        android:id=\"@+id/action_recyclerview\"\n        app:showAsAction=\"never\"\n        android:title=\"@string/recyclerview\"/>\n\n</menu>"
  },
  {
    "path": "app/src/main/res/transition/about_return_downward.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  Copyright 2015 Google Inc.\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\n<transitionSet\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:transitionOrdering=\"together\"\n    android:interpolator=\"@android:interpolator/fast_out_linear_in\">\n\n    <slide\n        android:slideEdge=\"bottom\"\n        android:duration=\"400\">\n        <targets>\n            <target android:excludeId=\"@android:id/navigationBarBackground\" />\n            <target android:excludeId=\"@android:id/statusBarBackground\" />\n        </targets>\n    </slide>\n\n    <fade\n        android:startDelay=\"200\"\n        android:duration=\"200\">\n        <targets>\n            <target android:targetId=\"@id/libs_list_background\" />\n        </targets>\n    </fade>\n\n    <fade android:duration=\"400\">\n        <targets>\n            <target android:targetId=\"@android:id/navigationBarBackground\" />\n            <target android:targetId=\"@android:id/statusBarBackground\" />\n        </targets>\n    </fade>\n\n</transitionSet>\n"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#3F51B5</color>\n    <color name=\"colorPrimaryDark\">#303F9F</color>\n    <color name=\"colorAccent\">#FF4081</color>\n\n    <color name=\"scrim\">#99323232</color>\n</resources>\n"
  },
  {
    "path": "app/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\n    <dimen name=\"drag_dismiss_distance\">112dp</dimen> <!-- 2 * ?android:actionBarSize -->\n\n    <dimen name=\"detail_backdrop_height\">256dp</dimen>\n    <dimen name=\"card_margin\">16dp</dimen>\n    <dimen name=\"fab_margin\">16dp</dimen>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/ids.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <item name=\"list_position\" type=\"id\"/>\n    <item name=\"list_holder\" type=\"id\"/>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">ElasticDragDismissLayout</string>\n\n    <string name=\"cheese_ipsum\">Jarlsberg lancashire edam. Dolcelatte hard cheese brie st. agur blue\n    cheese caerphilly bavarian bergkase cheese and biscuits mascarpone. Cheeseburger swiss bavarian\n    bergkase cream cheese fromage frais cheesy feet port-salut airedale. St. agur blue cheese rubber\n    cheese caerphilly cheddar cheesecake cream cheese manchego lancashire. Roquefort squirty cheese\n    the big cheese.</string>\n    <string name=\"recyclerview\">RecyclerView Example</string>\n    <string-array name=\"countries\">\n        <item>Afghanistan</item>\n        <item>Albania</item>\n        <item>Algeria</item>\n        <item>American Samoa</item>\n        <item>Andorra</item>\n        <item>Angola</item>\n        <item>Anguilla</item>\n        <item>Antarctica</item>\n        <item>Antigua and Barbuda</item>\n        <item>Argentina</item>\n        <item>Armenia</item>\n        <item>Aruba</item>\n        <item>Australia</item>\n        <item>Austria</item>\n        <item>Azerbaijan</item>\n        <item>Bahamas</item>\n        <item>Bahrain</item>\n        <item>Bangladesh</item>\n        <item>Barbados</item>\n        <item>Belarus</item>\n        <item>Belgium</item>\n        <item>Belize</item>\n        <item>Benin</item>\n        <item>Bermuda</item>\n        <item>Bhutan</item>\n        <item>Bolivia</item>\n        <item>Bosnia and Herzegovina</item>\n        <item>Botswana</item>\n        <item>Brazil</item>\n        <item>British Indian Ocean Territory</item>\n        <item>British Virgin Islands</item>\n        <item>Brunei</item>\n        <item>Bulgaria</item>\n        <item>Burkina Faso</item>\n        <item>Burundi</item>\n        <item>Cambodia</item>\n        <item>Cameroon</item>\n        <item>Canada</item>\n        <item>Cape Verde</item>\n        <item>Cayman Islands</item>\n        <item>Central African Republic</item>\n        <item>Chad</item>\n        <item>Chile</item>\n        <item>China</item>\n        <item>Christmas Island</item>\n        <item>Cocos Islands</item>\n        <item>Colombia</item>\n        <item>Comoros</item>\n        <item>Cook Islands</item>\n        <item>Costa Rica</item>\n        <item>Croatia</item>\n        <item>Cuba</item>\n        <item>Cyprus</item>\n        <item>Czech Republic</item>\n        <item>Democratic Republic of the Congo</item>\n        <item>Denmark</item>\n        <item>Djibouti</item>\n        <item>Dominica</item>\n        <item>Dominican Republic</item>\n        <item>East Timor</item>\n        <item>Ecuador</item>\n        <item>Egypt</item>\n        <item>El Salvador</item>\n        <item>Equatorial Guinea</item>\n        <item>Eritrea</item>\n        <item>Estonia</item>\n        <item>Ethiopia</item>\n        <item>Falkland Islands</item>\n        <item>Faroe Islands</item>\n        <item>Fiji</item>\n        <item>Finland</item>\n        <item>France</item>\n        <item>French Polynesia</item>\n        <item>Gabon</item>\n        <item>Gambia</item>\n        <item>Georgia</item>\n        <item>Germany</item>\n        <item>Ghana</item>\n        <item>Gibraltar</item>\n        <item>Greece</item>\n        <item>Greenland</item>\n        <item>Grenada</item>\n        <item>Guam</item>\n        <item>Guatemala</item>\n        <item>Guinea</item>\n        <item>Guinea-Bissau</item>\n        <item>Guyana</item>\n        <item>Haiti</item>\n        <item>Honduras</item>\n        <item>Hong Kong</item>\n        <item>Hungary</item>\n        <item>Iceland</item>\n        <item>India</item>\n        <item>Indonesia</item>\n        <item>Iran</item>\n        <item>Iraq</item>\n        <item>Ireland</item>\n        <item>Isle of Man</item>\n        <item>Israel</item>\n        <item>Italy</item>\n        <item>Ivory Coast</item>\n        <item>Jamaica</item>\n        <item>Japan</item>\n        <item>Jersey</item>\n        <item>Jordan</item>\n        <item>Kazakhstan</item>\n        <item>Kenya</item>\n        <item>Kiribati</item>\n        <item>Kuwait</item>\n        <item>Kyrgyzstan</item>\n        <item>Laos</item>\n        <item>Latvia</item>\n        <item>Lebanon</item>\n        <item>Lesotho</item>\n        <item>Liberia</item>\n        <item>Libya</item>\n        <item>Liechtenstein</item>\n        <item>Lithuania</item>\n        <item>Luxembourg</item>\n        <item>Macao</item>\n        <item>Macedonia</item>\n        <item>Madagascar</item>\n        <item>Malawi</item>\n        <item>Malaysia</item>\n        <item>Maldives</item>\n        <item>Mali</item>\n        <item>Malta</item>\n        <item>Marshall Islands</item>\n        <item>Mauritania</item>\n        <item>Mauritius</item>\n        <item>Mayotte</item>\n        <item>Mexico</item>\n        <item>Micronesia</item>\n        <item>Moldova</item>\n        <item>Monaco</item>\n        <item>Mongolia</item>\n        <item>Montenegro</item>\n        <item>Montserrat</item>\n        <item>Morocco</item>\n        <item>Mozambique</item>\n        <item>Myanmar</item>\n        <item>Namibia</item>\n        <item>Nauru</item>\n        <item>Nepal</item>\n        <item>Netherlands</item>\n        <item>Netherlands Antilles</item>\n        <item>New Caledonia</item>\n        <item>New Zealand</item>\n        <item>Nicaragua</item>\n        <item>Niger</item>\n        <item>Nigeria</item>\n        <item>Niue</item>\n        <item>North Korea</item>\n        <item>Northern Mariana Islands</item>\n        <item>Norway</item>\n        <item>Oman</item>\n        <item>Pakistan</item>\n        <item>Palau</item>\n        <item>Panama</item>\n        <item>Papua New Guinea</item>\n        <item>Paraguay</item>\n        <item>Peru</item>\n        <item>Philippines</item>\n        <item>Pitcairn</item>\n        <item>Poland</item>\n        <item>Portugal</item>\n        <item>Puerto Rico</item>\n        <item>Qatar</item>\n        <item>Republic of the Congo</item>\n        <item>Romania</item>\n        <item>Russia</item>\n        <item>Rwanda</item>\n        <item>Saint Barthelemy</item>\n        <item>Saint Helena</item>\n        <item>Saint Kitts and Nevis</item>\n        <item>Saint Lucia</item>\n        <item>Saint Martin</item>\n        <item>Saint Pierre and Miquelon</item>\n        <item>Saint Vincent and the Grenadines</item>\n        <item>Samoa</item>\n        <item>San Marino</item>\n        <item>Sao Tome and Principe</item>\n        <item>Saudi Arabia</item>\n        <item>Senegal</item>\n        <item>Serbia</item>\n        <item>Seychelles</item>\n        <item>Sierra Leone</item>\n        <item>Singapore</item>\n        <item>Slovakia</item>\n        <item>Slovenia</item>\n        <item>Solomon Islands</item>\n        <item>Somalia</item>\n        <item>South Africa</item>\n        <item>South Georgia and the South Sandwich Islands</item>\n        <item>South Korea</item>\n        <item>Spain</item>\n        <item>Sri Lanka</item>\n        <item>Sudan</item>\n        <item>Suriname</item>\n        <item>Svalbard and Jan Mayen</item>\n        <item>Swaziland</item>\n        <item>Sweden</item>\n        <item>Switzerland</item>\n        <item>Syria</item>\n        <item>Taiwan</item>\n        <item>Tajikistan</item>\n        <item>Tanzania</item>\n        <item>Thailand</item>\n        <item>Togo</item>\n        <item>Tokelau</item>\n        <item>Tonga</item>\n        <item>Trinidad and Tobago</item>\n        <item>Tunisia</item>\n        <item>Turkey</item>\n        <item>Turkmenistan</item>\n        <item>Turks and Caicos Islands</item>\n        <item>Tuvalu</item>\n        <item>U.S. Virgin Islands</item>\n        <item>Uganda</item>\n        <item>Ukraine</item>\n        <item>United Arab Emirates</item>\n        <item>United Kingdom</item>\n        <item>United States</item>\n        <item>Uruguay</item>\n        <item>Uzbekistan</item>\n        <item>Vanuatu</item>\n        <item>Vatican</item>\n        <item>Venezuela</item>\n        <item>Vietnam</item>\n        <item>Wallis and Futuna</item>\n        <item>Western Sahara</item>\n        <item>Yemen</item>\n        <item>Zambia</item>\n        <item>Zimbabwe</item>\n    </string-array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.NoActionBar\">\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        <item name=\"android:windowAllowEnterTransitionOverlap\" tools:targetApi=\"lollipop\">true</item>\n        <item name=\"android:windowAllowReturnTransitionOverlap\" tools:targetApi=\"lollipop\">true</item>\n        <item name=\"android:windowSharedElementsUseOverlay\" tools:targetApi=\"lollipop\">false</item>\n    </style>\n\n    <style name=\"AppTheme.Translucent\">\n        <!-- using a semi-transparent window background for the drag-back gesture -->\n        <item name=\"android:windowBackground\">@color/scrim</item>\n        <item name=\"android:colorBackgroundCacheHint\">@null</item>\n        <item name=\"android:windowContentOverlay\">@null</item>\n        <item name=\"android:windowIsFloating\">false</item>\n        <item name=\"android:windowIsTranslucent\">true</item>\n        <item name=\"android:windowNoTitle\">true</item>\n        <item name=\"android:windowDrawsSystemBarBackgrounds\" tools:targetApi=\"lollipop\">true</item>\n    </style>\n\n    <style name=\"Widget.CardContent\" parent=\"android:Widget\">\n        <item name=\"android:paddingLeft\">16dp</item>\n        <item name=\"android:paddingRight\">16dp</item>\n        <item name=\"android:paddingTop\">24dp</item>\n        <item name=\"android:paddingBottom\">24dp</item>\n        <item name=\"android:orientation\">vertical</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "build.gradle",
    "content": "buildscript {\n    repositories {\n        jcenter()\n        google()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.4.1'\n        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'\n    }\n}\n\nallprojects {\n    repositories {\n        jcenter()\n        google()\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "elasticdragdismisslayout/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "elasticdragdismisslayout/build.gradle",
    "content": "apply plugin: 'com.android.library'\n\nandroid {\n    compileSdkVersion 28\n\n    defaultConfig {\n        minSdkVersion 14\n        targetSdkVersion 27\n        versionCode 1\n        versionName \"1.0\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n    lintOptions {\n        abortOnError false\n    }\n}\n\ndependencies {\n    api 'androidx.legacy:legacy-support-v4:1.0.0'\n}\n\napply from: 'https://raw.githubusercontent.com/Commit451/gradle-android-javadocs/1.0.0/gradle-android-javadocs.gradle'\n\n"
  },
  {
    "path": "elasticdragdismisslayout/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in C:\\Users\\Jawn\\Develop\\Android\\sdk/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the proguardFiles\n# directive in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.commit451.elasticdragdismisslayout\">\n\n</manifest>\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/java/com/commit451/elasticdragdismisslayout/ElasticDragDismissCallback.java",
    "content": "package com.commit451.elasticdragdismisslayout;\n\n/**\n * Callbacks for listening for drag events on ElasticLayouts\n */\npublic abstract class ElasticDragDismissCallback {\n\n    /**\n     * Called for each drag event.\n     *\n     * @param elasticOffset       Indicating the drag offset with elasticity applied i.e. may\n     *                            exceed 1.\n     * @param elasticOffsetPixels The elastically scaled drag distance in pixels.\n     * @param rawOffset           Value from [0, 1] indicating the raw drag offset i.e.\n     *                            without elasticity applied. A value of 1 indicates that the\n     *                            dismiss distance has been reached.\n     * @param rawOffsetPixels     The raw distance the user has dragged\n     */\n    public void onDrag(float elasticOffset, float elasticOffsetPixels,\n                       float rawOffset, float rawOffsetPixels) {\n    }\n\n    /**\n     * Called when dragging is released and has exceeded the threshold dismiss distance.\n     */\n    public void onDragDismissed() {\n    }\n\n}"
  },
  {
    "path": "elasticdragdismisslayout/src/main/java/com/commit451/elasticdragdismisslayout/ElasticDragDismissDelegate.java",
    "content": "package com.commit451.elasticdragdismisslayout;\n\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.view.ViewPropertyAnimator;\n\nimport androidx.interpolator.view.animation.FastOutSlowInInterpolator;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Defer all the things to this class, so that we can create the layouts easily. Use this\n * to create your own ViewGroups\n */\npublic class ElasticDragDismissDelegate {\n\n    //copied from View in API 21\n    private static final int SCROLL_AXIS_VERTICAL = 1 << 1;\n\n    private static final long DRAG_DURATION_BUFFER = 150L;\n\n    // configurable attribs\n    private float dragDismissDistance = Float.MAX_VALUE;\n    private float dragDismissFraction = -1f;\n    private float dragDismissScale = 1f;\n    private boolean shouldScale = false;\n    private float dragElacticity = 0.8f;\n    private long scrollStartTimestamp;\n\n    private boolean enableScaleX = true;\n\n    private boolean enableBottomDrag = false;\n\n    // state\n    private float totalDrag;\n    private boolean draggingDown = false;\n    private boolean draggingUp = false;\n\n    private List<ElasticDragDismissCallback> callbacks;\n    private ViewGroup mViewGroup;\n\n    public ElasticDragDismissDelegate(ViewGroup viewGroup) {\n        mViewGroup = viewGroup;\n    }\n\n    public void init(Context context, TypedArray a) {\n        Util.checkParent(mViewGroup, a);\n\n        if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_dragDismissDistance)) {\n            dragDismissDistance = a.getDimensionPixelSize(R.styleable\n                    .ElasticDragDismissFrameLayout_dragDismissDistance, 0);\n        } else if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_dragDismissFraction)) {\n            dragDismissFraction = a.getFloat(R.styleable\n                    .ElasticDragDismissFrameLayout_dragDismissFraction, dragDismissFraction);\n        }\n        if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_dragDismissScale)) {\n            dragDismissScale = a.getFloat(R.styleable\n                    .ElasticDragDismissFrameLayout_dragDismissScale, dragDismissScale);\n            shouldScale = dragDismissScale != 1f;\n        }\n        if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_dragElasticity)) {\n            dragElacticity = a.getFloat(R.styleable.ElasticDragDismissFrameLayout_dragElasticity,\n                    dragElacticity);\n        }\n        if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_enableScaleX)) {\n            enableScaleX = a.getBoolean(R.styleable.ElasticDragDismissFrameLayout_enableScaleX, true);\n        }\n        if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_dragDismissEnableBottomDrag)) {\n            enableBottomDrag = a.getBoolean(R.styleable.ElasticDragDismissFrameLayout_dragDismissEnableBottomDrag, true);\n        }\n    }\n\n    public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {\n        scrollStartTimestamp = System.currentTimeMillis();\n        return (nestedScrollAxes & SCROLL_AXIS_VERTICAL) != 0;\n    }\n\n    public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) {\n        // if we're in a drag gesture and the user reverses up the we should take those events\n        if (draggingDown && dy > 0 || draggingUp && dy < 0) {\n            dragScale(dy);\n            consumed[1] = dy;\n\n        }\n    }\n\n    public void onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) {\n        dragScale(dyUnconsumed);\n    }\n\n    public void onStopNestedScroll(View child) {\n        // if the drag is too fast it probably was not an intentional drag but a fling, don't dismiss\n        final long dragTime = System.currentTimeMillis() - scrollStartTimestamp;\n        if (Math.abs(totalDrag) >= dragDismissDistance && dragTime > DRAG_DURATION_BUFFER) {\n            dispatchDismissCallback();\n        } else { // settle back to natural position\n            ViewPropertyAnimator animator = mViewGroup.animate()\n                    .translationY(0f)\n                    .scaleY(1f)\n                    .setDuration(200L)\n                    .setInterpolator(new FastOutSlowInInterpolator())\n                    .setListener(null);\n            if (enableScaleX) {\n                animator.scaleX(1f);\n            }\n\n            animator.start();\n\n            totalDrag = 0;\n            draggingDown = draggingUp = false;\n            dispatchDragCallback(0f, 0f, 0f, 0f);\n        }\n    }\n\n    private void dragScale(int scroll) {\n        boolean draggingUp = enableBottomDrag && this.draggingUp;\n        if (scroll == 0) return;\n        if (draggingUp || scroll < 0)\n            totalDrag += scroll;\n\n        // track the direction & set the pivot point for scaling\n        // don't double track i.e. if start dragging down and then reverse, keep tracking as\n        // dragging down until they reach the 'natural' position\n        if (scroll < 0 && !draggingUp && !draggingDown) {\n            draggingDown = true;\n            if (shouldScale) mViewGroup.setPivotY(mViewGroup.getHeight());\n        } else if (scroll > 0 && !draggingDown && !draggingUp) {\n            this.draggingUp = true;\n            if (shouldScale) mViewGroup.setPivotY(0f);\n        }\n        // how far have we dragged relative to the distance to perform a dismiss\n        // (0–1 where 1 = dismiss distance). Decreasing logarithmically as we approach the limit\n        float dragFraction = (float) Math.log10(1 + (Math.abs(totalDrag) / dragDismissDistance));\n\n        // calculate the desired translation given the drag fraction\n        float dragTo = dragFraction * dragDismissDistance * dragElacticity;\n\n        if (draggingUp) {\n            // as we use the absolute magnitude when calculating the drag fraction, need to\n            // re-apply the drag direction\n            dragTo *= -1;\n        }\n        mViewGroup.setTranslationY(dragTo);\n\n        if (shouldScale) {\n            final float scale = 1 - ((1 - dragDismissScale) * dragFraction);\n            if (enableScaleX) {\n                mViewGroup.setScaleX(scale);\n            }\n            mViewGroup.setScaleY(scale);\n        }\n\n        // if we've reversed direction and gone past the settle point then clear the flags to\n        // allow the list to get the scroll events & reset any transforms\n        if ((draggingDown && totalDrag >= 0)\n                || (draggingUp && totalDrag <= 0)) {\n            totalDrag = dragTo = dragFraction = 0;\n            draggingDown = this.draggingUp = false;\n            mViewGroup.setTranslationY(0f);\n            if (enableScaleX) {\n                mViewGroup.setScaleX(1f);\n            }\n            mViewGroup.setScaleY(1f);\n        }\n        dispatchDragCallback(dragFraction, dragTo,\n                Math.min(1f, Math.abs(totalDrag) / dragDismissDistance), totalDrag);\n    }\n\n    public void onSizeChanged(int w, int h, int oldw, int oldh) {\n        if (dragDismissFraction > 0f) {\n            dragDismissDistance = h * dragDismissFraction;\n        }\n    }\n\n    private void dispatchDragCallback(float elasticOffset, float elasticOffsetPixels,\n                                      float rawOffset, float rawOffsetPixels) {\n        if (callbacks != null && !callbacks.isEmpty()) {\n            for (ElasticDragDismissCallback callback : callbacks) {\n                callback.onDrag(elasticOffset, elasticOffsetPixels,\n                        rawOffset, rawOffsetPixels);\n            }\n        }\n    }\n\n    private void dispatchDismissCallback() {\n        if (callbacks != null && !callbacks.isEmpty()) {\n            for (ElasticDragDismissCallback callback : callbacks) {\n                callback.onDragDismissed();\n            }\n        }\n    }\n\n    public void addListener(ElasticDragDismissCallback listener) {\n        if (callbacks == null) {\n            callbacks = new ArrayList<>();\n        }\n        callbacks.add(listener);\n    }\n\n    public void removeListener(ElasticDragDismissCallback listener) {\n        if (callbacks != null && callbacks.size() > 0) {\n            callbacks.remove(listener);\n        }\n    }\n}\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/java/com/commit451/elasticdragdismisslayout/ElasticDragDismissFrameLayout.java",
    "content": "/*\n * Copyright 2015 Google Inc.\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\npackage com.commit451.elasticdragdismisslayout;\n\nimport android.annotation.TargetApi;\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.util.AttributeSet;\nimport android.view.View;\nimport android.widget.FrameLayout;\n\nimport androidx.core.view.NestedScrollingParent;\n\n/**\n * A {@link FrameLayout} which responds to nested scrolls to create drag-dismissable layouts.\n * Applies an elasticity factor to reduce movement as you approach the given dismiss distance.\n * Optionally also scales down content during drag.\n */\npublic class ElasticDragDismissFrameLayout extends FrameLayout implements NestedScrollingParent {\n\n    private ElasticDragDismissDelegate delegate;\n\n    public ElasticDragDismissFrameLayout(Context context) {\n        this(context, null, 0);\n    }\n\n    public ElasticDragDismissFrameLayout(Context context, AttributeSet attrs) {\n        this(context, attrs, 0);\n    }\n\n    public ElasticDragDismissFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context, attrs);\n    }\n\n    @TargetApi(21)\n    public ElasticDragDismissFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {\n        super(context, attrs, defStyleAttr, defStyleRes);\n        init(context, attrs);\n    }\n\n    private void init(Context context, AttributeSet attrs) {\n        final TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ElasticDragDismissFrameLayout, 0, 0);\n        delegate = new ElasticDragDismissDelegate(this);\n        delegate.init(context, a);\n        a.recycle();\n    }\n\n    @Override\n    public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {\n        return delegate.onStartNestedScroll(child, target, nestedScrollAxes);\n    }\n\n    @Override\n    public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) {\n        delegate.onNestedPreScroll(target, dx, dy, consumed);\n    }\n\n    @Override\n    public void onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) {\n        delegate.onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);\n    }\n\n    @Override\n    public void onStopNestedScroll(View child) {\n        delegate.onStopNestedScroll(child);\n    }\n\n    @Override\n    public void onNestedScrollAccepted(View child, View target, int nestedScrollAxes) {\n    }\n\n    @Override\n    public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {\n        return false;\n    }\n\n    @Override\n    public boolean onNestedPreFling(View target, float velocityX, float velocityY) {\n        return false;\n    }\n\n    @Override\n    public int getNestedScrollAxes() {\n        return 0;\n    }\n\n    @Override\n    protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n        super.onSizeChanged(w, h, oldw, oldh);\n        delegate.onSizeChanged(w, h, oldw, oldh);\n    }\n\n    public void addListener(ElasticDragDismissCallback listener) {\n        delegate.addListener(listener);\n    }\n\n    public void removeListener(ElasticDragDismissCallback listener) {\n        delegate.removeListener(listener);\n    }\n}\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/java/com/commit451/elasticdragdismisslayout/ElasticDragDismissLinearLayout.java",
    "content": "package com.commit451.elasticdragdismisslayout;\n\nimport android.annotation.TargetApi;\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.util.AttributeSet;\nimport android.view.View;\nimport android.widget.LinearLayout;\n\nimport androidx.annotation.NonNull;\nimport androidx.core.view.NestedScrollingParent;\n\n/**\n * Like {@link ElasticDragDismissFrameLayout} but its parent is a {@link android.widget.LinearLayout}\n */\npublic class ElasticDragDismissLinearLayout extends LinearLayout implements NestedScrollingParent {\n\n    private ElasticDragDismissDelegate delegate;\n\n    public ElasticDragDismissLinearLayout(Context context) {\n        this(context, null, 0);\n    }\n\n    public ElasticDragDismissLinearLayout(Context context, AttributeSet attrs) {\n        this(context, attrs, 0);\n    }\n\n    public ElasticDragDismissLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context, attrs);\n    }\n\n    @TargetApi(21)\n    public ElasticDragDismissLinearLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {\n        super(context, attrs, defStyleAttr, defStyleRes);\n        init(context, attrs);\n    }\n\n    private void init(Context context, AttributeSet attrs) {\n        final TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ElasticDragDismissFrameLayout, 0, 0);\n        delegate = new ElasticDragDismissDelegate(this);\n        delegate.init(context, a);\n        a.recycle();\n    }\n\n    @Override\n    public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, int nestedScrollAxes) {\n        return delegate.onStartNestedScroll(child, target, nestedScrollAxes);\n    }\n\n    @Override\n    public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed) {\n        delegate.onNestedPreScroll(target, dx, dy, consumed);\n    }\n\n    @Override\n    public void onNestedScroll(@NonNull View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) {\n        delegate.onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);\n    }\n\n    @Override\n    public void onStopNestedScroll(@NonNull View child) {\n        delegate.onStopNestedScroll(child);\n    }\n\n    @Override\n    public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, int nestedScrollAxes) {\n    }\n\n    @Override\n    public boolean onNestedFling(@NonNull View target, float velocityX, float velocityY, boolean consumed) {\n        return false;\n    }\n\n    @Override\n    public boolean onNestedPreFling(@NonNull View target, float velocityX, float velocityY) {\n        return false;\n    }\n\n    @Override\n    public int getNestedScrollAxes() {\n        return 0;\n    }\n\n    @Override\n    protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n        super.onSizeChanged(w, h, oldw, oldh);\n        delegate.onSizeChanged(w, h, oldw, oldh);\n    }\n\n    public void addListener(ElasticDragDismissCallback listener) {\n        delegate.addListener(listener);\n    }\n\n    public void removeListener(ElasticDragDismissCallback listener) {\n        delegate.removeListener(listener);\n    }\n}\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/java/com/commit451/elasticdragdismisslayout/ElasticDragDismissRelativeLayout.java",
    "content": "package com.commit451.elasticdragdismisslayout;\n\nimport android.annotation.TargetApi;\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.util.AttributeSet;\nimport android.view.View;\nimport android.widget.RelativeLayout;\n\nimport androidx.annotation.NonNull;\nimport androidx.core.view.NestedScrollingParent;\n\n/**\n * Like {@link ElasticDragDismissFrameLayout} but its parent is a {@link android.widget.RelativeLayout}\n */\npublic class ElasticDragDismissRelativeLayout extends RelativeLayout implements NestedScrollingParent {\n\n    private ElasticDragDismissDelegate delegate;\n\n    public ElasticDragDismissRelativeLayout(Context context) {\n        this(context, null, 0);\n    }\n\n    public ElasticDragDismissRelativeLayout(Context context, AttributeSet attrs) {\n        this(context, attrs, 0);\n    }\n\n    public ElasticDragDismissRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context, attrs);\n    }\n\n    @TargetApi(21)\n    public ElasticDragDismissRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {\n        super(context, attrs, defStyleAttr, defStyleRes);\n        init(context, attrs);\n    }\n\n    private void init(Context context, AttributeSet attrs) {\n        final TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ElasticDragDismissFrameLayout, 0, 0);\n        delegate = new ElasticDragDismissDelegate(this);\n        delegate.init(context, a);\n        a.recycle();\n    }\n\n    @Override\n    public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, int nestedScrollAxes) {\n        return delegate.onStartNestedScroll(child, target, nestedScrollAxes);\n    }\n\n    @Override\n    public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed) {\n        delegate.onNestedPreScroll(target, dx, dy, consumed);\n    }\n\n    @Override\n    public void onNestedScroll(@NonNull View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) {\n        delegate.onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);\n    }\n\n    @Override\n    public void onStopNestedScroll(@NonNull View child) {\n        delegate.onStopNestedScroll(child);\n    }\n\n    @Override\n    public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, int nestedScrollAxes) {\n    }\n\n    @Override\n    public boolean onNestedFling(@NonNull View target, float velocityX, float velocityY, boolean consumed) {\n        return false;\n    }\n\n    @Override\n    public boolean onNestedPreFling(@NonNull View target, float velocityX, float velocityY) {\n        return false;\n    }\n\n    @Override\n    public int getNestedScrollAxes() {\n        return 0;\n    }\n\n    @Override\n    protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n        super.onSizeChanged(w, h, oldw, oldh);\n        delegate.onSizeChanged(w, h, oldw, oldh);\n    }\n\n    public void addListener(ElasticDragDismissCallback listener) {\n        delegate.addListener(listener);\n    }\n\n    public void removeListener(ElasticDragDismissCallback listener) {\n        delegate.removeListener(listener);\n    }\n}\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/java/com/commit451/elasticdragdismisslayout/Util.java",
    "content": "package com.commit451.elasticdragdismisslayout;\n\nimport android.content.res.TypedArray;\nimport android.os.Build;\nimport android.view.ViewGroup;\nimport android.widget.ScrollView;\n\nimport androidx.core.widget.NestedScrollView;\n\nclass Util {\n\n    static void checkParent(ViewGroup viewGroup, TypedArray a) {\n        boolean checkParent = true;\n        if (a.hasValue(R.styleable.ElasticDragDismissFrameLayout_ignoreNestedScrollWarnings)) {\n            checkParent = a.getBoolean(R.styleable.ElasticDragDismissFrameLayout_ignoreNestedScrollWarnings, false);\n        }\n        if (!checkParent) {\n            return;\n        }\n        if (viewGroup.getParent() instanceof NestedScrollView) {\n            if (!((NestedScrollView) viewGroup.getParent()).isNestedScrollingEnabled()) {\n                throw new IllegalStateException(\"You need to set nestedScrollingEnabled on the NestedScrollView\");\n            }\n        } else if (viewGroup.getParent() instanceof ScrollView) {\n            if (Build.VERSION.SDK_INT >= 21) {\n                if (!((ScrollView) viewGroup.getParent()).isNestedScrollingEnabled()) {\n                    throw new IllegalStateException(\"You need to set nestedScrollingEnabled on the ScrollView\");\n\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "elasticdragdismisslayout/src/main/res/values/attrs_drag_dismissables.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  Copyright 2015 Google Inc.\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\n<resources>\n\n    <declare-styleable name=\"ElasticDragDismissFrameLayout\">\n        <attr name=\"dragDismissDistance\" format=\"dimension\" />\n        <attr name=\"dragDismissFraction\" format=\"float\" />\n        <attr name=\"dragDismissScale\" format=\"float\" />\n        <attr name=\"dragDismissEnableBottomDrag\" format=\"boolean\" />\n        <attr name=\"dragElasticity\" format=\"float\" />\n        <attr name=\"ignoreNestedScrollWarnings\" format=\"boolean\" />\n        <attr name=\"enableScaleX\" format=\"boolean\" />\n    </declare-styleable>\n\n</resources>\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Mon Jun 24 18:18:05 JST 2019\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-5.1.1-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.\n# Default value: -Xmx10248m -XX:MaxPermSize=256m\n# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8\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\nandroid.useAndroidX=true\nandroid.enableJetifier=true\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app', ':elasticdragdismisslayout'\n"
  }
]