[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Tap on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Smartphone (please complete the following information):**\n - OS: [e.g. Android Oreo]\n\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "# Description\n\nPlease include a summary of the change and which issue is fixed.\n\nFixes # (issue)\n\n## Type of change\n\nPlease delete options that are not relevant.\n\n- [ ] Bug fix (non-breaking change which fixes an issue)\n- [ ] New feature (non-breaking change which adds functionality)\n- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)\n- [ ] This change requires a documentation update\n"
  },
  {
    "path": ".gitignore",
    "content": "# built application files\n*.apk\n*.ap_\n\n# files for the dex VM\n*.dex\n\n# Java class files\n*.class\n\n# generated files\nbin/\ngen/\ngenerated/\nfinalOutput/\n\nbuild.xml\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Eclipse project files\n.classpath\n.project\n.settings/\n.vscode/\n\n# Proguard folder generated by Eclipse\nproguard/\n\n# Intellij project files\n*.iml\n*.ipr\n*.iws\n/.idea/*\n!/.idea/runConfigurations\n\n.directory\n\n# gradle wrapper working directory\n.gradle\n\nbuild/\n\n# maven\ntarget/\n\n.DS_Store\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "Changelog\n=========\n\nAll notable changes to this project will be documented in this file.\nThis project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\nFeature: Empty bar layout.\n\n## 1.2.0\n----------------------------\nMarch 5, 2019\n\n* Gradient bars feature added.\n\n## 1.1.0\n----------------------------\nFebruary 25, 2019\n\n* Round bars feature added.\n\n\n## 1.0.0\n----------------------------\nFebruary 21, 2019\n\n* Initial release\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to making participation in our project and\nour community a harassment-free experience for everyone, regardless of age, body\nsize, disability, ethnicity, sex characteristics, gender identity and expression,\nlevel of experience, education, socio-economic status, nationality, personal\nappearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or\n advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic\n address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or\nreject comments, commits, code, wiki edits, issues, and other contributions\nthat are not aligned to this Code of Conduct, or to ban temporarily or\npermanently any contributor for other behaviors that they deem inappropriate,\nthreatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces\nwhen an individual is representing the project or its community. Examples of\nrepresenting a project or community include using an official project e-mail\naddress, posting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event. Representation of a project may be\nfurther defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported by contacting the project team at taufiqrx8@gmail.com. All\ncomplaints will be reviewed and investigated and will result in a response that\nis deemed necessary and appropriate to the circumstances. The project team is\nobligated to maintain confidentiality with regard to the reporter of an incident.\nFurther details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good\nfaith may face temporary or permanent repercussions as determined by other\nmembers of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,\navailable at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see\nhttps://www.contributor-covenant.org/faq\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing\n\nFirstly thank you for contributing to our project! When contributing to this repository, please first discuss the change you wish to make via issue,\nemail, comments on issue or any other method with the owners of this repository before making a change. \n\nPlease note we have a code of conduct, please follow it in all your interactions with the project.\n\n## Pull Request Process\n\n1. Ensure any install or build dependencies are removed before the end of the layer when doing a \n   build.\n2. Smaller is better.\n   Big changes are significantly less likely to be accepted and or might take time to be merged.\n\nTry not to take on too much at once. As a first-time contributor, we recommend starting with small and simple PRs in order to become familiar with the codebase. Most of the work should go into discovering which three lines need to change rather than writing the code.\n"
  },
  {
    "path": "CONTRIBUTORS.md",
    "content": "# Contributors\n\nFormat:\n[name](github profile link)\n\n* **[Taufiq Rahman](https://github.com/Inconnu08)**\n* **[Chan Myae Aung](https://github.com/CMyae)**\n* **[Adrian Alexandru Coman](https://github.com/adriancoman)**\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": "[//]: # (<p align=\"center\"><img width=12.5% src=\"\"></p>)\n\n# RatingReviews\n___\n\n![](https://img.shields.io/badge/build-passing-brightgreen.svg) ![](https://img.shields.io/badge/API-16%2B-red.svg) ![](https://img.shields.io/badge/release-v1.2.0-blue.svg) ![](http://img.shields.io/badge/license-Apache_2.0-red.svg) ![](https://img.shields.io/badge/contributions-welcomed-orange.svg)\n[![](https://jitpack.io/v/Inconnu08/android-ratingreviews.svg)](https://jitpack.io/#Inconnu08/android-ratingreviews)\n[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-RatingReviews-green.svg?style=flat )]( https://android-arsenal.com/details/1/7529 ) \n\nRatingReviews (*Rating and Reviews*) is a widget and layout that adds a \"Rating & Reviews\" bar to your app, similar to the ones seen on Google Play Store and Apple App Store. It provides a beautiful visual summary of the number of raters along with the ratings they gave on a specific item. Of course, it is also highly customizable to fit your app themes! ⭐🌟✨\n\n\n### Screenshots\n\n| [![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/0.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/0.png)  | [![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/1.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/1.png) | [![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/2.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/2.png) |\n[![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/3.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/3.png) |\n|:---:|:---:|:---:|:---:|\n| playstore (*style1*) | appstore (*style2*) | playstore (*new rounded*) | customized (*style2*) |\n\n| [![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/6.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/6.png)  | [![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/7.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/7.png) | [![](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/8.png)](https://github.com/Inconnu08/android-ratingreviews/blob/master/screenshots/8.png) |\n|:---:|:---:|:---:|\n| gradient (*rounded*) | gradient | playstore (*old*) |\n\n*All of these samples can be found in [app](https://github.com/Inconnu08/android-ratingreviews/tree/master/app/src/main)*\n\nYou can also:\n  - Take an existing style and customise it to be your desired style. \n  - Add gradient colors to the bar and add an array of pairs to the colors parameter in your code. See the sample for more details.\n\n\n\n\n### Installation\nMake sure your project is migrated to  [**AndroidX**](https://developer.android.com/jetpack/androidx). \n\nIn your root build.gradle at the end of repositories:\n```\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nIn your app build.gradle:\n```\nimplementation 'com.github.Inconnu08:android-ratingreviews:1.2.0'\n```\n\n### Usage\n\nUsing RatingReviews is simple. Here is an example:\n>java\n\n```\n        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews);\n\n        int colors[] = new int[]{\n                Color.parseColor(\"#0e9d58\"),\n                Color.parseColor(\"#bfd047\"),\n                Color.parseColor(\"#ffc105\"),\n                Color.parseColor(\"#ef7e14\"),\n                Color.parseColor(\"#d36259\")};\n\n        int raters[] = new int[]{\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100)\n        };\n\n        ratingReviews.createRatingBars(100, BarLabels.STYPE1, colors, raters);\n```\n>xml\n\n```\n    <com.taufiqrahman.reviewratings.RatingReviews\n        xmlns:bar=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/rating_reviews\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"42dp\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginBottom=\"8dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintVertical_bias=\"0.499\"\n        bar:animation=\"true\"\n        bar:max_value=\"100\"\n        bar:show_label=\"true\"\n        bar:spaces=\"0dp\"\n        bar:text_color=\"#333333\"\n        bar:text_size=\"10sp\"\n        bar:width=\"15dp\" />\n```\n\n### Specification\n\nThe table below shows the parameters and the attributes for furthur customization:\n\n| Attribute | Description | Options (examples) |\n| ------ | ------ | ------ |\n| animation | of the bars from left to right  | true, false |\n| show_label | of the bars for example: 1, 2, 3, 4, 5  | STYPE1,  STYPE2, STYPE3, STYPE4|\n| max_value | max value for the ratings  | 100 etc |\n| text_color | color of the texts for example the labels  | color int |\n| text_size | text size of labels  | 10sp, 12sp etc |\n| width | bar width  | 8dp, 15dp etc |\n| spaces | space between bars  | 1sp, 2dp etc |\n| rounded | round corners of bars  | true, false |\n\n\n### Contribution\n\nWant to contribute? Fantastic! \n\nIf you want to contribute to the project and make it better (whether it's a bug fix, feature, improvement, suggestion, documentation or any sort of help), your help is very welcomed! ❤\n\n### Todos\n\n - Optimization\n \n [*Check issues*](https://github.com/Inconnu08/android-ratingreviews/issues)\n\n### Motivation\n\nThere was no visual 5 star rating system when I needed it for a project.\nSpecial thanks to the chart libraries where I took some inspiration from.\n\n### License\n```\n   Copyright (C) 2019 Taufiq Rahman\n   Copyright (C) 2018 Android Open Source Project\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n```\n\n\n<div align=\"center\">\n  <sub>Built with ❤︎ by\n  <a href=\"https://twitter.com/taufiqr45780657\">Taufiq Rahman</a> and\n  <a href=\"https://github.com/Inconnu08/android-ratingreviews/blob/master/CONTRIBUTORS.md\">\n    contributors\n  </a>\n</div>\n\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)\n\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nandroid {\n    compileSdkVersion 28\n    defaultConfig {\n        applicationId \"com.taufiqrahman.ratingreviews\"\n        minSdkVersion 16\n        targetSdkVersion 28\n        versionCode 1\n        versionName \"1.2.0\"\n        testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n        multiDexEnabled true\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'\n        }\n    }\n}\n\ndependencies {\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\n    implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'\n    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'\n    testImplementation 'junit:junit:4.12'\n    androidTestImplementation 'androidx.test:runner:1.1.2-alpha01'\n    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.2-alpha01'\n    implementation project(\":reviewratings\")\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "app/src/androidTest/java/com/taufiqrahman/ratingreviews/ExampleInstrumentedTest.java",
    "content": "package com.taufiqrahman.ratingreviews;\n\nimport android.content.Context;\n\nimport androidx.test.InstrumentationRegistry;\nimport androidx.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"com.taufiqrahman.ratingreviews\", 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.taufiqrahman.ratingreviews\">\n\n    <application\n            android:allowBackup=\"true\"\n            android:icon=\"@mipmap/ic_launcher\"\n            android:label=\"@string/app_name\"\n            android:roundIcon=\"@mipmap/ic_launcher_round\"\n            android:supportsRtl=\"true\"\n            android:theme=\"@style/AppTheme\">\n        <activity android:name=\".RoundBarSampleActivity\">\n        </activity>\n        <activity android:name=\".Example2Activity\"/>\n        <activity android:name=\".RoundedGradientActivity\"/>\n        <activity android:name=\".GradientActivity\" />\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\n        <meta-data\n                android:name=\"preloaded_fonts\"\n                android:resource=\"@array/preloaded_fonts\"/>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/taufiqrahman/ratingreviews/Example2Activity.java",
    "content": "package com.taufiqrahman.ratingreviews;\n\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.content.Intent;\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Toast;\n\nimport com.taufiqrahman.reviewratings.Bar;\nimport com.taufiqrahman.reviewratings.BarLabels;\nimport com.taufiqrahman.reviewratings.RatingReviews;\n\nimport java.util.Random;\n\npublic class Example2Activity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_example2);\n\n        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews2);\n\n        int raters[] = new int[]{\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100)\n        };\n\n        int color = Color.parseColor(\"#333333\");\n\n        ratingReviews.createRatingBars(100, BarLabels.STYPE2, color, raters);\n\n        ratingReviews.setOnBarClickListener(new RatingReviews.OnBarClickListener() {\n            @Override\n            public void onBarClick(Bar bar) {\n                Toast.makeText(Example2Activity.this, bar.getStarLabel(), Toast.LENGTH_SHORT).show();\n            }\n        });\n    }\n\n    public void callExample3Activity(View view) {\n        Intent intent = new Intent(this, Example2Activity.class);\n        startActivity(intent);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/taufiqrahman/ratingreviews/GradientActivity.java",
    "content": "package com.taufiqrahman.ratingreviews;\n\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.util.Pair;\n\nimport com.taufiqrahman.reviewratings.BarLabels;\nimport com.taufiqrahman.reviewratings.RatingReviews;\n\nimport java.util.Random;\n\npublic class GradientActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_gradient);\n\n\n        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews);\n\n        Pair colors[] = new Pair[]{\n            new Pair<>(Color.parseColor(\"#0e9d58\"), Color.parseColor(\"#1e88e5\")),\n            new Pair<>(Color.parseColor(\"#bfd047\"), Color.parseColor(\"#5c6bc0\")),\n            new Pair<>(Color.parseColor(\"#ffc105\"), Color.parseColor(\"#d81b60\")),\n            new Pair<>(Color.parseColor(\"#ef7e14\"), Color.parseColor(\"#8bc34a\")),\n            new Pair<>(Color.parseColor(\"#d36259\"), Color.parseColor(\"#ea80fc\"))\n        };\n\n        int minValue = 30;\n\n        int raters[] = new int[]{\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1)\n        };\n\n        ratingReviews.createRatingBars(100, BarLabels.STYPE1, colors, raters);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/taufiqrahman/ratingreviews/MainActivity.java",
    "content": "package com.taufiqrahman.ratingreviews;\n\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.content.Intent;\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.view.View;\n\nimport com.taufiqrahman.reviewratings.BarLabels;\nimport com.taufiqrahman.reviewratings.RatingReviews;\n\nimport java.util.Random;\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        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews);\n\n        int colors[] = new int[]{\n                Color.parseColor(\"#0e9d58\"),\n                Color.parseColor(\"#bfd047\"),\n                Color.parseColor(\"#ffc105\"),\n                Color.parseColor(\"#ef7e14\"),\n                Color.parseColor(\"#d36259\")};\n\n        int raters[] = new int[]{\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100)\n        };\n\n        ratingReviews.createRatingBars(100, BarLabels.STYPE1, colors, raters);\n    }\n\n    public void callExample2Activity(View view) {\n        Intent intent = new Intent(this, Example2Activity.class);\n        startActivity(intent);\n    }\n\n    public void goToRoundBarSample(View view) {\n        startActivity(new Intent(this, RoundBarSampleActivity.class));\n    }\n\n    public void goToGradientSample(View view) {\n        startActivity(new Intent(this, GradientActivity.class));\n    }\n\n    public void goToRoundedGradientSample(View view) {\n        startActivity(new Intent(this, RoundedGradientActivity.class));\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/taufiqrahman/ratingreviews/RoundBarSampleActivity.java",
    "content": "package com.taufiqrahman.ratingreviews;\n\nimport android.graphics.Color;\nimport androidx.appcompat.app.AppCompatActivity;\nimport android.os.Bundle;\nimport com.taufiqrahman.reviewratings.BarLabels;\nimport com.taufiqrahman.reviewratings.RatingReviews;\n\nimport java.util.Random;\n\npublic class RoundBarSampleActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_round_bar_sample);\n\n        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews);\n\n        int raters[] = new int[]{\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100),\n                new Random().nextInt(100)\n        };\n\n        ratingReviews.createRatingBars(100, BarLabels.STYPE3, Color.parseColor(\"#0f9d58\"), raters);\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/taufiqrahman/ratingreviews/RoundedGradientActivity.java",
    "content": "package com.taufiqrahman.ratingreviews;\n\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.util.Pair;\n\nimport com.taufiqrahman.reviewratings.BarLabels;\nimport com.taufiqrahman.reviewratings.RatingReviews;\n\nimport java.util.Random;\n\npublic class RoundedGradientActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_rounded_gradient);\n\n        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews);\n\n        Pair colors[] = new Pair[]{\n                new Pair<>(Color.parseColor(\"#0c96c7\"), Color.parseColor(\"#00fe77\")),\n                new Pair<>(Color.parseColor(\"#7b0ab4\"), Color.parseColor(\"#ff069c\")),\n                new Pair<>(Color.parseColor(\"#fe6522\"), Color.parseColor(\"#fdd116\")),\n                new Pair<>(Color.parseColor(\"#104bff\"), Color.parseColor(\"#67cef6\")),\n                new Pair<>(Color.parseColor(\"#ff5d9b\"), Color.parseColor(\"#ffaa69\"))\n        };\n\n        int minValue = 30;\n\n        int raters[] = new int[]{\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1),\n                minValue + new Random().nextInt(100 - minValue + 1)\n        };\n\n\n        ratingReviews.createRatingBars(100, BarLabels.STYPE3, colors, raters);\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillColor=\"#008577\"\n        android:pathData=\"M0,0h108v108h-108z\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M9,0L9,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,0L19,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,0L29,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,0L39,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,0L49,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,0L59,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,0L69,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,0L79,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M89,0L89,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M99,0L99,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,9L108,9\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,19L108,19\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,29L108,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,39L108,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,49L108,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,59L108,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,69L108,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,79L108,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,89L108,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,99L108,99\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,29L89,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,39L89,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,49L89,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,59L89,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,69L89,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,79L89,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,19L29,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,19L39,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,19L49,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,19L59,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,19L69,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,19L79,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillType=\"evenOdd\"\n        android:pathData=\"M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\">\n        <aapt:attr name=\"android:fillColor\">\n            <gradient\n                android:endX=\"78.5885\"\n                android:endY=\"90.9159\"\n                android:startX=\"48.7653\"\n                android:startY=\"61.0927\"\n                android:type=\"linear\">\n                <item\n                    android:color=\"#44000000\"\n                    android:offset=\"0.0\" />\n                <item\n                    android:color=\"#00000000\"\n                    android:offset=\"1.0\" />\n            </gradient>\n        </aapt:attr>\n    </path>\n    <path\n        android:fillColor=\"#FFFFFF\"\n        android:fillType=\"nonZero\"\n        android:pathData=\"M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/font/roboto.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<font-family xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n        app:fontProviderAuthority=\"com.google.android.gms.fonts\"\n        app:fontProviderPackage=\"com.google.android.gms\"\n        app:fontProviderQuery=\"Roboto\"\n        app:fontProviderCerts=\"@array/com_google_android_gms_fonts_certs\">\n</font-family>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_example2.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n\n    <com.taufiqrahman.reviewratings.RatingReviews xmlns:bar=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/rating_reviews2\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"32dp\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:layout_marginBottom=\"8dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintVertical_bias=\"0.499\"\n        bar:style=\"style2\"\n        bar:animation=\"false\"\n        bar:max_value=\"100\"\n        bar:show_label=\"true\"\n        bar:show_raters=\"false\"\n        bar:spaces=\"5dp\"\n        bar:text_color=\"#000000\"\n        bar:text_size=\"10sp\"\n        bar:width=\"10dp\"\n        android:layout_marginLeft=\"32dp\"\n        android:layout_marginRight=\"8dp\" />\n\n    <TextView\n        android:id=\"@+id/textView\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"?android:selectableItemBackground\"\n        android:fontFamily=\"@font/roboto\"\n        android:text=\"4.9\"\n        android:textColor=\"#333333\"\n        android:textSize=\"36sp\"\n        android:textStyle=\"bold\"\n        app:layout_constraintBottom_toTopOf=\"@+id/textView4\"\n        app:layout_constraintEnd_toEndOf=\"@+id/textView4\"\n        app:layout_constraintStart_toStartOf=\"@+id/textView4\"\n        app:layout_constraintTop_toTopOf=\"@+id/rating_reviews2\"\n        app:layout_constraintVertical_bias=\"0.38\" />\n\n    <TextView\n        android:id=\"@+id/textView4\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginBottom=\"8dp\"\n        android:text=\"Out of 5\"\n        android:textStyle=\"bold\"\n        app:layout_constraintBottom_toBottomOf=\"@+id/rating_reviews2\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/textView\"\n        app:layout_constraintVertical_bias=\"0.0\" />\n\n    <TextView\n        android:id=\"@+id/textView5\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:layout_marginBottom=\"8dp\"\n        android:text=\"Ratings &amp; Reviews\"\n        android:textAppearance=\"@android:style/TextAppearance.Material.Headline\"\n        android:textStyle=\"bold\"\n        app:layout_constraintBottom_toTopOf=\"@+id/textView\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintHorizontal_bias=\"0.0\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintVertical_bias=\"0.9\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_gradient.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout 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\n    <com.taufiqrahman.reviewratings.RatingReviews xmlns:bar=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/rating_reviews\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"42dp\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginBottom=\"8dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintVertical_bias=\"0.499\"\n        bar:animation=\"true\"\n        bar:max_value=\"100\"\n        bar:show_label=\"true\"\n        bar:spaces=\"0dp\"\n        bar:text_color=\"#808080\"\n        bar:text_size=\"10sp\"\n        bar:width=\"15dp\" />\n\n    <TextView\n        android:id=\"@+id/textView\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:background=\"?android:selectableItemBackground\"\n        android:fontFamily=\"@font/roboto\"\n        android:text=\"4.6\"\n        android:textColor=\"#333333\"\n        android:textSize=\"26sp\"\n        app:layout_constraintEnd_toEndOf=\"@+id/ratingBar\"\n        app:layout_constraintHorizontal_bias=\"0.36\"\n        app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n        app:layout_constraintTop_toTopOf=\"@+id/rating_reviews\" />\n\n    <RatingBar\n        android:id=\"@+id/ratingBar\"\n        style=\"@android:style/Widget.Material.Light.RatingBar.Small\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:numStars=\"5\"\n        android:progressTint=\"#333333\"\n        android:rating=\"4\"\n        android:stepSize=\"1\"\n        app:layout_constraintBottom_toBottomOf=\"@+id/rating_reviews\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/textView\"\n        app:layout_constraintVertical_bias=\"0.07999998\"\n        android:layout_marginLeft=\"16dp\" />\n\n    <TextView\n        android:id=\"@+id/textView2\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"2dp\"\n        android:text=\"756, 800\"\n        android:textColor=\"#333333\"\n        android:textSize=\"12sp\"\n        app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n        app:layout_constraintTop_toBottomOf=\"@+id/ratingBar\"\n        android:layout_marginLeft=\"8dp\" />\n\n    <ImageView\n        android:id=\"@+id/imageView\"\n        android:layout_width=\"16dp\"\n        android:layout_height=\"16dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:backgroundTint=\"#333333\"\n        app:layout_constraintEnd_toEndOf=\"@+id/ratingBar\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView2\"\n        app:layout_constraintTop_toTopOf=\"@+id/textView2\"\n        app:srcCompat=\"@drawable/ic_person\"\n        android:layout_marginRight=\"8dp\" />\n\n    <TextView\n        android:id=\"@+id/textView3\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:layout_marginBottom=\"24dp\"\n        android:text=\"Ratings &amp; Reviews\"\n        android:textAppearance=\"@style/TextAppearance.AppCompat.Headline\"\n        app:layout_constraintBottom_toTopOf=\"@+id/rating_reviews\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintHorizontal_bias=\"0.0\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        android:layout_marginLeft=\"16dp\"\n        android:layout_marginRight=\"8dp\" />\n\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout 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\n    <com.taufiqrahman.reviewratings.RatingReviews xmlns:bar=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/rating_reviews\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"42dp\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginBottom=\"8dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        bar:animation=\"true\"\n        bar:layout_constraintVertical_bias=\"0.19\"\n        bar:max_value=\"100\"\n        bar:show_label=\"true\"\n        bar:spaces=\"0dp\"\n        bar:text_color=\"#808080\"\n        bar:text_size=\"10sp\"\n        bar:width=\"15dp\" />\n\n    <TextView\n        android:id=\"@+id/textView\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:background=\"?android:selectableItemBackground\"\n        android:fontFamily=\"@font/roboto\"\n        android:text=\"4.6\"\n        android:textColor=\"#333333\"\n        android:textSize=\"26sp\"\n        app:layout_constraintEnd_toEndOf=\"@+id/ratingBar\"\n        app:layout_constraintHorizontal_bias=\"0.36\"\n        app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n        app:layout_constraintTop_toTopOf=\"@+id/rating_reviews\" />\n\n    <RatingBar\n        android:id=\"@+id/ratingBar\"\n        style=\"@android:style/Widget.Material.Light.RatingBar.Small\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:numStars=\"5\"\n        android:progressTint=\"#333333\"\n        android:rating=\"4\"\n        android:stepSize=\"1\"\n        app:layout_constraintBottom_toBottomOf=\"@+id/rating_reviews\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/textView\"\n        app:layout_constraintVertical_bias=\"0.07999998\"\n        android:layout_marginLeft=\"16dp\" />\n\n    <TextView\n        android:id=\"@+id/textView2\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"2dp\"\n        android:text=\"756, 800\"\n        android:textColor=\"#333333\"\n        android:textSize=\"12sp\"\n        app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n        app:layout_constraintTop_toBottomOf=\"@+id/ratingBar\"\n        android:layout_marginLeft=\"8dp\" />\n\n    <ImageView\n        android:id=\"@+id/imageView\"\n        android:layout_width=\"16dp\"\n        android:layout_height=\"16dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:backgroundTint=\"#333333\"\n        app:layout_constraintEnd_toEndOf=\"@+id/ratingBar\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView2\"\n        app:layout_constraintTop_toTopOf=\"@+id/textView2\"\n        app:srcCompat=\"@drawable/ic_person\"\n        android:layout_marginRight=\"8dp\" />\n\n    <TextView\n        android:id=\"@+id/textView3\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:layout_marginBottom=\"24dp\"\n        android:text=\"Ratings &amp; Reviews\"\n        android:textAppearance=\"@style/TextAppearance.AppCompat.Headline\"\n        app:layout_constraintBottom_toTopOf=\"@+id/rating_reviews\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintHorizontal_bias=\"0.0\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        android:layout_marginLeft=\"16dp\"\n        android:layout_marginRight=\"8dp\" />\n\n    <Button\n        android:id=\"@+id/button\"\n        style=\"@style/Widget.AppCompat.Button.Colored\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginLeft=\"8dp\"\n        android:layout_marginTop=\"32dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:layout_marginRight=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:onClick=\"callExample2Activity\"\n        android:text=\"Apple App Store Sample\"\n        android:textAllCaps=\"false\"\n        app:layout_constraintBottom_toTopOf=\"@id/button2\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/rating_reviews\"\n        app:layout_constraintVertical_bias=\"1.0\" />\n\n    <Button\n        android:id=\"@+id/button2\"\n        style=\"@style/Widget.AppCompat.Button.Colored\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginLeft=\"8dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:layout_marginRight=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:onClick=\"goToRoundBarSample\"\n        android:text=\"Rounded Bar Sample\"\n        android:textAllCaps=\"false\"\n        app:layout_constraintBottom_toTopOf=\"@id/gradientBtn\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n    <Button\n        android:id=\"@+id/gradientBtn\"\n        style=\"@style/Widget.AppCompat.Button.Colored\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginLeft=\"8dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:layout_marginRight=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:onClick=\"goToGradientSample\"\n        android:text=\"Gradient Bar Sample\"\n        android:textAllCaps=\"false\"\n        app:layout_constraintBottom_toTopOf=\"@+id/roundedGradientBtn\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n    <Button\n        android:id=\"@+id/roundedGradientBtn\"\n        style=\"@style/Widget.AppCompat.Button.Colored\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginLeft=\"8dp\"\n        android:layout_marginEnd=\"16dp\"\n        android:layout_marginRight=\"16dp\"\n        android:layout_marginBottom=\"16dp\"\n        android:onClick=\"goToRoundedGradientSample\"\n        android:text=\"Rounded Gradient Bar Sample\"\n        android:textAllCaps=\"false\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_round_bar_sample.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".RoundBarSampleActivity\" >\n\n  <com.taufiqrahman.reviewratings.RatingReviews xmlns:bar=\"http://schemas.android.com/apk/res-auto\"\n      android:id=\"@+id/rating_reviews\"\n      android:layout_width=\"0dp\"\n      android:layout_height=\"wrap_content\"\n      android:layout_marginStart=\"42dp\"\n      android:layout_marginTop=\"8dp\"\n      android:layout_marginBottom=\"8dp\"\n      app:layout_constraintBottom_toBottomOf=\"parent\"\n      app:layout_constraintEnd_toEndOf=\"parent\"\n      app:layout_constraintStart_toEndOf=\"@+id/textView\"\n      app:layout_constraintTop_toTopOf=\"parent\"\n      app:layout_constraintVertical_bias=\"0.499\"\n      bar:animation=\"true\"\n      bar:max_value=\"100\"\n      bar:show_label=\"true\"\n      bar:show_raters=\"false\"\n      bar:spaces=\"7dp\"\n      bar:text_color=\"#333333\"\n      bar:text_size=\"10sp\"\n      bar:rounded=\"true\"\n      bar:width=\"12dp\" />\n\n  <TextView\n      android:id=\"@+id/textView\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_marginStart=\"8dp\"\n      android:layout_marginEnd=\"8dp\"\n      android:background=\"?android:selectableItemBackground\"\n      android:fontFamily=\"@font/roboto\"\n      android:text=\"4.7\"\n      android:textColor=\"#333333\"\n      android:textSize=\"36sp\"\n      android:textStyle=\"bold\"\n      app:layout_constraintEnd_toEndOf=\"@+id/ratingBar\"\n      app:layout_constraintHorizontal_bias=\"0.36\"\n      app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n      app:layout_constraintTop_toTopOf=\"@+id/rating_reviews\" />\n\n  <RatingBar\n      android:id=\"@+id/ratingBar\"\n      style=\"@android:style/Widget.Material.Light.RatingBar.Small\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_marginStart=\"16dp\"\n      android:numStars=\"5\"\n      android:progressTint=\"#0f9d58\"\n      android:backgroundTint=\"#0f9d58\"\n      android:rating=\"4\"\n      android:stepSize=\"1\"\n      app:layout_constraintBottom_toBottomOf=\"@+id/rating_reviews\"\n      app:layout_constraintStart_toStartOf=\"parent\"\n      app:layout_constraintTop_toBottomOf=\"@+id/textView\"\n      app:layout_constraintVertical_bias=\"0.07999998\"\n      android:layout_marginLeft=\"16dp\" />\n\n  <TextView\n      android:id=\"@+id/textView2\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_marginStart=\"8dp\"\n      android:layout_marginTop=\"2dp\"\n      android:text=\"756, 800\"\n      android:textColor=\"#333333\"\n      android:textSize=\"12sp\"\n      app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n      app:layout_constraintTop_toBottomOf=\"@+id/ratingBar\"\n      android:layout_marginLeft=\"8dp\" />\n\n  <TextView\n      android:id=\"@+id/textView3\"\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      android:layout_marginStart=\"16dp\"\n      android:layout_marginLeft=\"16dp\"\n      android:layout_marginEnd=\"8dp\"\n      android:layout_marginRight=\"8dp\"\n      android:layout_marginBottom=\"24dp\"\n      android:text=\"Ratings &amp; Reviews\"\n      android:textAppearance=\"@android:style/TextAppearance.Material.WindowTitle\"\n      android:textStyle=\"bold\"\n      app:layout_constraintBottom_toTopOf=\"@+id/rating_reviews\"\n      app:layout_constraintEnd_toEndOf=\"parent\"\n      app:layout_constraintHorizontal_bias=\"0.0\"\n      app:layout_constraintStart_toStartOf=\"parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_rounded_gradient.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    tools:context=\".RoundBarSampleActivity\" >\n\n    <com.taufiqrahman.reviewratings.RatingReviews xmlns:bar=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/rating_reviews\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"42dp\"\n        android:layout_marginTop=\"8dp\"\n        android:layout_marginBottom=\"8dp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/textView\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:layout_constraintVertical_bias=\"0.499\"\n        bar:animation=\"true\"\n        bar:max_value=\"100\"\n        bar:show_label=\"true\"\n        bar:show_raters=\"false\"\n        bar:spaces=\"7dp\"\n        bar:text_color=\"#333333\"\n        bar:text_size=\"10sp\"\n        bar:rounded=\"true\"\n        bar:width=\"12dp\" />\n\n    <TextView\n        android:id=\"@+id/textView\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:background=\"?android:selectableItemBackground\"\n        android:fontFamily=\"@font/roboto\"\n        android:text=\"4.7\"\n        android:textColor=\"#333333\"\n        android:textSize=\"36sp\"\n        android:textStyle=\"bold\"\n        app:layout_constraintEnd_toEndOf=\"@+id/ratingBar\"\n        app:layout_constraintHorizontal_bias=\"0.36\"\n        app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n        app:layout_constraintTop_toTopOf=\"@+id/rating_reviews\" />\n\n    <RatingBar\n        android:id=\"@+id/ratingBar\"\n        style=\"@android:style/Widget.Material.Light.RatingBar.Small\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:numStars=\"5\"\n        android:progressTint=\"#0f9d58\"\n        android:backgroundTint=\"#0f9d58\"\n        android:rating=\"4\"\n        android:stepSize=\"1\"\n        app:layout_constraintBottom_toBottomOf=\"@+id/rating_reviews\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toBottomOf=\"@+id/textView\"\n        app:layout_constraintVertical_bias=\"0.07999998\"\n        android:layout_marginLeft=\"16dp\" />\n\n    <TextView\n        android:id=\"@+id/textView2\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"8dp\"\n        android:layout_marginTop=\"2dp\"\n        android:text=\"756, 800\"\n        android:textColor=\"#333333\"\n        android:textSize=\"12sp\"\n        app:layout_constraintStart_toStartOf=\"@+id/ratingBar\"\n        app:layout_constraintTop_toBottomOf=\"@+id/ratingBar\"\n        android:layout_marginLeft=\"8dp\" />\n\n    <TextView\n        android:id=\"@+id/textView3\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginStart=\"16dp\"\n        android:layout_marginLeft=\"16dp\"\n        android:layout_marginEnd=\"8dp\"\n        android:layout_marginRight=\"8dp\"\n        android:layout_marginBottom=\"24dp\"\n        android:text=\"Ratings &amp; Reviews\"\n        android:textAppearance=\"@android:style/TextAppearance.Material.WindowTitle\"\n        android:textStyle=\"bold\"\n        app:layout_constraintBottom_toTopOf=\"@+id/rating_reviews\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintHorizontal_bias=\"0.0\"\n        app:layout_constraintStart_toStartOf=\"parent\" />\n\n</androidx.constraintlayout.widget.ConstraintLayout>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#06AEEC</color>\n    <color name=\"colorPrimaryDark\">#0793C7</color>\n    <color name=\"colorAccent\">#D81B60</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/font_certs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <array name=\"com_google_android_gms_fonts_certs\">\n        <item>@array/com_google_android_gms_fonts_certs_dev</item>\n        <item>@array/com_google_android_gms_fonts_certs_prod</item>\n    </array>\n    <string-array name=\"com_google_android_gms_fonts_certs_dev\">\n        <item>\n            MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=\n        </item>\n    </string-array>\n    <string-array name=\"com_google_android_gms_fonts_certs_prod\">\n        <item>\n            MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK\n        </item>\n    </string-array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/preloaded_fonts.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <array name=\"preloaded_fonts\" translatable=\"false\">\n        <item>@font/roboto</item>\n    </array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n  <string name=\"app_name\">RatingReviews</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/test/java/com/taufiqrahman/ratingreviews/ExampleUnitTest.java",
    "content": "package com.taufiqrahman.ratingreviews;\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() {\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        google()\n        jcenter()\n        \n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.3.1'\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        google()\n        jcenter()\n        \n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Thu Feb 07 13:46:36 CST 2019\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.10.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\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# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app's APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Automatically convert third-party libraries to use AndroidX\nandroid.enableJetifier=true\n\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, 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# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\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\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\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\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 Windows variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_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=%*\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": "reviewratings/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "reviewratings/build.gradle",
    "content": "apply plugin: 'com.android.library'\n\nandroid {\n    compileSdkVersion 28\n    defaultConfig {\n        minSdkVersion 16\n        targetSdkVersion 28\n        versionCode 1\n        versionName \"1.2.0\"\n\n        testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n\n    }\n\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'\n        }\n    }\n\n}\n\ndependencies {\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\n\n    implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'\n    testImplementation 'junit:junit:4.12'\n    androidTestImplementation 'androidx.test:runner:1.1.2-alpha01'\n    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.2-alpha01'\n    implementation 'org.jetbrains:annotations-java5:15.0'\n}\n"
  },
  {
    "path": "reviewratings/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "reviewratings/src/androidTest/java/com/taufiqrahman/reviewratings/ExampleInstrumentedTest.java",
    "content": "package com.taufiqrahman.reviewratings;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"com.taufiqrahman.reviewratings.test\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "reviewratings/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.taufiqrahman.reviewratings\" />\n"
  },
  {
    "path": "reviewratings/src/main/java/com/taufiqrahman/reviewratings/Bar.java",
    "content": "/*\n  Copyright 2018 The Android Open Source Project\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n\n  Created by Taufiq Rahman on 07/02/19.\n */\n\npackage com.taufiqrahman.reviewratings;\n\n/**\n * Bar represent the single unit bar of the star rating system.\n */\n\npublic class Bar {\n    private String starLabel;\n    private int raters;\n    private int color;\n    private int startColor;\n    private int endColor;\n\n    public Bar() {\n    }\n\n    Bar(int raters, int color) {\n        this.raters = raters;\n        this.color = color;\n    }\n\n    Bar(int raters, int color, String starLabel) {\n        this.raters = raters;\n        this.color = color;\n        this.starLabel = starLabel;\n    }\n\n    public int getRaters() {\n        return raters;\n    }\n\n    public void setRaters(int raters) {\n        this.raters = raters;\n    }\n\n    public int getColor() {\n        return color;\n    }\n\n    public void setColor(int color) {\n        this.color = color;\n    }\n\n    public String getStarLabel() {\n        return starLabel;\n    }\n\n    public void setStarLabel(String starLabel) {\n        this.starLabel = starLabel;\n    }\n\n    public int getEndColor() {\n        return endColor;\n    }\n\n    public void setEndColor(int endColor) {\n        this.endColor = endColor;\n    }\n\n    public boolean isGradientBar() {\n        return endColor != 0;\n    }\n\n    public int getStartColor() {\n        return startColor;\n    }\n\n    public void setStartColor(int startColor) {\n        this.startColor = startColor;\n    }\n}\n"
  },
  {
    "path": "reviewratings/src/main/java/com/taufiqrahman/reviewratings/BarLabels.java",
    "content": "/*\n  Copyright 2018 The Android Open Source Project\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n\n  Created by Taufiq Rahman on 07/02/19.\n */\n\npackage com.taufiqrahman.reviewratings;\n\npublic class BarLabels {\n\n    public static final String STYPE1[] = new String[]{\n            \"5★ \",\n            \"4★ \",\n            \"3★ \",\n            \"2★ \",\n            \"1★ \"};\n\n    public static final String STYPE2[] = new String[]{\n            \"  ⛧⛧⛧⛧⛧\",\n            \"  ⛧⛧⛧⛧\",\n            \"  ⛧⛧⛧\",\n            \"  ⛧⛧\",\n            \"  ⛧\"};\n\n    public static final String STYPE3[] = new String[]{\n            \"5 \",\n            \"4 \",\n            \"3 \",\n            \"2 \",\n            \"1 \"};\n\n    public static final String STYPE4[] = new String[]{\n            \"  ●●●●●\",\n            \"  ●●●●\",\n            \"  ●●●\",\n            \"  ●●\",\n            \"  ●\"};\n\n    public static final String STYPE5[] = new String[]{\n            \"5 stars \",\n            \"4 stars \",\n            \"3 stars \",\n            \"2 stars \",\n            \"1 star  \"};\n}\n"
  },
  {
    "path": "reviewratings/src/main/java/com/taufiqrahman/reviewratings/RatingReviews.java",
    "content": "/*\n  Copyright 2018 The Android Open Source Project\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n\n  Created by Taufiq Rahman on 07/02/19.\n */\n\npackage com.taufiqrahman.reviewratings;\n\nimport android.animation.LayoutTransition;\nimport android.animation.ValueAnimator;\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.graphics.drawable.GradientDrawable;\nimport android.os.Build;\nimport android.util.AttributeSet;\nimport android.util.Pair;\nimport android.view.Gravity;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.view.ViewTreeObserver;\nimport android.widget.FrameLayout;\nimport android.widget.LinearLayout;\nimport android.widget.TextView;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\nimport static com.taufiqrahman.reviewratings.Utils.getRoundedBarDrawable;\nimport static com.taufiqrahman.reviewratings.Utils.getRoundedBarGradientDrawable;\n\npublic class RatingReviews extends FrameLayout {\n    private Context mCtx;\n\n    private int mBarSpaces;\n    private int mBarTextColor;\n    private int mBarDimension;\n    private int mBarTextSize;\n    private int mBarColor;\n    private int mBarMaxValue;\n    private int mStyle;\n    private int mNumOfBars;\n    private boolean isRoundCorner;\n\n    private boolean isBarAdded = false;\n    private boolean isShowLabel = true;\n    private boolean isShowRaters = true;\n    private boolean isShowAnimation = true;\n\n    private LinearLayout mLinearParentLayout;\n\n    private OnBarClickListener onBarClickListener;\n\n    private List<Bar> mBars = new ArrayList<>();\n\n    /**\n     * constructor\n     */\n    public RatingReviews(Context mCtx) {\n        super(mCtx);\n        initLayout();\n    }\n\n    /**\n     * constructor\n     */\n    public RatingReviews(Context mCtx, AttributeSet attrs) {\n        super(mCtx, attrs);\n        this.mCtx = mCtx;\n\n        TypedArray a = mCtx.obtainStyledAttributes(attrs, R.styleable.RatingReviews, 0, 0);\n\n        mStyle = a.getInt(R.styleable.RatingReviews_style, 1);\n        mBarDimension = a.getDimensionPixelSize(R.styleable.RatingReviews_width,\n                (int) Utils.convertDpToPixel(20, mCtx));\n        mBarColor = a.getColor(R.styleable.RatingReviews_color, Utils.DEFAULT_BAR_COLOR);\n        mBarTextSize = (int) Utils.convertPixelsToDp(\n                a.getDimensionPixelSize(R.styleable.RatingReviews_text_size,\n                        (int) Utils.convertDpToPixel(15, mCtx)), mCtx);\n        mBarTextColor = a.getColor(R.styleable.RatingReviews_text_color, Utils.DEFAULT_BAR_TEXT_COLOR);\n        mBarMaxValue = a.getInt(R.styleable.RatingReviews_max_value, 0);\n        mBarSpaces = a.getDimensionPixelSize(R.styleable.RatingReviews_spaces,\n                (int) Utils.convertDpToPixel(Utils.DEFAULT_BAR_SPACE, mCtx));\n        isRoundCorner = a.getBoolean(R.styleable.RatingReviews_rounded, false);\n\n        isShowLabel = a.getBoolean(R.styleable.RatingReviews_show_label, true);\n        isShowRaters = a.getBoolean(R.styleable.RatingReviews_show_raters, true);\n        isShowAnimation = a.getBoolean(R.styleable.RatingReviews_animation, true);\n\n        this.mNumOfBars = 5;\n\n        a.recycle();\n        initLayout();\n    }\n\n    /**\n     * initLayout creates the base linear layout for the rating mBars.\n     */\n    private void initLayout() {\n        mLinearParentLayout = new LinearLayout(mCtx);\n        mLinearParentLayout.setOrientation(LinearLayout.VERTICAL);\n        mLinearParentLayout.setLayoutParams(\n                new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n        mLinearParentLayout.setGravity(Gravity.START); // Gravity.LEFT | Gravity.START\n        if (isShowAnimation) {\n            mLinearParentLayout.setLayoutTransition(new LayoutTransition());\n        }\n        this.addView(mLinearParentLayout);\n    }\n\n    /**\n     * @param mBarMaxValue sets the max value for the Bar and should ONLY be called initially as it\n     *                     also clears all the mBars and data.\n     */\n    public void setMaxBarValue(int mBarMaxValue) {\n        this.mBarMaxValue = mBarMaxValue + 20; // 20+ scales much nicer but maybe should change soon.\n        clearAll();\n    }\n\n    /**\n     * createRatingBars creates the ratingreviews with values given by user.\n     *\n     * @param maxBarValue max value for the Bars.\n     * @param labels      format and styling of the label texts.\n     * @param colorsArr   expects an array of the color-int (parseColor).\n     * @param raters      expects an array of the raters for each stars given.\n     */\n    public void createRatingBars(int maxBarValue, String labels[], int colorsArr[], int raters[]) {\n\n        setMaxBarValue(maxBarValue);\n\n        for (int i = 0; i < mNumOfBars; i++) {\n            Bar bar = new Bar();\n            bar.setRaters(raters[i]);\n            bar.setColor(colorsArr[i]);\n            bar.setStarLabel(labels[i]);\n            addBar(bar);\n        }\n    }\n\n    /**\n     * createRatingBars creates the ratingreviews with values given by user.\n     *\n     * @param maxBarValue max value for the Bars.\n     * @param labels      format and styling of the label texts.\n     * @param colors      expects an array of Pairs composed of the start and end color for the gradient.\n     * @param raters      expects an array of the raters for each stars given.\n     */\n    public void createRatingBars(int maxBarValue, String labels[], Pair colors[], int raters[]) {\n\n        setMaxBarValue(maxBarValue);\n\n        for (int i = 0; i < mNumOfBars; i++) {\n            Bar bar = new Bar();\n            bar.setRaters(raters[i]);\n            bar.setStartColor((int) colors[i].first);\n            bar.setEndColor((int) colors[i].second);\n            bar.setStarLabel(labels[i]);\n            addBar(bar);\n        }\n    }\n\n\n    /**\n     * createRatingBars creates the ratingreviews with values given by user.\n     *\n     * @param maxBarValue max value for the Bars.\n     * @param labels      format and styling of the label texts.\n     * @param color       expects a color-int (parseColor) that is applied to every rating bar.\n     * @param raters      expects an array of the raters for each stars given.\n     */\n    public void createRatingBars(int maxBarValue, String labels[], int color, int raters[]) {\n\n        setMaxBarValue(maxBarValue);\n\n        for (int i = 0; i < mNumOfBars; i++) {\n            Bar bar = new Bar();\n            bar.setRaters(raters[i]);\n            bar.setColor(color);\n            bar.setStarLabel(labels[i]);\n            addBar(bar);\n        }\n    }\n\n    /**\n     * createBar inflates the given bar to the bar layout specified and calls draw() to render it.\n     *\n     * @param dimension of the bar.\n     * @param bar       object itself.\n     */\n    private void createBar(int dimension, final Bar bar) {\n        if (dimension == 0 || mBarMaxValue == 0) {\n            return;\n        }\n\n        int styleLayout;\n\n        switch (mStyle) {\n            case 1:\n                styleLayout = R.layout.bar;\n                break;\n            case 2:\n                styleLayout = R.layout.bar_two;\n                break;\n            default:\n                styleLayout = R.layout.bar;\n                break;\n        }\n\n        View view = LayoutInflater.from(mCtx).inflate(styleLayout, mLinearParentLayout, false);\n        draw(dimension, null, bar, view);\n    }\n\n    /**\n     * draw renders the bar with all the parameters specified.\n     *\n     * @param dimension  of bar.\n     * @param initialBar initial bar.\n     * @param bar        itself.\n     * @param view       view.\n     */\n    private void draw(int dimension, Bar initialBar, final Bar bar, final View view) {\n        final int bgColor = bar.getColor() != 0 ? bar.getColor() : mBarColor;\n\n        view.post(new Runnable() {\n            @Override\n            public void run() {\n                int radius = view.getHeight() / 2; //getting height inside post method to ensure view has drawn\n\n                if (bar.isGradientBar()) {\n                    if (bar.getStartColor() == 0 || bar.getEndColor() == 0) {\n                        throw new RuntimeException(\"Gradient colors were not provided.\");\n                    }\n                    if (isRoundCorner) {\n                        view.findViewById(R.id.linear_bar).setBackground(getRoundedBarGradientDrawable(bar.getStartColor(), bar.getEndColor(), radius));\n                    } else {\n                        GradientDrawable gradientDrawable = new GradientDrawable(\n                                GradientDrawable.Orientation.LEFT_RIGHT,\n                                new int[]{bar.getStartColor(), bar.getEndColor()}\n                        );\n                        view.findViewById(R.id.linear_bar).setBackground(gradientDrawable);\n                    }\n                } else {\n                    if (isRoundCorner) {\n                        view.findViewById(R.id.linear_bar).setBackground(getRoundedBarDrawable(bgColor, radius));\n                    } else {\n                        view.findViewById(R.id.linear_bar).setBackgroundColor(bgColor);\n                    }\n                }\n            }\n        });\n\n\n        int dimensionBar = dimension * bar.getRaters() / mBarMaxValue;\n\n        MarginLayoutParams layoutParamsBar = (MarginLayoutParams) view.getLayoutParams();\n\n        if (isShowLabel) {\n            TextView textView = view.findViewById(R.id.text_view_bar_label);\n\n            if (bar.getStarLabel() != null) {\n                textView.setText(String.format(Locale.getDefault(), \"%s\", bar.getStarLabel()));\n            }\n\n            textView.setTextSize(mBarTextSize);\n            textView.setTextColor(mBarTextColor);\n        } else {\n            view.findViewById(R.id.text_view_bar_label).setVisibility(GONE);\n        }\n\n        if (isShowRaters) {\n            TextView raters = view.findViewById(R.id.text_view_raters);\n\n            if (bar.getStarLabel() != null) {\n                raters.setText(String.format(Locale.getDefault(), \"%s\", bar.getRaters()));\n            }\n        }\n\n        final LinearLayout linearLayoutBar = view.findViewById(R.id.linear_bar);\n        ValueAnimator anim = ValueAnimator.ofInt(\n                initialBar == null ? 0 : dimension * initialBar.getRaters() / mBarMaxValue, dimensionBar);\n\n        anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n            @Override\n            public void onAnimationUpdate(ValueAnimator valueAnimator) {\n                ViewGroup.LayoutParams layoutParams = linearLayoutBar.getLayoutParams();\n                layoutParams.width = (Integer) valueAnimator.getAnimatedValue();\n                linearLayoutBar.setLayoutParams(layoutParams);\n            }\n        });\n\n        if (isShowAnimation) {\n            anim.setDuration(500);\n        } else {\n            anim.setDuration(0);\n        }\n        anim.start();\n\n        view.setOnClickListener(new OnClickListener() {\n            @Override\n            public void onClick(View view) {\n                if (onBarClickListener != null) {\n                    onBarClickListener.onBarClick(bar);\n                }\n            }\n        });\n\n        view.setTag(bar);\n\n        view.getLayoutParams().height = mBarDimension;\n\n        if (initialBar == null) {\n            if (isBarAdded) {\n                layoutParamsBar.topMargin = mBarSpaces;\n            }\n            mLinearParentLayout.addView(view);\n        }\n\n        isBarAdded = true;\n    }\n\n    /**\n     * getDimension gets dimension of the view.\n     *\n     * @param view     for which dimension is wanted.\n     * @param listener callback listener.\n     */\n    @SuppressWarnings(\"deprecation\")\n    private void getDimension(final View view,\n                              final DimensionReceivedCallback listener) {\n        view.getViewTreeObserver()\n                .addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n                    @Override\n                    public void onGlobalLayout() {\n                        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n                            view.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n                        } else {\n                            view.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n                        }\n                        listener.onDimensionReceived(view.getWidth());\n                    }\n                });\n    }\n\n    /**\n     * @param onBarClickListener listener for bar.\n     */\n    public void setOnBarClickListener(OnBarClickListener onBarClickListener) {\n        this.onBarClickListener = onBarClickListener;\n    }\n\n    /**\n     * @param bar single rating bar that needs to be added to the layout.\n     */\n    public void addBar(final Bar bar) {\n        addBar(mBars.size(), bar);\n    }\n\n    /**\n     * addBar adds the given bar to mBars list, gets parent dimension and calls createBar.\n     *\n     * @param position for the bar.\n     * @param bar      object.\n     */\n    public void addBar(final int position, final Bar bar) {\n        if (position > mNumOfBars) {\n            return;\n        }\n\n        mBars.add(bar);\n\n        if (bar != null) {\n            if (mLinearParentLayout.getHeight() == 0) {\n                getDimension(mLinearParentLayout, new DimensionReceivedCallback() {\n                    @Override\n                    public void onDimensionReceived(int dimension) {\n                        createBar(dimension, bar);\n                    }\n                });\n            } else {\n                createBar(mLinearParentLayout.getWidth(), bar);\n            }\n        }\n    }\n\n    /**\n     * clearAll clears all the bars and everything from the linear base layout.\n     */\n    public void clearAll() {\n        mBars.clear();\n        mLinearParentLayout.removeAllViews();\n    }\n\n    private interface DimensionReceivedCallback {\n        void onDimensionReceived(int dimension);\n    }\n\n    public interface OnBarClickListener {\n        void onBarClick(Bar bar);\n    }\n}\n"
  },
  {
    "path": "reviewratings/src/main/java/com/taufiqrahman/reviewratings/Utils.java",
    "content": "/*\n  Copyright 2018 The Android Open Source Project\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n\n  Created by Taufiq Rahman on 07/02/19.\n */\n\npackage com.taufiqrahman.reviewratings;\n\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.graphics.drawable.Drawable;\nimport android.graphics.drawable.GradientDrawable;\nimport android.util.DisplayMetrics;\nimport android.util.Pair;\n\n\nclass Utils {\n    static int DEFAULT_BAR_COLOR = Color.parseColor(\"#333333\");\n    static int DEFAULT_BAR_TEXT_COLOR = Color.parseColor(\"#333333\");\n    static int DEFAULT_BAR_SPACE = 5;\n\n    /**\n     * convertDpToPixel converts device specific density independent pixels to pixels.\n     *\n     * @param dp      A value in dp unit.\n     * @param context Context to get resources and device specific display metrics.\n     * @return A float value that represents px.\n     */\n    static float convertDpToPixel(float dp, Context context) {\n        return dp * ((float) context.getResources().getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT);\n    }\n\n    /**\n     * convertPixelsToDp converts device specific pixels to density independent pixels.\n     *\n     * @param px      A value in px (pixels) unit.\n     * @param context Context to get resources and device specific display metrics\n     * @return A float value that represents dp equivalent to px value\n     */\n    static float convertPixelsToDp(float px, Context context) {\n        return px / ((float) context.getResources().getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT);\n    }\n\n    /**\n     * @param bgColor Background color of bar.\n     * @param radius  Corner Radius of bar.\n     * @return Rounded Corner Drawable.\n     */\n    static Drawable getRoundedBarDrawable(int bgColor, int radius) {\n        GradientDrawable drawable = new GradientDrawable();\n        drawable.setShape(GradientDrawable.RECTANGLE);\n        drawable.setCornerRadii(new float[]{\n                radius, radius, radius, radius, radius, radius, radius, radius\n        });\n        drawable.setColor(bgColor);\n        return drawable;\n    }\n\n\n    /**\n     * @param startColor The start color for the Background gradient.\n     * @param endColor The end color for the Background gradient.\n     * @param radius  Corner Radius of bar.\n     * @return Rounded Corner Drawable.\n     */\n    static GradientDrawable getRoundedBarGradientDrawable(int startColor, int endColor, int radius) {\n\n        GradientDrawable gradientDrawable = new GradientDrawable(\n                GradientDrawable.Orientation.LEFT_RIGHT,\n                new int[] {startColor, endColor});\n        gradientDrawable.setShape(GradientDrawable.RECTANGLE);\n        gradientDrawable.setCornerRadii(new float[]{\n                radius, radius, radius, radius, radius, radius, radius, radius\n        });\n        return gradientDrawable;\n    }\n}\n"
  },
  {
    "path": "reviewratings/src/main/res/drawable/ic_person.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z\"/>\n</vector>\n"
  },
  {
    "path": "reviewratings/src/main/res/layout/bar.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:layout_gravity=\"left|start\"\n    android:minWidth=\"13dp\"\n    android:orientation=\"horizontal\">\n\n    <TextView\n        android:id=\"@+id/text_view_bar_label\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"end\"\n        android:paddingStart=\"2dp\"\n        android:paddingLeft=\"2dp\"\n        android:textColor=\"#333333\"\n        android:typeface=\"monospace\" />\n\n    <LinearLayout\n        android:id=\"@+id/linear_bar\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:background=\"@android:color/background_dark\"\n        android:orientation=\"vertical\" />\n\n    <TextView\n        android:id=\"@+id/text_view_raters\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"center\"\n        android:paddingStart=\"2dp\"\n        android:paddingLeft=\"2dp\"\n        android:textColor=\"#333333\"\n        android:textSize=\"10sp\" />\n</LinearLayout>\n"
  },
  {
    "path": "reviewratings/src/main/res/layout/bar_two.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:layout_gravity=\"left|start\"\n    android:minWidth=\"13dp\"\n    android:orientation=\"horizontal\">\n\n    <TextView\n        android:id=\"@+id/text_view_bar_label\"\n        android:layout_width=\"55dp\"\n        android:layout_height=\"wrap_content\"\n        android:rotation=\"-180\"\n        android:textColor=\"#000000\"\n        android:typeface=\"monospace\" />\n\n    <LinearLayout\n        android:id=\"@+id/linear_bar\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:layout_marginTop=\"2dp\"\n        android:layout_marginBottom=\"2dp\"\n        android:background=\"@android:color/background_dark\"\n        android:orientation=\"vertical\" />\n\n    <TextView\n        android:id=\"@+id/text_view_raters\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"center\"\n        android:paddingStart=\"2dp\"\n        android:paddingLeft=\"2dp\"\n        android:textColor=\"#333333\"\n        android:textSize=\"10sp\" />\n</LinearLayout>\n"
  },
  {
    "path": "reviewratings/src/main/res/values/attrs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <declare-styleable name=\"RatingReviews\">\n\n        <attr name=\"style\" format=\"enum\">\n            <enum name=\"style1\" value=\"1\" />\n            <enum name=\"style2\" value=\"2\" />\n        </attr>\n\n        <attr name=\"color\" format=\"color\" />\n        <attr name=\"rounded\" format=\"boolean\"/>\n        <attr name=\"gradiant\" format=\"integer\" />\n        <attr name=\"width\" format=\"dimension\" />\n        <attr name=\"text_size\" format=\"dimension\" />\n        <attr name=\"text_color\" format=\"color\" />\n        <attr name=\"spaces\" format=\"dimension\" />\n        <attr name=\"max_value\" format=\"integer\" />\n        <attr name=\"show_label\" format=\"boolean\" />\n        <attr name=\"show_raters\" format=\"boolean\" />\n        <attr name=\"animation\" format=\"boolean\" />\n\n    </declare-styleable>\n</resources>"
  },
  {
    "path": "reviewratings/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">ReviewRatings</string>\n</resources>\n"
  },
  {
    "path": "reviewratings/src/test/java/com/taufiqrahman/reviewratings/ExampleUnitTest.java",
    "content": "package com.taufiqrahman.reviewratings;\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() {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app', ':reviewratings'\n"
  }
]