[
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/gradle\n/build\n/local.properties\n/.idea\n/gradle.properties\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "README.md",
    "content": "# RecyclerView_Divider\n\nyou can use it to add an divider to RecyclerView\n\n![default](https://github.com/ChoicesWang/RecyclerView_Divider/blob/master/pictures/screen%20%281%29.png)\n![aglie LinearLayoutManager](https://github.com/ChoicesWang/RecyclerView_Divider/blob/master/pictures/screen%20%282%29.png)\n\n\n----------\n\n\n![default GridLayoutManager](https://github.com/ChoicesWang/RecyclerView_Divider/blob/master/pictures/screen%20%283%29.png)\n![aglie GridLayoutManager](https://github.com/ChoicesWang/RecyclerView_Divider/blob/master/pictures/screen%20%284%29.png)\n\n##Gradle\n```\nrepositories {\n    jcenter()\n}\n\ndependencies {\n    compile 'com.choices.divider:RecyclerView_Divider:1.0.0'\n}\n```\n\n##Usage\n\n- **Add defualt DividerItemDecoration()**\n- \ndefault DividerItemDecoration is size = 2 and color = Color.GRAY.\n```\nDividerItemDecoration itemDecoration = new DividerItemDecoration();\nmRecyclerView.addItemDecoration(itemDecoration);\n```\n\n- **Add Agile ItemDecoration for each item**\n- \nFor each item，you can add agile divider , You can choose vertical or horizontal,If mRecyclerView \nhas mLinearLayoutManager,only need to Override one method of getVerticalDivider() and getHorizontalDivider(). if mRecyclerView used mGridLayoutManager, you must Override both of them.\n```\nDividerItemDecoration itemDecoration = new DividerItemDecoration();\nitemDecoration.setDividerLookup(new AgileDividerLookup());\nmRecyclerView.addItemDecoration(itemDecoration);\n\nclass AgileDividerLookup extends DividerItemDecoration.SimpleDividerLookup {\n\n     @Override\n     public Divider getVerticalDivider(int position) {\n          return super.getVerticalDivider(position);\n     }\n     \n     @Override\n     public Divider getHorizontalDivider(int position) {\n         return super.getHorizontalDivider(position);\n     }\n }\n```\n- **Add divider for each ItemViewType**\n- \nYou can also add VerticalDivider or HorizontalDivider for each ItemViewType.\n\n```\nclass AgileDividerLookup extends DividerItemDecoration.SimpleDividerLookup {\n\n     @Override\n        public Divider getVerticalDivider(int position) {\n            int type = adapter.getItemViewType(position);\n            switch (type) {\n                case 0:\n                    return new Divider.Builder()\n                            .size(2)\n                            .color(Color.DKGRAY)\n                            .build();\n                case 2:\n                    return new Divider.Builder()\n                            .size(4)\n                            .color(Color.GREEN)\n                            .build();\n                case 3:\n                    return new Divider.Builder()\n                            .size(10)\n                            .color(Color.LTGRAY)\n                            .build();\n            }\n            return null;\n        }\n }\n```\n\n## License\n```\nCopyright 2015 choices\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    repositories {\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:2.0.0-beta6'\n\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        jcenter()\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "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": "library/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "library/build.gradle",
    "content": "apply plugin: 'com.android.library'\napply plugin: 'com.novoda.bintray-release'\n\nbuildscript {\n    repositories {\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.novoda:bintray-release:0.3.4'\n    }\n}\n\nandroid {\n    compileSdkVersion 23\n    buildToolsVersion \"23.0.2\"\n\n    defaultConfig {\n        minSdkVersion 15\n        targetSdkVersion 23\n        versionCode 1\n        versionName \"1.0\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles 'proguard-rules.pro'\n        }\n    }\n}\n\ndependencies {\n    compile fileTree(dir: 'libs', include: ['*.jar'])\n    compile 'com.android.support:recyclerview-v7:23.2.0'\n}\n\npublish {\n    userOrg = 'choiceswang'\n    groupId = 'com.choices.divider'\n    artifactId = 'RecyclerView_Divider'\n    publishVersion = '1.0.0'\n    desc = 'This should help you to add divider ItemDecoration for RecyclerView'\n    website = 'https://github.com/ChoicesWang/RecyclerView_Divider'\n}\n\n\n"
  },
  {
    "path": "library/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 D:\\AndroidTools\\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": "library/src/androidTest/java/com/choices/divider/ApplicationTest.java",
    "content": "package com.choices.divider;\n\nimport android.app.Application;\nimport android.test.ApplicationTestCase;\n\n/**\n * <a href=\"http://d.android.com/tools/testing/testing_android.html\">Testing Fundamentals</a>\n */\npublic class ApplicationTest extends ApplicationTestCase<Application> {\n    public ApplicationTest() {\n        super(Application.class);\n    }\n}"
  },
  {
    "path": "library/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.choices.divider\">\n\n    <application\n        android:label=\"@string/app_name\"\n        android:supportsRtl=\"true\">\n\n    </application>\n\n</manifest>\n"
  },
  {
    "path": "library/src/main/java/com/choices/divider/Divider.java",
    "content": "package com.choices.divider;\n\nimport android.support.annotation.ColorInt;\n\n/**\n * Created by Choices on 2016/3/10.\n * email: zezeviyao@163.com\n */\npublic class Divider {\n\n    @ColorInt\n    public int color;\n    public int size;\n    public int marginStart;\n    public int marginEnd;\n\n    private Divider() {\n    }\n\n    public static class Builder {\n        private int color;\n        private int size;\n        private int marginStart;\n        private int marginEnd;\n\n        public Builder color(int color) {\n            this.color = color;\n            return this;\n        }\n\n        public Builder size(int size) {\n            this.size = size;\n            return this;\n        }\n\n        public Builder margin(int marginStart, int marginEnd) {\n            this.marginStart = marginStart;\n            this.marginEnd = marginEnd;\n            return this;\n        }\n\n        public Divider build() {\n            Divider divider = new Divider();\n            divider.size = this.size;\n            divider.color = this.color;\n            divider.marginStart = this.marginStart;\n            divider.marginEnd = this.marginEnd;\n            return divider;\n        }\n\n    }\n}\n"
  },
  {
    "path": "library/src/main/java/com/choices/divider/DividerItemDecoration.java",
    "content": "package com.choices.divider;\n\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\nimport android.graphics.Rect;\nimport android.support.v7.widget.GridLayoutManager;\nimport android.support.v7.widget.LinearLayoutManager;\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\n\n/**\n * Created by Choices on 2016/3/10.\n * email: zezeviyao@163.com\n * default DividerItemDecoration() is size = 2 and color = Color.GRAY ;\n * you can build custom Divider {@link DividerItemDecoration#setDividerLookup(DividerLookup)}\n */\npublic class DividerItemDecoration extends RecyclerView.ItemDecoration {\n\n    private static final String TAG = \"DividerItemDecoration\";\n\n    private Paint mPaint;\n    private DividerLookup dividerLookup;\n\n    public DividerItemDecoration() {\n        mPaint = new Paint();\n        dividerLookup = new DefaultDividerLookup();\n    }\n\n    @Override\n    public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {\n        int childCount = parent.getChildCount();\n        for (int i = 0; i < childCount; i++) {\n            View child = parent.getChildAt(i);\n            int position = parent.getChildAdapterPosition(child);\n            Divider leftDivider = dividerLookup.getVerticalDivider(position);\n            Divider bottomDivider = dividerLookup.getHorizontalDivider(position);\n            if (leftDivider != null) drawLeftDivider(c, child, leftDivider);\n            if (bottomDivider != null) drawBottomDivider(c, child, bottomDivider);\n        }\n    }\n\n    @Override\n    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {\n\n        int itemCount = state.getItemCount();\n        int position = parent.getChildAdapterPosition(view);\n        RecyclerView.LayoutManager layoutManager = parent.getLayoutManager();\n        if (layoutManager instanceof GridLayoutManager) {\n            GridLayoutManager gridLayoutManager = (GridLayoutManager) layoutManager;\n            int spanCount = gridLayoutManager.getSpanCount();\n            GridLayoutManager.SpanSizeLookup spanSizeLookup = gridLayoutManager.getSpanSizeLookup();\n            int spanIndex = spanSizeLookup.getSpanIndex(position, spanCount);\n            int spanGroupIndex = spanSizeLookup.getSpanGroupIndex(position, spanCount);\n            int lastSpanGroupIndex = spanSizeLookup.getSpanGroupIndex(itemCount - 1, spanCount);\n            Divider vd = dividerLookup.getVerticalDivider(position);\n            Divider hd = dividerLookup.getHorizontalDivider(position);\n            outRect.left = vd == null ? 0 : vd.size;\n            outRect.bottom = hd == null ? 0 : hd.size;\n            if (spanIndex == 0) outRect.left = 0;\n            if (lastSpanGroupIndex == spanGroupIndex) outRect.bottom = 0;\n            return;\n        } else if (layoutManager instanceof LinearLayoutManager) {\n            Divider hd = dividerLookup.getHorizontalDivider(position);\n            outRect.bottom = hd == null ? 0 : hd.size;\n            if (position == itemCount) outRect.bottom = 0;\n            return;\n        }\n        throw new IllegalArgumentException(\"It is not currently supported StaggeredGridLayoutManager\");\n    }\n\n    private void drawBottomDivider(Canvas c, View child, Divider bd) {\n        mPaint.setColor(bd.color);\n        c.drawRect(\n                child.getLeft() + bd.marginStart,\n                child.getBottom(),\n                child.getRight() - bd.marginEnd,\n                child.getBottom() + bd.size,\n                mPaint\n        );\n    }\n\n    private void drawLeftDivider(Canvas c, View child, Divider ld) {\n        mPaint.setColor(ld.color);\n        c.drawRect(\n                child.getRight(),\n                child.getTop() + ld.marginStart,\n                child.getRight() + ld.size,\n                child.getBottom() - ld.marginEnd,\n                mPaint\n        );\n    }\n\n\n    private class DefaultDividerLookup implements DividerLookup {\n\n        private Divider mDivider;\n\n        public DefaultDividerLookup() {\n            mDivider = new Divider.Builder().color(Color.GRAY).size(2).build();\n        }\n\n        @Override\n        public Divider getVerticalDivider(int position) {\n            return mDivider;\n        }\n\n        @Override\n        public Divider getHorizontalDivider(int position) {\n            return mDivider;\n        }\n    }\n\n    public void setDividerLookup(DividerLookup dividerLookup) {\n        this.dividerLookup = dividerLookup;\n    }\n\n    public interface DividerLookup {\n        Divider getVerticalDivider(int position);\n\n        Divider getHorizontalDivider(int position);\n    }\n\n    public static class SimpleDividerLookup implements DividerLookup {\n\n        @Override\n        public Divider getVerticalDivider(int position) {\n            return null;\n        }\n\n        @Override\n        public Divider getHorizontalDivider(int position) {\n            return null;\n        }\n    }\n\n}\n"
  },
  {
    "path": "library/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">library</string>\n</resources>\n"
  },
  {
    "path": "sample/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "sample/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 23\n    buildToolsVersion \"23.0.2\"\n\n    defaultConfig {\n        applicationId \"com.choices.sample\"\n        minSdkVersion 15\n        targetSdkVersion 23\n        versionCode 1\n        versionName \"1.0\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles 'proguard-rules.pro'\n        }\n    }\n}\n\ndependencies {\n    compile fileTree(include: ['*.jar'], dir: 'libs')\n    compile project(':library')\n    compile 'com.android.support:appcompat-v7:23.2.0'\n    compile 'com.android.support:design:23.2.0'\n}\n"
  },
  {
    "path": "sample/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 D:\\AndroidTools\\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": "sample/src/androidTest/java/com/choices/sample/ApplicationTest.java",
    "content": "package com.choices.sample;\n\nimport android.app.Application;\nimport android.test.ApplicationTestCase;\n\n/**\n * <a href=\"http://d.android.com/tools/testing/testing_android.html\">Testing Fundamentals</a>\n */\npublic class ApplicationTest extends ApplicationTestCase<Application> {\n    public ApplicationTest() {\n        super(Application.class);\n    }\n}"
  },
  {
    "path": "sample/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.choices.sample\">\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\">\n        <activity\n            android:name=\".MainActivity\"\n            android:label=\"@string/app_name\"\n            android:screenOrientation=\"portrait\"\n            android:theme=\"@style/AppTheme.NoActionBar\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "sample/src/main/java/com/choices/sample/Cell.java",
    "content": "package com.choices.sample;\n\n/**\n * Created by Choices on 2016/3/11.\n * email: zezeviyao@163.com\n */\npublic class Cell {\n\n    public Cell(int type, String text) {\n        this.type = type;\n        this.text = text;\n    }\n\n    public int type;\n    public String text;\n}\n"
  },
  {
    "path": "sample/src/main/java/com/choices/sample/MainActivity.java",
    "content": "package com.choices.sample;\n\nimport android.app.FragmentManager;\nimport android.os.Bundle;\nimport android.support.design.widget.FloatingActionButton;\nimport android.support.design.widget.Snackbar;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.Toolbar;\nimport android.view.Menu;\nimport android.view.MenuItem;\nimport android.view.View;\n\nimport com.choices.sample.fragment.GridFragment;\nimport com.choices.sample.fragment.LinearFragment;\n\npublic class MainActivity extends AppCompatActivity {\n\n    public static final int TYPE_DEFAULT = 0;\n    public static final int TYPE_AGILE = 1;\n\n    FragmentManager mFragmentManager;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n        setSupportActionBar(toolbar);\n\n        mFragmentManager = getFragmentManager();\n        mFragmentManager.beginTransaction()\n                .replace(R.id.fragment_container, LinearFragment.newInstance(TYPE_DEFAULT))\n                .commit();\n    }\n\n    @Override\n    public boolean onCreateOptionsMenu(Menu menu) {\n        getMenuInflater().inflate(R.menu.menu_main, menu);\n        return true;\n    }\n\n    @Override\n    public boolean onOptionsItemSelected(MenuItem item) {\n        int id = item.getItemId();\n        switch (id) {\n            case R.id.action_linear:\n                mFragmentManager.beginTransaction()\n                        .replace(R.id.fragment_container, LinearFragment.newInstance(TYPE_DEFAULT))\n                        .commit();\n                break;\n            case R.id.action_linear_agile:\n                mFragmentManager.beginTransaction()\n                        .replace(R.id.fragment_container, LinearFragment.newInstance(TYPE_AGILE))\n                        .commit();\n                break;\n            case R.id.action_grid:\n                mFragmentManager.beginTransaction()\n                        .replace(R.id.fragment_container, GridFragment.newInstance(TYPE_DEFAULT))\n                        .commit();\n                break;\n            case R.id.action_grid_agile:\n                mFragmentManager.beginTransaction()\n                        .replace(R.id.fragment_container, GridFragment.newInstance(TYPE_AGILE))\n                        .commit();\n                break;\n        }\n        return super.onOptionsItemSelected(item);\n    }\n}\n"
  },
  {
    "path": "sample/src/main/java/com/choices/sample/fragment/GridFragment.java",
    "content": "package com.choices.sample.fragment;\n\nimport android.app.Fragment;\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.v7.widget.GridLayoutManager;\nimport android.support.v7.widget.RecyclerView;\nimport android.util.Log;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport com.choices.divider.Divider;\nimport com.choices.divider.DividerItemDecoration;\nimport com.choices.sample.Cell;\nimport com.choices.sample.MainActivity;\nimport com.choices.sample.R;\nimport com.choices.sample.holder.OneHolder;\n\nimport java.util.ArrayList;\n\n/**\n * Created by Choices on 2016/3/11.\n * email: zezeviyao@163.com\n */\npublic class GridFragment extends Fragment {\n\n    private static final String TAG = \"GridFragment\";\n\n    public static GridFragment newInstance(int type) {\n        Bundle args = new Bundle();\n        args.putInt(\"Type\", type);\n        GridFragment fragment = new GridFragment();\n        fragment.setArguments(args);\n        return fragment;\n    }\n\n    RecyclerView mRecyclerView;\n\n    ArrayList<Cell> list;\n\n    LayoutInflater factory;\n\n    GridAdapter adapter;\n\n    private int span;\n    private int type;\n\n    @Override\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        type = getArguments().getInt(\"Type\");\n\n        list = new ArrayList<>();\n        if (type == MainActivity.TYPE_DEFAULT) {\n            span = 4;\n            for (int i = 0; i < 400; i++) {\n                list.add(new Cell(0, String.valueOf(i)));\n            }\n        } else if (type == MainActivity.TYPE_AGILE) {\n            span = 6;\n            for (int i = 0; i < 400; i++) {\n                list.add(new Cell(1, String.valueOf(i++)));\n                list.add(new Cell(2, String.valueOf(i++)));\n                list.add(new Cell(2, String.valueOf(i++)));\n                list.add(new Cell(3, String.valueOf(i++)));\n                list.add(new Cell(3, String.valueOf(i++)));\n                list.add(new Cell(3, String.valueOf(i++)));\n            }\n        }\n    }\n\n    @Override\n    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n        factory = inflater;\n        return inflater.inflate(R.layout.fragment_recycler_view, container, false);\n    }\n\n    @Override\n    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n        mRecyclerView = (RecyclerView) view;\n        GridLayoutManager layoutManager = new GridLayoutManager(view.getContext(), span);\n        mRecyclerView.setLayoutManager(layoutManager);\n        adapter = new GridAdapter(list);\n        mRecyclerView.setAdapter(adapter);\n        DividerItemDecoration itemDecoration = new DividerItemDecoration();\n        itemDecoration.setDividerLookup(new AgileDividerLookup());\n        mRecyclerView.addItemDecoration(itemDecoration);\n\n        if (type == MainActivity.TYPE_AGILE) {\n            layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {\n                @Override\n                public int getSpanSize(int position) {\n                    return span / adapter.getItemViewType(position);\n                }\n            });\n        }\n\n    }\n\n    class AgileDividerLookup implements DividerItemDecoration.DividerLookup {\n        @Override\n        public Divider getVerticalDivider(int position) {\n            int type = adapter.getItemViewType(position);\n            switch (type) {\n                case 0:\n                    return new Divider.Builder()\n                            .size(2)\n                            .color(Color.DKGRAY)\n                            .build();\n                case 2:\n                    return new Divider.Builder()\n                            .size(4)\n                            .color(Color.GREEN)\n                            .build();\n                case 3:\n                    return new Divider.Builder()\n                            .size(10)\n                            .color(Color.LTGRAY)\n                            .build();\n            }\n            return null;\n        }\n\n        @Override\n        public Divider getHorizontalDivider(int position) {\n            int type = adapter.getItemViewType(position);\n            switch (type) {\n                case 0:\n                    return new Divider.Builder()\n                            .size(2)\n                            .color(Color.DKGRAY)\n                            .build();\n                case 1:\n                    return new Divider.Builder()\n                            .size(5)\n                            .color(Color.RED)\n                            .build();\n                case 2:\n                    return new Divider.Builder()\n                            .size(3)\n                            .color(Color.MAGENTA)\n                            .build();\n                case 3:\n                    return new Divider.Builder()\n                            .size(5)\n                            .color(Color.BLUE)\n                            .build();\n            }\n            return null;\n        }\n    }\n\n    class GridAdapter extends RecyclerView.Adapter {\n\n        ArrayList<Cell> data;\n\n        public GridAdapter(ArrayList<Cell> data) {\n            this.data = data;\n        }\n\n        @Override\n        public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n            Log.d(TAG, \"onCreateViewHolder() called with: \" + \"parent.width = [\" + parent.getWidth() + \"], viewType = [\" + viewType + \"]\");\n            int itemHeight = 100;\n            switch (viewType) {\n                case 0:\n                    itemHeight = parent.getWidth() / span;\n                    break;\n                case 1:\n                    itemHeight = parent.getWidth() / 6;\n                    break;\n                case 2:\n                    itemHeight = parent.getWidth() / 2 / 16 * 9;\n                    break;\n                case 3:\n                    itemHeight = parent.getWidth() / 3 / 2 * 3;\n                    break;\n            }\n            View root = factory.inflate(R.layout.item_cell, parent, false);\n            root.getLayoutParams().height = itemHeight;\n            return new OneHolder(root);\n        }\n\n        @Override\n        public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n            OneHolder oneHolder = (OneHolder) holder;\n            oneHolder.mTextView.setText(data.get(position).text);\n        }\n\n        @Override\n        public int getItemCount() {\n            return data == null ? 0 : data.size();\n        }\n\n        @Override\n        public int getItemViewType(int position) {\n            return list.get(position).type;\n        }\n    }\n}\n"
  },
  {
    "path": "sample/src/main/java/com/choices/sample/fragment/LinearFragment.java",
    "content": "package com.choices.sample.fragment;\n\nimport android.app.Fragment;\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.v7.widget.LinearLayoutManager;\nimport android.support.v7.widget.RecyclerView;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport com.choices.divider.Divider;\nimport com.choices.divider.DividerItemDecoration;\nimport com.choices.sample.MainActivity;\nimport com.choices.sample.R;\nimport com.choices.sample.holder.OneHolder;\n\nimport java.util.ArrayList;\n\n\npublic class LinearFragment extends Fragment {\n\n    public static LinearFragment newInstance(int type) {\n        Bundle args = new Bundle();\n        args.putInt(\"Type\", type);\n        LinearFragment fragment = new LinearFragment();\n        fragment.setArguments(args);\n        return fragment;\n    }\n\n    RecyclerView mRecyclerView;\n    ArrayList<String> list;\n    LayoutInflater factory;\n\n    @Override\n    public void onCreate(@Nullable Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        list = new ArrayList<>();\n        for (int i = 0; i < 200; i++) {\n            list.add(String.valueOf(i));\n        }\n    }\n\n    @Override\n    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n        this.factory = inflater;\n        return inflater.inflate(R.layout.fragment_recycler_view, container, false);\n    }\n\n    @Override\n    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n        mRecyclerView = (RecyclerView) view;\n\n        LinearAdapter adapter = new LinearAdapter(list);\n        mRecyclerView.setAdapter(adapter);\n        mRecyclerView.setLayoutManager(new LinearLayoutManager(view.getContext()));\n\n\n        Bundle bundle = getArguments();\n\n        DividerItemDecoration itemDecoration = new DividerItemDecoration();\n        if (bundle.getInt(\"Type\") == MainActivity.TYPE_DEFAULT) {\n            // default DividerItemDecoration is size = 2 and color = Color.GRAY\n            mRecyclerView.addItemDecoration(itemDecoration);\n        } else {\n            itemDecoration.setDividerLookup(new AgileDividerLookup());\n            mRecyclerView.addItemDecoration(itemDecoration);\n        }\n    }\n\n\n    class AgileDividerLookup extends DividerItemDecoration.SimpleDividerLookup {\n        @Override\n        public Divider getHorizontalDivider(int position) {\n            int style = position % 15;\n            switch (style) {\n                case 0:\n                    return new Divider.Builder()\n                            .size(5)\n                            .color(Color.RED)\n                            .build();\n                case 1:\n                    return new Divider.Builder()\n                            .size(5)\n                            .color(Color.RED)\n                            .margin(100, 100)\n                            .build();\n                case 2:\n                    return new Divider.Builder()\n                            .size(3)\n                            .color(Color.MAGENTA)\n                            .margin(60, 60)\n                            .build();\n                case 3:\n                    return new Divider.Builder()\n                            .size(15)\n                            .color(Color.MAGENTA)\n                            .margin(20, 20)\n                            .build();\n                case 4:\n                    return new Divider.Builder()\n                            .size(30)\n                            .color(Color.BLUE)\n                            .build();\n                default:\n                    return new Divider.Builder()\n                            .size(2)\n                            .color(Color.LTGRAY)\n                            .build();\n\n            }\n        }\n    }\n\n\n    class LinearAdapter extends RecyclerView.Adapter {\n\n        ArrayList<String> data;\n\n        public LinearAdapter(ArrayList<String> data) {\n            this.data = data;\n        }\n\n        @Override\n        public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n            View root = factory.inflate(R.layout.item_cell, parent, false);\n            return new OneHolder(root);\n        }\n\n        @Override\n        public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n            OneHolder oneHolder = (OneHolder) holder;\n            oneHolder.mTextView.setText(data.get(position));\n        }\n\n        @Override\n        public int getItemCount() {\n            return data == null ? 0 : data.size();\n        }\n    }\n}\n"
  },
  {
    "path": "sample/src/main/java/com/choices/sample/holder/OneHolder.java",
    "content": "package com.choices.sample.holder;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\nimport android.widget.TextView;\n\n/**\n * Created by Choices on 2016/3/11.\n * email: zezeviyao@163.com\n */\npublic class OneHolder extends RecyclerView.ViewHolder {\n\n    public TextView mTextView;\n\n    public OneHolder(View itemView) {\n        super(itemView);\n        mTextView = (TextView) itemView;\n    }\n}\n"
  },
  {
    "path": "sample/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\n    tools:context=\"com.choices.sample.MainActivity\">\n\n    <android.support.design.widget.AppBarLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:theme=\"@style/AppTheme.AppBarOverlay\">\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=\"?attr/colorPrimary\"\n            app:popupTheme=\"@style/AppTheme.PopupOverlay\" />\n\n    </android.support.design.widget.AppBarLayout>\n\n    <FrameLayout\n        android:id=\"@+id/fragment_container\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:layout_behavior=\"@string/appbar_scrolling_view_behavior\" />\n\n</android.support.design.widget.CoordinatorLayout>\n"
  },
  {
    "path": "sample/src/main/res/layout/fragment_recycler_view.xml",
    "content": "<android.support.v7.widget.RecyclerView 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=\"match_parent\"\n    tools:context=\".fragment.LinearFragment\"\n    tools:showIn=\"@layout/activity_main\" />\n"
  },
  {
    "path": "sample/src/main/res/layout/item_cell.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TextView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"48dp\"\n    android:background=\"@color/grey_50\"\n    android:gravity=\"center\"\n    android:paddingLeft=\"@dimen/text_padding_left\"\n    android:textSize=\"26sp\" />\n"
  },
  {
    "path": "sample/src/main/res/menu/menu_main.xml",
    "content": "<menu xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    tools:context=\"com.choices.sample.MainActivity\">\n    <item\n        android:id=\"@+id/action_linear\"\n        android:orderInCategory=\"100\"\n        android:title=\"@string/action_linear\"\n        app:showAsAction=\"never\" />\n    <item\n        android:id=\"@+id/action_linear_agile\"\n        android:orderInCategory=\"101\"\n        android:title=\"@string/action_linear_agile\"\n        app:showAsAction=\"never\" />\n\n    <item\n        android:id=\"@+id/action_grid\"\n        android:orderInCategory=\"110\"\n        android:title=\"@string/action_grid\"\n        app:showAsAction=\"never\" />\n    <item\n        android:id=\"@+id/action_grid_agile\"\n        android:orderInCategory=\"110\"\n        android:title=\"@string/action_grid_agile\"\n        app:showAsAction=\"never\" />\n</menu>\n"
  },
  {
    "path": "sample/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    <color name=\"grey_50\">#fffafafa</color>\n</resources>\n"
  },
  {
    "path": "sample/src/main/res/values/dimens.xml",
    "content": "<resources>\n    <dimen name=\"text_padding_left\">16dp</dimen>\n    <dimen name=\"fab_margin\">16dp</dimen>\n</resources>\n"
  },
  {
    "path": "sample/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">RecyclerView_Divider</string>\n    <string name=\"action_linear\">Linear Default</string>\n    <string name=\"action_linear_agile\">Linear Agile</string>\n    <string name=\"action_grid\">Grid Default</string>\n    <string name=\"action_grid_agile\">Grid Agile</string>\n</resources>\n"
  },
  {
    "path": "sample/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n    <style name=\"AppTheme.NoActionBar\">\n        <item name=\"windowActionBar\">false</item>\n        <item name=\"windowNoTitle\">true</item>\n    </style>\n\n    <style name=\"AppTheme.AppBarOverlay\" parent=\"ThemeOverlay.AppCompat.Dark.ActionBar\" />\n\n    <style name=\"AppTheme.PopupOverlay\" parent=\"ThemeOverlay.AppCompat.Light\" />\n\n</resources>\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':sample', ':library'\n"
  }
]