[
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n.idea/\n.DS_Store\n/build\n/captures\n.externalNativeBuild\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": "# RecyclerViewBanner\n使用RecyclerView做的轮播图\n\n### 前言\n之前做的轮播图，对于十几个图片什么的能够满足，但是万一有几千张，几万张就容易造成内存泄露，使用RecyclerView做的轮播，可以利用它自身的复用机制，比较节省内存。所以这种方式感觉效果更好。\n\n### 1.2.1版本更新内容\n    1. 指示器Indicator相关属性前缀同一为“indicator”。\n    2. 增加几个Indicator的相关属性：\n        rvb_indicatorSize：单个Indicator元素的方形区域尺寸；\n        rvb_indicatorSpace：两个Indicator元素的间距；\n        rvb_indicatorMargin：Indicator距离外边框的间距；\n        rvb_indicatorGravity：Indicator在广告栏内底部的相对位置。\n\t    rvb_autoPlaying：是否自动滚动，true自动滚动，false停止自动滚动\n\n    3. 将BannerView和IndicatorView的ImageView替换为AppCompatImageView，这样在Fragment中也可使用Compat属性，如使用svg矢量图等。\n    4. 可通过xml自由配置选中和未选中状态的资源，支持color, shape, png, svg，相当灵活。\n    5. lib的build.gradle中改compile为provided，这样当app的build.gradle中的版本低于lib也不会报错。\n   **注意：SnapHelper是support-compat:24.2.0才引入的，compile的编译版本必须高于24.2.0才可以**(是编译版本高于24.2.0，兼容其以下版本的，都可以使用，大家别理解错。)\n\n## 效果图\n![](https://github.com/loonggg/RecyclerViewBanner/blob/master/image/demo1.gif?raw=true)\n\n![](https://github.com/loonggg/RecyclerViewBanner/blob/master/image/sss.gif?raw=true)\n\n## 使用方法\n### Step 1. Add the JitPack repository to your build file\nAdd it in your root build.gradle at the end of repositories:\n```java\n  allprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n  }\n```\n\n### Step 2. Add the dependency\n```java\n   dependencies {\n        implementation 'com.github.loonggg:RecyclerViewBanner:v1.2.3'\n   }\n ```\n\n### Step 3. There are a few xml attributes to customise the  RecyclerViewBanner\n\n * rvb_indicatorSelectedSrc 设置底部导航指示器或者点选中的样式\n * rvb_indicatorUnselectedSrc 设置底部导航指示器或者点未选中状态的样式\n * rvb_interval 设置轮播图滚动间隔时间\n * rvb_showIndicator 设置是否显示底部指示导航小圆点\n * rvb_indicatorSize 设置指示器的大小\n * rvb_indicatorSpace 设置轮播指示器的间隔\n * rvb_indicatorMargin 设置轮播指示器Indicator距离外边框的间距\n * rvb_indicatorGravity 设置底部轮播导航指示器的位置 [left，center，right]\n * rvb_autoPlaying：是否自动滚动，true自动滚动，false禁止自动滚动\n\n#### Example\n```xml\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView\n    android:id=\"@+id/activity_main\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:loonggg=\"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    tools:context=\"com.loonggg.rvbanner.MainActivity\">\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:orientation=\"vertical\">\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_1\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n        <!--tools:background在编译运行时会被忽略，此处添加可以方便查看Indicator的状态-->\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_2\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorSelectedSrc=\"@drawable/svg_ic_selected\"\n            loonggg:rvb_indicatorUnselectedSrc=\"@drawable/svg_ic_unselected\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n        <!--支持svg矢量图-->\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_3\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorSelectedSrc=\"@drawable/shape_indicator_selected\"\n            loonggg:rvb_indicatorUnselectedSrc=\"@drawable/shape_indicator_unselected\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_4\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorGravity=\"left\"\n            loonggg:rvb_indicatorSelectedSrc=\"@mipmap/ic_selected\"\n            loonggg:rvb_indicatorUnselectedSrc=\"@mipmap/ic_unselected\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_5\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorGravity=\"right\"\n            loonggg:rvb_indicatorMargin=\"2dp\"\n            loonggg:rvb_indicatorSelectedSrc=\"@color/colorPrimary\"\n            loonggg:rvb_indicatorUnselectedSrc=\"#ffffff\"\n            loonggg:rvb_indicatorSize=\"8dp\"\n            loonggg:rvb_indicatorSpace=\"8dp\"\n            loonggg:rvb_interval=\"2000\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n    </LinearLayout>\n</ScrollView>\n```\n\n### Step 4. Impelement Listener\n```java\npublic class MainActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        RecyclerViewBanner recyclerViewBanner1 = (RecyclerViewBanner) findViewById(R.id.rv_banner_1);\n        RecyclerViewBanner recyclerViewBanner2 = (RecyclerViewBanner) findViewById(R.id.rv_banner_2);\n        RecyclerViewBanner recyclerViewBanner3 = (RecyclerViewBanner) findViewById(R.id.rv_banner_3);\n        RecyclerViewBanner recyclerViewBanner4 = (RecyclerViewBanner) findViewById(R.id.rv_banner_4);\n        RecyclerViewBanner recyclerViewBanner5 = (RecyclerViewBanner) findViewById(R.id.rv_banner_5);\n\n        final List<Banner> banners = new ArrayList<>();\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1487221110004&di=d6043e4b0c90ddf3ea5096c3d8eb8f58&imgtype=0&src=http%3A%2F%2Fimage.tianjimedia.com%2FuploadImages%2F2014%2F067%2F5116EPAUD762_1000x500.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1487221129421&di=c085432cf7c15836f8a6479138740f39&imgtype=0&src=http%3A%2F%2Fimage85.360doc.com%2FDownloadImg%2F2015%2F05%2F0517%2F53199602_2.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1490438881557&di=e61065ccc8d7b44591e1c4ba8df672ee&imgtype=0&src=http%3A%2F%2Fc.hiphotos.baidu.com%2Fzhidao%2Fpic%2Fitem%2F18d8bc3eb13533fa00428309a0d3fd1f41345b24.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1490440243430&di=6f8d7c608a4e3fbe4130c93fc0f20850&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201509%2F09%2F20150909184342_mkrWc.jpeg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1490440556037&di=ade75ba29126922124b063a2a57873f7&imgtype=0&src=http%3A%2F%2Fi2.download.fd.pchome.net%2Ft_960x600%2Fg1%2FM00%2F0E%2F05%2FooYBAFTbGOmIDPSLAAXPs6l7AQMAACSVgDyBqkABc_L421.jpg\"));\n\n        recyclerViewBanner1.setRvBannerData(banners);\n        recyclerViewBanner1.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner1.setOnRvBannerClickListener(new RecyclerViewBanner.OnRvBannerClickListener() {\n            @Override\n            public void onClick(int position) {\n                Toast.makeText(MainActivity.this, \"position: \" + position, Toast.LENGTH_SHORT).show();\n            }\n        });\n\n        recyclerViewBanner2.setRvBannerData(banners);\n        recyclerViewBanner2.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner3.setRvBannerData(banners);\n        recyclerViewBanner3.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner4.setIndicatorInterval(2000);\n        recyclerViewBanner4.setRvBannerData(banners);\n        recyclerViewBanner4.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner5.setRvBannerData(banners);\n        recyclerViewBanner5.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n    }\n\n    private class Banner {\n\n        String url;\n\n        public Banner(String url) {\n            this.url = url;\n        }\n\n        public String getUrl() {\n            return url;\n        }\n    }\n}\n```\n### 公众号\n欢迎大家关注我的微信公众号：非著名程序员（smart_android），更多好的原创文章均首发于微信订阅号：非著名程序员\n![](https://raw.githubusercontent.com/loonggg/BlogImages/master/%E5%85%AC%E4%BC%97%E5%8F%B7%E4%BA%8C%E7%BB%B4%E7%A0%81/erweima.jpg)\n\n# License\n```xml\nCopyright 2017 loonggg\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": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 25\n    buildToolsVersion \"25.0.2\"\n    defaultConfig {\n        applicationId \"com.loonggg.rvbanner\"\n        minSdkVersion 15\n        targetSdkVersion 25\n        versionCode 3\n        versionName \"1.3\"\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n}\n\ndependencies {\n    compile fileTree(dir: 'libs', include: ['*.jar'])\n    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {\n        exclude group: 'com.android.support', module: 'support-annotations'\n    })\n    compile 'com.android.support:appcompat-v7:25.3.0'\n    compile 'com.android.support:recyclerview-v7:25.3.0'\n    compile 'com.github.bumptech.glide:glide:3.7.0'\n    testCompile 'junit:junit:4.12'\n    compile project(path: ':rvbanner')\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 D:\\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/androidTest/java/com/loonggg/rvbanner/ExampleInstrumentedTest.java",
    "content": "package com.loonggg.rvbanner;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumentation test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() throws Exception {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"com.loonggg.rvbanner\", appContext.getPackageName());\n    }\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.loonggg.rvbanner\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\">\n        <activity android:name=\".MainActivity\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/loonggg/rvbanner/MainActivity.java",
    "content": "package com.loonggg.rvbanner;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.AppCompatImageView;\nimport android.widget.Toast;\n\nimport com.bumptech.glide.Glide;\nimport com.loonggg.rvbanner.lib.RecyclerViewBanner;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MainActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        RecyclerViewBanner recyclerViewBanner1 = (RecyclerViewBanner) findViewById(R.id.rv_banner_1);\n        RecyclerViewBanner recyclerViewBanner2 = (RecyclerViewBanner) findViewById(R.id.rv_banner_2);\n        RecyclerViewBanner recyclerViewBanner3 = (RecyclerViewBanner) findViewById(R.id.rv_banner_3);\n        RecyclerViewBanner recyclerViewBanner4 = (RecyclerViewBanner) findViewById(R.id.rv_banner_4);\n        RecyclerViewBanner recyclerViewBanner5 = (RecyclerViewBanner) findViewById(R.id.rv_banner_5);\n\n        final List<Banner> banners = new ArrayList<>();\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1487221110004&di=d6043e4b0c90ddf3ea5096c3d8eb8f58&imgtype=0&src=http%3A%2F%2Fimage.tianjimedia.com%2FuploadImages%2F2014%2F067%2F5116EPAUD762_1000x500.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1487221129421&di=c085432cf7c15836f8a6479138740f39&imgtype=0&src=http%3A%2F%2Fimage85.360doc.com%2FDownloadImg%2F2015%2F05%2F0517%2F53199602_2.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1490438881557&di=e61065ccc8d7b44591e1c4ba8df672ee&imgtype=0&src=http%3A%2F%2Fc.hiphotos.baidu.com%2Fzhidao%2Fpic%2Fitem%2F18d8bc3eb13533fa00428309a0d3fd1f41345b24.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1491018668060&di=b96bf4ac065ab547eddc5af24dfbedd5&imgtype=0&src=http%3A%2F%2Fi2.sanwen8.cn%2Fdoc%2F1610%2F704-161024211H3.jpg\"));\n        banners.add(new Banner(\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1490440556037&di=ade75ba29126922124b063a2a57873f7&imgtype=0&src=http%3A%2F%2Fi2.download.fd.pchome.net%2Ft_960x600%2Fg1%2FM00%2F0E%2F05%2FooYBAFTbGOmIDPSLAAXPs6l7AQMAACSVgDyBqkABc_L421.jpg\"));\n        //recyclerViewBanner1.setRvAutoPlaying(false);\n        recyclerViewBanner1.setRvBannerData(banners);\n        recyclerViewBanner1.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner1.setOnRvBannerClickListener(new RecyclerViewBanner.OnRvBannerClickListener() {\n            @Override\n            public void onClick(int position) {\n                Toast.makeText(MainActivity.this, \"position: \" + position, Toast.LENGTH_SHORT).show();\n            }\n        });\n\n        recyclerViewBanner2.setRvBannerData(banners);\n        recyclerViewBanner2.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner3.setRvBannerData(banners);\n        recyclerViewBanner3.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner4.setIndicatorInterval(2000);\n        recyclerViewBanner4.setRvBannerData(banners);\n        recyclerViewBanner4.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n        recyclerViewBanner5.setRvBannerData(banners);\n        recyclerViewBanner5.setOnSwitchRvBannerListener(new RecyclerViewBanner.OnSwitchRvBannerListener() {\n            @Override\n            public void switchBanner(int position, AppCompatImageView bannerView) {\n                Glide.with(bannerView.getContext())\n                        .load(banners.get(position).getUrl())\n                        .placeholder(R.mipmap.ic_launcher)\n                        .into(bannerView);\n            }\n        });\n    }\n\n    private class Banner {\n\n        String url;\n\n        public Banner(String url) {\n            this.url = url;\n        }\n\n        public String getUrl() {\n            return url;\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/drawable/shape_indicator_selected.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n       android:shape=\"rectangle\">\n    <size\n        android:width=\"8dp\"\n        android:height=\"2dp\"/>\n    <solid android:color=\"#ffffff\"/>\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/shape_indicator_unselected.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n       android:shape=\"rectangle\">\n    <size\n        android:width=\"8dp\"\n        android:height=\"2dp\"/>\n    <solid android:color=\"#66ffffff\"/>\n</shape>"
  },
  {
    "path": "app/src/main/res/drawable/svg_ic_selected.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"14dp\"\n        android:height=\"14dp\"\n        android:viewportHeight=\"1024.0\"\n        android:viewportWidth=\"1024.0\">\n    <path\n        android:fillColor=\"#ffffff\"\n        android:pathData=\"M926.4,250.9C840.6,133.4 702.3,64 554.9,64 302.4,64 97.6,264.6 97.6,511.9 97.6,759.3 302.4,960 554.9,960c142.7,0 277.5,-65.4 363.9,-176.7L554.9,511.9l371.5,-261zM630.7,200.9c33,0 59.5,26.2 59.5,58.3s-26.7,58.3 -59.5,58.3c-33,0 -59.5,-26.1 -59.5,-58.3 -0.1,-32.2 26.5,-58.3 59.5,-58.3zM630.7,200.9\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/svg_ic_unselected.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"10dp\"\n        android:height=\"10dp\"\n        android:viewportHeight=\"1024.0\"\n        android:viewportWidth=\"1024.0\">\n    <path\n        android:fillColor=\"#ffffff\"\n        android:pathData=\"M784,497C784,649 661,772 509,772c-152,0 -275,-123 -275,-275C234,345 357,222 509,222 661,222 784,345 784,497z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView\n    android:id=\"@+id/activity_main\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:loonggg=\"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    tools:context=\"com.loonggg.rvbanner.MainActivity\">\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:orientation=\"vertical\">\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_1\"\n            android:layout_width=\"match_parent\"\n            loonggg:rvb_autoPlaying=\"false\"\n            android:layout_height=\"140dp\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n        <!--tools:background在编译运行时会被忽略，此处添加可以方便查看Indicator的状态-->\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_2\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorSelectedSrc=\"@drawable/svg_ic_selected\"\n            loonggg:rvb_indicatorUnselectedSrc=\"@drawable/svg_ic_unselected\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n        <!--支持svg矢量图-->\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_3\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorSelectedSrc=\"@drawable/shape_indicator_selected\"\n            loonggg:rvb_indicatorUnselectedSrc=\"@drawable/shape_indicator_unselected\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_4\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorGravity=\"left\"\n            loonggg:rvb_indicatorSelectedSrc=\"@mipmap/ic_selected\"\n            loonggg:rvb_indicatorUnselectedSrc=\"@mipmap/ic_unselected\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n\n        <com.loonggg.rvbanner.lib.RecyclerViewBanner\n            android:id=\"@+id/rv_banner_5\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"140dp\"\n            loonggg:rvb_indicatorGravity=\"right\"\n            loonggg:rvb_indicatorMargin=\"2dp\"\n            loonggg:rvb_indicatorSelectedSrc=\"@color/colorPrimary\"\n            loonggg:rvb_indicatorUnselectedSrc=\"#ffffff\"\n            loonggg:rvb_indicatorSize=\"8dp\"\n            loonggg:rvb_indicatorSpace=\"8dp\"\n            loonggg:rvb_interval=\"2000\"\n            tools:background=\"@color/colorPrimaryDark\"/>\n    </LinearLayout>\n</ScrollView>\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</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</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">RecyclerViewBannerDemo</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values-w820dp/dimens.xml",
    "content": "<resources>\n    <!-- Example customization of dimensions originally defined in res/values/dimens.xml\n         (such as screen margins) for screens with more than 820dp of available width. This\n         would include 7\" and 10\" devices in landscape (~960dp and ~1280dp respectively). -->\n    <dimen name=\"activity_horizontal_margin\">64dp</dimen>\n</resources>\n"
  },
  {
    "path": "app/src/test/java/com/loonggg/rvbanner/ExampleUnitTest.java",
    "content": "package com.loonggg.rvbanner;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() throws Exception {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// 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.2.2'\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": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Mon Dec 28 10:00:20 PST 2015\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-2.14.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.\norg.gradle.jvmargs=-Xmx1536m\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n"
  },
  {
    "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": "rvbanner/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "rvbanner/build.gradle",
    "content": "apply plugin: 'com.android.library'\n\nandroid {\n    compileSdkVersion 25\n    buildToolsVersion \"25.0.2\"\n\n    defaultConfig {\n        minSdkVersion 15\n        targetSdkVersion 25\n        versionCode 3\n        versionName \"1.2\"\n\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n\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    compile fileTree(dir: 'libs', include: ['*.jar'])\n    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {\n        exclude group: 'com.android.support', module: 'support-annotations'\n    })\n    provided 'com.android.support:appcompat-v7:25.3.0'\n    provided 'com.android.support:recyclerview-v7:25.3.0'\n    testCompile 'junit:junit:4.12'\n}\n"
  },
  {
    "path": "rvbanner/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:\\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": "rvbanner/src/androidTest/java/com/loonggg/rvbanner/ExampleInstrumentedTest.java",
    "content": "package com.loonggg.rvbanner;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumentation test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() throws Exception {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"com.loonggg.rvbanner.test\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "rvbanner/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"com.loonggg.rvbanner.lib\">\n\n    <application android:allowBackup=\"true\" android:label=\"@string/app_name\"\n        android:supportsRtl=\"true\">\n\n    </application>\n\n</manifest>\n"
  },
  {
    "path": "rvbanner/src/main/java/com/loonggg/rvbanner/lib/RecyclerViewBanner.java",
    "content": "package com.loonggg.rvbanner.lib;\n\nimport android.content.Context;\nimport android.content.res.Resources;\nimport android.content.res.TypedArray;\nimport android.graphics.drawable.ColorDrawable;\nimport android.graphics.drawable.Drawable;\nimport android.graphics.drawable.GradientDrawable;\nimport android.os.Handler;\nimport android.support.v4.view.GravityCompat;\nimport android.support.v7.widget.AppCompatImageView;\nimport android.support.v7.widget.LinearLayoutManager;\nimport android.support.v7.widget.LinearSnapHelper;\nimport android.support.v7.widget.RecyclerView;\nimport android.util.AttributeSet;\nimport android.util.TypedValue;\nimport android.view.Gravity;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.FrameLayout;\nimport android.widget.LinearLayout;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class RecyclerViewBanner extends FrameLayout {\n\n    private static final int DEFAULT_SELECTED_COLOR = 0xffffffff;\n    private static final int DEFAULT_UNSELECTED_COLOR = 0x50ffffff;\n\n    private int mInterval;\n    private boolean isShowIndicator;\n    private Drawable mSelectedDrawable;\n    private Drawable mUnselectedDrawable;\n    private int mSize;\n    private int mSpace;\n\n    private RecyclerView mRecyclerView;\n    private LinearLayout mLinearLayout;\n\n    private RecyclerAdapter adapter;\n    private OnRvBannerClickListener onRvBannerClickListener;\n    private OnSwitchRvBannerListener onSwitchRvBannerListener;\n    private List<Object> mData = new ArrayList<>();\n    private int startX, startY, currentIndex;\n    private boolean isPlaying;\n    private Handler handler = new Handler();\n    private boolean isTouched;\n    private boolean isAutoPlaying = true;\n\n    private Runnable playTask = new Runnable() {\n\n        @Override\n        public void run() {\n            mRecyclerView.smoothScrollToPosition(++currentIndex);\n            if (isShowIndicator) {\n                switchIndicator();\n            }\n            handler.postDelayed(this, mInterval);\n        }\n    };\n\n    public RecyclerViewBanner(Context context) {\n        this(context, null);\n    }\n\n    public RecyclerViewBanner(Context context, AttributeSet attrs) {\n        this(context, attrs, 0);\n    }\n\n    public RecyclerViewBanner(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n\n        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.RecyclerViewBanner);\n        mInterval = a.getInt(R.styleable.RecyclerViewBanner_rvb_interval, 3000);\n        isShowIndicator = a.getBoolean(R.styleable.RecyclerViewBanner_rvb_showIndicator, true);\n        isAutoPlaying = a.getBoolean(R.styleable.RecyclerViewBanner_rvb_autoPlaying, true);\n        Drawable sd = a.getDrawable(R.styleable.RecyclerViewBanner_rvb_indicatorSelectedSrc);\n        Drawable usd = a.getDrawable(R.styleable.RecyclerViewBanner_rvb_indicatorUnselectedSrc);\n        if (sd == null) {\n            mSelectedDrawable = generateDefaultDrawable(DEFAULT_SELECTED_COLOR);\n        } else {\n            if (sd instanceof ColorDrawable) {\n                mSelectedDrawable = generateDefaultDrawable(((ColorDrawable) sd).getColor());\n            } else {\n                mSelectedDrawable = sd;\n            }\n        }\n        if (usd == null) {\n            mUnselectedDrawable = generateDefaultDrawable(DEFAULT_UNSELECTED_COLOR);\n        } else {\n            if (usd instanceof ColorDrawable) {\n                mUnselectedDrawable = generateDefaultDrawable(((ColorDrawable) usd).getColor());\n            } else {\n                mUnselectedDrawable = usd;\n            }\n        }\n        mSize = a.getDimensionPixelSize(R.styleable.RecyclerViewBanner_rvb_indicatorSize, 0);\n        mSpace = a.getDimensionPixelSize(R.styleable.RecyclerViewBanner_rvb_indicatorSpace, dp2px(4));\n        int margin = a.getDimensionPixelSize(R.styleable.RecyclerViewBanner_rvb_indicatorMargin, dp2px(8));\n        int g = a.getInt(R.styleable.RecyclerViewBanner_rvb_indicatorGravity, 1);\n        int gravity;\n        if (g == 0) {\n            gravity = GravityCompat.START;\n        } else if (g == 2) {\n            gravity = GravityCompat.END;\n        } else {\n            gravity = Gravity.CENTER;\n        }\n        a.recycle();\n\n        mRecyclerView = new RecyclerView(context);\n        mLinearLayout = new LinearLayout(context);\n\n        new PagerSnapHelper().attachToRecyclerView(mRecyclerView);\n        mRecyclerView.setLayoutManager(new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false));\n        adapter = new RecyclerAdapter();\n        mRecyclerView.setAdapter(adapter);\n        mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n\n            @Override\n            public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n                super.onScrolled(recyclerView, dx, dy);\n                int next = ((LinearLayoutManager) recyclerView.getLayoutManager()).findLastVisibleItemPosition();\n                if (next != currentIndex) {\n                    currentIndex = next;\n                    if (isShowIndicator && isTouched) {\n                        isTouched = false;\n                        switchIndicator();\n                    }\n                }\n            }\n        });\n        mLinearLayout.setOrientation(LinearLayout.HORIZONTAL);\n        mLinearLayout.setGravity(Gravity.CENTER);\n\n        LayoutParams vpLayoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,\n                ViewGroup.LayoutParams.MATCH_PARENT);\n        LayoutParams linearLayoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,\n                ViewGroup.LayoutParams.WRAP_CONTENT);\n        linearLayoutParams.gravity = Gravity.BOTTOM | gravity;\n        linearLayoutParams.setMargins(margin, margin, margin, margin);\n        addView(mRecyclerView, vpLayoutParams);\n        addView(mLinearLayout, linearLayoutParams);\n\n        // 便于在xml中编辑时观察，运行时不执行\n        if (isInEditMode()) {\n            for (int i = 0; i < 3; i++) {\n                mData.add(\"\");\n            }\n            createIndicators();\n        }\n    }\n\n    /**\n     * 默认指示器是一系列直径为6dp的小圆点\n     */\n    private GradientDrawable generateDefaultDrawable(int color) {\n        GradientDrawable gradientDrawable = new GradientDrawable();\n        gradientDrawable.setSize(dp2px(6), dp2px(6));\n        gradientDrawable.setCornerRadius(dp2px(6));\n        gradientDrawable.setColor(color);\n        return gradientDrawable;\n    }\n\n    /**\n     * 设置是否显示指示器导航点\n     *\n     * @param show 显示\n     */\n    public void isShowIndicator(boolean show) {\n        this.isShowIndicator = show;\n    }\n\n    /**\n     * 设置轮播间隔时间\n     *\n     * @param millisecond 时间毫秒\n     */\n    public void setIndicatorInterval(int millisecond) {\n        this.mInterval = millisecond;\n    }\n\n    /**\n     * 设置是否自动播放（上锁）\n     *\n     * @param playing 开始播放\n     */\n    private synchronized void setPlaying(boolean playing) {\n        if (isAutoPlaying) {\n            if (!isPlaying && playing && adapter != null && adapter.getItemCount() > 2) {\n                handler.postDelayed(playTask, mInterval);\n                isPlaying = true;\n            } else if (isPlaying && !playing) {\n                handler.removeCallbacksAndMessages(null);\n                isPlaying = false;\n            }\n        }\n    }\n\n    /**\n     * 设置是否禁止滚动播放\n     *\n     * @param isAutoPlaying true  是自动滚动播放,false 是禁止自动滚动\n     */\n    public void setRvAutoPlaying(boolean isAutoPlaying) {\n        this.isAutoPlaying = isAutoPlaying;\n    }\n\n    /**\n     * 设置轮播数据集\n     *\n     * @param data Banner对象列表\n     */\n    public void setRvBannerData(List data) {\n        setPlaying(false);\n        mData.clear();\n        if (data != null) {\n            mData.addAll(data);\n        }\n        if (mData.size() > 1) {\n            adapter.notifyDataSetChanged();\n            currentIndex = Integer.MAX_VALUE / 2 - (Integer.MAX_VALUE / 2) % mData.size();\n            // 将起始点设为最靠近的 MAX_VALUE/2 的，且为mData.size()整数倍的位置\n            mRecyclerView.scrollToPosition(currentIndex);\n            if (isShowIndicator) {\n                createIndicators();\n            }\n            setPlaying(true);\n        } else {\n            currentIndex = 0;\n            adapter.notifyDataSetChanged();\n        }\n    }\n\n    /**\n     * 指示器整体由数据列表容量数量的AppCompatImageView均匀分布在一个横向的LinearLayout中构成\n     * 使用AppCompatImageView的好处是在Fragment中也使用Compat相关属性\n     */\n    private void createIndicators() {\n        mLinearLayout.removeAllViews();\n        for (int i = 0; i < mData.size(); i++) {\n            AppCompatImageView img = new AppCompatImageView(getContext());\n            LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,\n                    ViewGroup.LayoutParams.WRAP_CONTENT);\n            lp.leftMargin = mSpace / 2;\n            lp.rightMargin = mSpace / 2;\n            if (mSize >= dp2px(4)) { // 设置了indicatorSize属性\n                lp.width = lp.height = mSize;\n            } else {\n                // 如果设置的resource.xml没有明确的宽高，默认最小2dp，否则太小看不清\n                img.setMinimumWidth(dp2px(2));\n                img.setMinimumHeight(dp2px(2));\n            }\n            img.setImageDrawable(i == 0 ? mSelectedDrawable : mUnselectedDrawable);\n            mLinearLayout.addView(img, lp);\n        }\n    }\n\n    @Override\n    public boolean dispatchTouchEvent(MotionEvent ev) {\n        //手动触摸的时候，停止自动播放，根据手势变换\n        switch (ev.getAction()) {\n            case MotionEvent.ACTION_DOWN:\n                startX = (int) ev.getX();\n                startY = (int) ev.getY();\n                getParent().requestDisallowInterceptTouchEvent(true);\n                break;\n            case MotionEvent.ACTION_MOVE:\n                int moveX = (int) ev.getX();\n                int moveY = (int) ev.getY();\n                int disX = moveX - startX;\n                int disY = moveY - startY;\n                boolean hasMoved = 2 * Math.abs(disX) > Math.abs(disY);\n                getParent().requestDisallowInterceptTouchEvent(hasMoved);\n                if (hasMoved) {\n                    setPlaying(false);\n                }\n                break;\n            case MotionEvent.ACTION_UP:\n            case MotionEvent.ACTION_CANCEL:\n                if (!isPlaying) {\n                    isTouched = true;\n                    setPlaying(true);\n                }\n                break;\n            default:\n                break;\n        }\n        return super.dispatchTouchEvent(ev);\n    }\n\n    @Override\n    protected void onAttachedToWindow() {\n        super.onAttachedToWindow();\n        setPlaying(true);\n    }\n\n    @Override\n    protected void onDetachedFromWindow() {\n        super.onDetachedFromWindow();\n        setPlaying(false);\n    }\n\n    @Override\n    protected void onWindowVisibilityChanged(int visibility) {\n        if (visibility == GONE || visibility == INVISIBLE) {\n            // 停止轮播\n            setPlaying(false);\n        } else if (visibility == VISIBLE) {\n            // 开始轮播\n            setPlaying(true);\n        }\n        super.onWindowVisibilityChanged(visibility);\n    }\n\n    /**\n     * RecyclerView适配器\n     */\n    private class RecyclerAdapter extends RecyclerView.Adapter {\n\n        @Override\n        public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n            AppCompatImageView img = new AppCompatImageView(parent.getContext());\n            RecyclerView.LayoutParams params = new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,\n                    ViewGroup.LayoutParams.MATCH_PARENT);\n            img.setLayoutParams(params);\n            img.setId(R.id.rvb_banner_image_view_id);\n            img.setScaleType(AppCompatImageView.ScaleType.CENTER_CROP);\n            img.setOnClickListener(new OnClickListener() {\n                @Override\n                public void onClick(View v) {\n                    if (onRvBannerClickListener != null) {\n                        onRvBannerClickListener.onClick(currentIndex % mData.size());\n                    }\n                }\n            });\n            return new RecyclerView.ViewHolder(img) {\n            };\n        }\n\n        @Override\n        public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n            AppCompatImageView img = (AppCompatImageView) holder.itemView.findViewById(R.id.rvb_banner_image_view_id);\n            if (onSwitchRvBannerListener != null) {\n                onSwitchRvBannerListener.switchBanner(position % mData.size(), img);\n            }\n        }\n\n        @Override\n        public int getItemCount() {\n            return mData == null ? 0 : mData.size() < 2 ? mData.size() : Integer.MAX_VALUE;\n        }\n    }\n\n    private class PagerSnapHelper extends LinearSnapHelper {\n\n        @Override\n        public int findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, int velocityY) {\n            int targetPos = super.findTargetSnapPosition(layoutManager, velocityX, velocityY);\n            final View currentView = findSnapView(layoutManager);\n            if (targetPos != RecyclerView.NO_POSITION && currentView != null) {\n                int currentPos = layoutManager.getPosition(currentView);\n                int first = ((LinearLayoutManager) layoutManager).findFirstVisibleItemPosition();\n                int last = ((LinearLayoutManager) layoutManager).findLastVisibleItemPosition();\n                currentPos = targetPos < currentPos ? last : (targetPos > currentPos ? first : currentPos);\n                targetPos = targetPos < currentPos ? currentPos - 1 : (targetPos > currentPos ? currentPos + 1 : currentPos);\n            }\n            return targetPos;\n        }\n    }\n\n    /**\n     * 改变导航的指示点\n     */\n    private void switchIndicator() {\n        if (mLinearLayout != null && mLinearLayout.getChildCount() > 0) {\n            for (int i = 0; i < mLinearLayout.getChildCount(); i++) {\n                ((AppCompatImageView) mLinearLayout.getChildAt(i)).setImageDrawable(\n                        i == currentIndex % mData.size() ? mSelectedDrawable : mUnselectedDrawable);\n            }\n        }\n    }\n\n    private int dp2px(int dp) {\n        return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp,\n                Resources.getSystem().getDisplayMetrics());\n    }\n\n    /**\n     * 获取RecyclerView实例，便于满足自定义{@link RecyclerView.ItemAnimator}或者{@link RecyclerView.Adapter}的需求\n     *\n     * @return RecyclerView实例\n     */\n    public RecyclerView getRecyclerView() {\n        return mRecyclerView;\n    }\n\n    public interface OnSwitchRvBannerListener {\n        void switchBanner(int position, AppCompatImageView bannerView);\n    }\n\n    public void setOnSwitchRvBannerListener(OnSwitchRvBannerListener listener) {\n        this.onSwitchRvBannerListener = listener;\n    }\n\n    public interface OnRvBannerClickListener {\n        void onClick(int position);\n    }\n\n    public void setOnRvBannerClickListener(OnRvBannerClickListener onRvBannerClickListener) {\n        this.onRvBannerClickListener = onRvBannerClickListener;\n    }\n\n}"
  },
  {
    "path": "rvbanner/src/main/res/values/attr.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <declare-styleable name=\"RecyclerViewBanner\">\n        <attr name=\"rvb_interval\" format=\"integer\" />\n        <attr name=\"rvb_showIndicator\" format=\"boolean\" />\n        <attr name=\"rvb_indicatorSelectedSrc\" format=\"color|reference\" />\n        <attr name=\"rvb_indicatorUnselectedSrc\" format=\"color|reference\" />\n        <attr name=\"rvb_indicatorSize\" format=\"dimension|reference\" />\n        <attr name=\"rvb_indicatorSpace\" format=\"dimension|reference\" />\n        <attr name=\"rvb_indicatorMargin\" format=\"dimension|reference\" />\n        <attr name=\"rvb_indicatorGravity\" format=\"enum\">\n            <enum name=\"left\" value=\"0\" />\n            <enum name=\"center\" value=\"1\" />\n            <enum name=\"right\" value=\"2\" />\n        </attr>\n        <attr name=\"rvb_autoPlaying\" format=\"boolean\" />\n    </declare-styleable>\n</resources>"
  },
  {
    "path": "rvbanner/src/main/res/values/id.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <item name=\"rvb_banner_image_view_id\" type=\"id\"/>\n</resources>"
  },
  {
    "path": "rvbanner/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">RvBanner</string>\n</resources>\n"
  },
  {
    "path": "rvbanner/src/test/java/com/loonggg/rvbanner/ExampleUnitTest.java",
    "content": "package com.loonggg.rvbanner;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() throws Exception {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app', ':rvbanner'\n"
  }
]