[
  {
    "path": ".gitignore",
    "content": "*.iml\r\n.gradle\r\n/local.properties\r\n/.idea/workspace.xml\r\n/.idea/libraries\r\n.DS_Store\r\n/build\r\n/captures\r\n.externalNativeBuild\r\n"
  },
  {
    "path": ".idea/codeStyleSettings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ProjectCodeStyleSettingsManager\">\n    <option name=\"PER_PROJECT_SETTINGS\">\n      <value>\n        <option name=\"CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND\" value=\"99\" />\n        <option name=\"NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND\" value=\"99\" />\n        <option name=\"PACKAGES_TO_USE_IMPORT_ON_DEMAND\">\n          <value />\n        </option>\n        <option name=\"IMPORT_LAYOUT_TABLE\">\n          <value>\n            <package name=\"android\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"com\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"junit\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"net\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"org\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"java\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"javax\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"\" withSubpackages=\"true\" static=\"false\" />\n            <emptyLine />\n            <package name=\"\" withSubpackages=\"true\" static=\"true\" />\n            <emptyLine />\n          </value>\n        </option>\n        <option name=\"RIGHT_MARGIN\" value=\"100\" />\n        <AndroidXmlCodeStyleSettings>\n          <option name=\"USE_CUSTOM_SETTINGS\" value=\"true\" />\n        </AndroidXmlCodeStyleSettings>\n        <Objective-C-extensions>\n          <option name=\"GENERATE_INSTANCE_VARIABLES_FOR_PROPERTIES\" value=\"ASK\" />\n          <option name=\"RELEASE_STYLE\" value=\"IVAR\" />\n          <option name=\"TYPE_QUALIFIERS_PLACEMENT\" value=\"BEFORE\" />\n          <file>\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Import\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Macro\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Typedef\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Enum\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Constant\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Global\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Struct\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"FunctionPredecl\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Function\" />\n          </file>\n          <class>\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Property\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Synthesize\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"InitMethod\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"StaticMethod\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"InstanceMethod\" />\n            <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"DeallocMethod\" />\n          </class>\n          <extensions>\n            <pair source=\"cpp\" header=\"h\" />\n            <pair source=\"c\" header=\"h\" />\n          </extensions>\n        </Objective-C-extensions>\n        <XML>\n          <option name=\"XML_KEEP_LINE_BREAKS\" value=\"false\" />\n          <option name=\"XML_ALIGN_ATTRIBUTES\" value=\"false\" />\n          <option name=\"XML_SPACE_INSIDE_EMPTY_TAG\" value=\"true\" />\n        </XML>\n        <codeStyleSettings language=\"XML\">\n          <option name=\"FORCE_REARRANGE_MODE\" value=\"1\" />\n          <indentOptions>\n            <option name=\"CONTINUATION_INDENT_SIZE\" value=\"4\" />\n          </indentOptions>\n          <arrangement>\n            <rules>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>xmlns:android</NAME>\n                      <XML_NAMESPACE>^$</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>xmlns:.*</NAME>\n                      <XML_NAMESPACE>^$</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:id</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:name</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>name</NAME>\n                      <XML_NAMESPACE>^$</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>style</NAME>\n                      <XML_NAMESPACE>^$</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*</NAME>\n                      <XML_NAMESPACE>^$</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:layout_width</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:layout_height</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:layout_.*</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:width</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*:height</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*</NAME>\n                      <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n              <section>\n                <rule>\n                  <match>\n                    <AND>\n                      <NAME>.*</NAME>\n                      <XML_NAMESPACE>.*</XML_NAMESPACE>\n                    </AND>\n                  </match>\n                  <order>BY_NAME</order>\n                </rule>\n              </section>\n            </rules>\n          </arrangement>\n        </codeStyleSettings>\n      </value>\n    </option>\n    <option name=\"PREFERRED_PROJECT_CODE_STYLE\" value=\"Default (1)\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/compiler.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"CompilerConfiguration\">\n    <resourceExtensions />\n    <wildcardResourcePatterns>\n      <entry name=\"!?*.java\" />\n      <entry name=\"!?*.form\" />\n      <entry name=\"!?*.class\" />\n      <entry name=\"!?*.groovy\" />\n      <entry name=\"!?*.scala\" />\n      <entry name=\"!?*.flex\" />\n      <entry name=\"!?*.kt\" />\n      <entry name=\"!?*.clj\" />\n      <entry name=\"!?*.aj\" />\n    </wildcardResourcePatterns>\n    <annotationProcessing>\n      <profile default=\"true\" name=\"Default\" enabled=\"false\">\n        <processorPath useClasspath=\"true\" />\n      </profile>\n    </annotationProcessing>\n  </component>\n</project>"
  },
  {
    "path": ".idea/copyright/profiles_settings.xml",
    "content": "<component name=\"CopyrightManager\">\r\n  <settings default=\"\" />\r\n</component>"
  },
  {
    "path": ".idea/gradle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleSettings\">\n    <option name=\"linkedExternalProjectsSettings\">\n      <GradleProjectSettings>\n        <option name=\"distributionType\" value=\"DEFAULT_WRAPPED\" />\n        <option name=\"externalProjectPath\" value=\"$PROJECT_DIR$\" />\n        <option name=\"modules\">\n          <set>\n            <option value=\"$PROJECT_DIR$\" />\n            <option value=\"$PROJECT_DIR$/app\" />\n            <option value=\"$PROJECT_DIR$/sharpview\" />\n          </set>\n        </option>\n        <option name=\"resolveModulePerSourceSet\" value=\"false\" />\n      </GradleProjectSettings>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/inspectionProfiles/Project_Default.xml",
    "content": "<component name=\"InspectionProjectProfileManager\">\n  <profile version=\"1.0\">\n    <option name=\"myName\" value=\"Project Default\" />\n    <inspection_tool class=\"AndroidLintHardcodedText\" enabled=\"false\" level=\"WARNING\" enabled_by_default=\"false\" />\n    <inspection_tool class=\"AndroidLintRtlHardcoded\" enabled=\"false\" level=\"WARNING\" enabled_by_default=\"false\" />\n    <inspection_tool class=\"AndroidLintRtlSymmetry\" enabled=\"false\" level=\"WARNING\" enabled_by_default=\"false\" />\n    <inspection_tool class=\"LoggerInitializedWithForeignClass\" enabled=\"false\" level=\"WARNING\" enabled_by_default=\"false\">\n      <option name=\"loggerClassName\" value=\"org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger\" />\n      <option name=\"loggerFactoryMethodName\" value=\"getLogger,getLogger,getLog,getLogger\" />\n    </inspection_tool>\n    <inspection_tool class=\"NullableProblems\" enabled=\"false\" level=\"WARNING\" enabled_by_default=\"false\">\n      <option name=\"REPORT_NULLABLE_METHOD_OVERRIDES_NOTNULL\" value=\"true\" />\n      <option name=\"REPORT_NOT_ANNOTATED_METHOD_OVERRIDES_NOTNULL\" value=\"true\" />\n      <option name=\"REPORT_NOTNULL_PARAMETER_OVERRIDES_NULLABLE\" value=\"true\" />\n      <option name=\"REPORT_NOT_ANNOTATED_PARAMETER_OVERRIDES_NOTNULL\" value=\"true\" />\n      <option name=\"REPORT_NOT_ANNOTATED_GETTER\" value=\"true\" />\n      <option name=\"REPORT_NOT_ANNOTATED_SETTER_PARAMETER\" value=\"true\" />\n      <option name=\"REPORT_ANNOTATION_NOT_PROPAGATED_TO_OVERRIDERS\" value=\"true\" />\n      <option name=\"REPORT_NULLS_PASSED_TO_NON_ANNOTATED_METHOD\" value=\"true\" />\n    </inspection_tool>\n  </profile>\n</component>"
  },
  {
    "path": ".idea/inspectionProfiles/profiles_settings.xml",
    "content": "<component name=\"InspectionProjectProfileManager\">\n  <settings>\n    <option name=\"PROJECT_PROFILE\" value=\"Project Default\" />\n    <option name=\"USE_PROJECT_PROFILE\" value=\"true\" />\n    <version value=\"1.0\" />\n  </settings>\n</component>"
  },
  {
    "path": ".idea/markdown-navigator/profiles_settings.xml",
    "content": "<component name=\"MarkdownNavigator.ProfileManager\">\n  <settings default=\"\" pdf-export=\"\" />\n</component>"
  },
  {
    "path": ".idea/markdown-navigator.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"MarkdownProjectSettings\">\n    <PreviewSettings splitEditorLayout=\"SPLIT\" splitEditorPreview=\"PREVIEW\" useGrayscaleRendering=\"false\" zoomFactor=\"1.0\" maxImageWidth=\"0\" showGitHubPageIfSynced=\"false\" allowBrowsingInPreview=\"false\" synchronizePreviewPosition=\"true\" highlightPreviewType=\"NONE\" highlightFadeOut=\"5\" highlightOnTyping=\"true\" synchronizeSourcePosition=\"true\" verticallyAlignSourceAndPreviewSyncPosition=\"true\" showSearchHighlightsInPreview=\"false\" showSelectionInPreview=\"true\" openRemoteLinks=\"true\">\n      <PanelProvider>\n        <provider providerId=\"com.vladsch.idea.multimarkdown.editor.swing.html.panel\" providerName=\"Default - Swing\" />\n      </PanelProvider>\n    </PreviewSettings>\n    <ParserSettings gitHubSyntaxChange=\"false\">\n      <PegdownExtensions>\n        <option name=\"ABBREVIATIONS\" value=\"false\" />\n        <option name=\"ANCHORLINKS\" value=\"true\" />\n        <option name=\"ASIDE\" value=\"false\" />\n        <option name=\"ATXHEADERSPACE\" value=\"true\" />\n        <option name=\"AUTOLINKS\" value=\"true\" />\n        <option name=\"DEFINITIONS\" value=\"false\" />\n        <option name=\"DEFINITION_BREAK_DOUBLE_BLANK_LINE\" value=\"false\" />\n        <option name=\"FENCED_CODE_BLOCKS\" value=\"true\" />\n        <option name=\"FOOTNOTES\" value=\"false\" />\n        <option name=\"HARDWRAPS\" value=\"false\" />\n        <option name=\"HTML_DEEP_PARSER\" value=\"false\" />\n        <option name=\"INSERTED\" value=\"false\" />\n        <option name=\"QUOTES\" value=\"false\" />\n        <option name=\"RELAXEDHRULES\" value=\"true\" />\n        <option name=\"SMARTS\" value=\"false\" />\n        <option name=\"STRIKETHROUGH\" value=\"true\" />\n        <option name=\"SUBSCRIPT\" value=\"false\" />\n        <option name=\"SUPERSCRIPT\" value=\"false\" />\n        <option name=\"SUPPRESS_HTML_BLOCKS\" value=\"false\" />\n        <option name=\"SUPPRESS_INLINE_HTML\" value=\"false\" />\n        <option name=\"TABLES\" value=\"true\" />\n        <option name=\"TASKLISTITEMS\" value=\"true\" />\n        <option name=\"TOC\" value=\"false\" />\n        <option name=\"WIKILINKS\" value=\"true\" />\n      </PegdownExtensions>\n      <ParserOptions>\n        <option name=\"COMMONMARK_LISTS\" value=\"true\" />\n        <option name=\"DUMMY\" value=\"false\" />\n        <option name=\"EMOJI_SHORTCUTS\" value=\"true\" />\n        <option name=\"FLEXMARK_FRONT_MATTER\" value=\"false\" />\n        <option name=\"GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA\" value=\"false\" />\n        <option name=\"GFM_TABLE_RENDERING\" value=\"true\" />\n        <option name=\"GITBOOK_URL_ENCODING\" value=\"false\" />\n        <option name=\"GITHUB_EMOJI_URL\" value=\"false\" />\n        <option name=\"GITHUB_LISTS\" value=\"false\" />\n        <option name=\"GITHUB_WIKI_LINKS\" value=\"true\" />\n        <option name=\"JEKYLL_FRONT_MATTER\" value=\"false\" />\n        <option name=\"SIM_TOC_BLANK_LINE_SPACER\" value=\"true\" />\n      </ParserOptions>\n    </ParserSettings>\n    <HtmlSettings headerTopEnabled=\"false\" headerBottomEnabled=\"false\" bodyTopEnabled=\"false\" bodyBottomEnabled=\"false\" embedUrlContent=\"false\" addPageHeader=\"true\" embedImages=\"false\" embedHttpImages=\"false\">\n      <GeneratorProvider>\n        <provider providerId=\"com.vladsch.idea.multimarkdown.editor.swing.html.generator\" providerName=\"Default Swing HTML Generator\" />\n      </GeneratorProvider>\n      <headerTop />\n      <headerBottom />\n      <bodyTop />\n      <bodyBottom />\n    </HtmlSettings>\n    <CssSettings previewScheme=\"UI_SCHEME\" cssUri=\"\" isCssUriEnabled=\"false\" isCssTextEnabled=\"false\" isDynamicPageWidth=\"true\">\n      <StylesheetProvider>\n        <provider providerId=\"com.vladsch.idea.multimarkdown.editor.swing.html.css\" providerName=\"Default Swing Stylesheet\" />\n      </StylesheetProvider>\n      <ScriptProviders />\n      <cssText />\n    </CssSettings>\n    <HtmlExportSettings updateOnSave=\"false\" parentDir=\"$ProjectFileDir$\" targetDir=\"$ProjectFileDir$\" cssDir=\"\" scriptDir=\"\" plainHtml=\"false\" imageDir=\"\" copyLinkedImages=\"false\" imageUniquifyType=\"0\" targetExt=\"\" useTargetExt=\"false\" noCssNoScripts=\"false\" linkToExportedHtml=\"true\" exportOnSettingsChange=\"true\" regenerateOnProjectOpen=\"false\" linkFormatType=\"HTTP_ABSOLUTE\" />\n    <LinkMapSettings>\n      <textMaps />\n    </LinkMapSettings>\n  </component>\n</project>"
  },
  {
    "path": ".idea/misc.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"EntryPointsManager\">\n    <entry_points version=\"2.0\" />\n  </component>\n  <component name=\"NullableNotNullManager\">\n    <option name=\"myDefaultNullable\" value=\"android.support.annotation.Nullable\" />\n    <option name=\"myDefaultNotNull\" value=\"android.support.annotation.NonNull\" />\n    <option name=\"myNullables\">\n      <value>\n        <list size=\"4\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.Nullable\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nullable\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.Nullable\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.Nullable\" />\n        </list>\n      </value>\n    </option>\n    <option name=\"myNotNulls\">\n      <value>\n        <list size=\"4\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.NotNull\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nonnull\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.NonNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.NonNull\" />\n        </list>\n      </value>\n    </option>\n  </component>\n  <component name=\"ProjectLevelVcsManager\" settingsEditedManually=\"false\">\n    <OptionsSetting value=\"true\" id=\"Add\" />\n    <OptionsSetting value=\"true\" id=\"Remove\" />\n    <OptionsSetting value=\"true\" id=\"Checkout\" />\n    <OptionsSetting value=\"true\" id=\"Update\" />\n    <OptionsSetting value=\"true\" id=\"Status\" />\n    <OptionsSetting value=\"true\" id=\"Edit\" />\n    <ConfirmationsSetting value=\"0\" id=\"Add\" />\n    <ConfirmationsSetting value=\"0\" id=\"Remove\" />\n  </component>\n  <component name=\"ProjectRootManager\" version=\"2\" languageLevel=\"JDK_1_7\" default=\"true\" assert-keyword=\"true\" jdk-15=\"true\" project-jdk-name=\"1.8\" project-jdk-type=\"JavaSDK\">\n    <output url=\"file://$PROJECT_DIR$/build/classes\" />\n  </component>\n  <component name=\"ProjectType\">\n    <option name=\"id\" value=\"Android\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/modules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ProjectModuleManager\">\n    <modules>\n      <module fileurl=\"file://$PROJECT_DIR$/SharpView.iml\" filepath=\"$PROJECT_DIR$/SharpView.iml\" />\n      <module fileurl=\"file://$PROJECT_DIR$/app/app.iml\" filepath=\"$PROJECT_DIR$/app/app.iml\" />\n      <module fileurl=\"file://$PROJECT_DIR$/demo.iml\" filepath=\"$PROJECT_DIR$/demo.iml\" />\n      <module fileurl=\"file://$PROJECT_DIR$/sharpview/sharpview.iml\" filepath=\"$PROJECT_DIR$/sharpview/sharpview.iml\" />\n    </modules>\n  </component>\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/vcs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping directory=\"$PROJECT_DIR$\" vcs=\"Git\" />\n  </component>\n</project>"
  },
  {
    "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": "# SharpView\n[![](https://www.jitpack.io/v/zengzhaoxing/SharpView.svg)](https://www.jitpack.io/#zengzhaoxing/SharpView)\n\ncustom TextView,LinearLayout,RelativeLayout with sharp\n\n## Screenshots\n<a href=\"ext/sharp_demo.png\"><img src=\"ext/sharp_demo.png\" width=\"50%\" height=\"50%\"/></a>\n\n## Import\n```java\n\n Step 1. Add the JitPack repository to your build file\n Add it in 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\n\n\nStep 2. Add the dependency\n\n\tdependencies {\n\t        compile 'com.github.zengzhaoxing:SharpView:v2.4.4'\n\t}\n\n```\n## Maven\n```java\nStep 1.\n<repositories>\n   <repository>\n\t  <id>jitpack.io</id>\n\t  <url>https://jitpack.io</url>\n   </repository>\n</repositories>\n\nStep 2. Add the dependency\n<dependency>\n    <groupId>com.github.zengzhaoxing</groupId>\n    <artifactId>SharpView</artifactId>\n    <version>v2.4.4</version>\n</dependency>\n\n```\n## Directions\n\n* custom properties\n\nname | format | instructions\n-----|------|----\nradius    | dimension    | 圆角大小\nbackgroundColor   | color     | 背景颜色（注意不要是用安卓原生的背景相关的属性（如:background,backgroundResource等））\narrowDirection    | enum    | 尖叫汽包相对位置(top,left,right,bottom)\nrelativePosition   | fraction| 尖叫汽包相对位置，百分比\nsharpSize    | dimension    | 尖叫汽包大小，为0表示不显示尖角，默认是0\nborder    | dimension    | 边框大小，默认是0\nborderColor    | color    | 边框颜色\nstartBgColor    | color    | 渐变初始颜色(渐变时必选)\nmiddleBgColor    | color    | 渐变中间颜色(渐变时可选)\nendBgColor    | color    | 渐变结束颜色(渐变时必选)\n\n渐变颜色只有在sharpSize为0时（没有尖角）有效\n\n## Usage\n\n* 1.In the XML\n```java\n\n       <com.zhaoxing.view.sharpview.SharpTextView\n           android:layout_width=\"200dp\"\n           android:layout_height=\"70dp\"\n           android:textColor=\"@android:color/white\"\n           android:text=\"this is a SharpTextView\"\n           android:gravity=\"center\"\n           android:textSize=\"18sp\"\n           app:radius=\"5dp\"\n           app:arrowDirection=\"top\"\n           app:backgroundColor=\"#f0000000\"\n           app:relativePosition=\"20%\"\n           app:sharpSize=\"10dp\"\n           />\n   \n       <com.zhaoxing.view.sharpview.SharpLinearLayout\n           android:id=\"@+id/sharp_ll\"\n           android:layout_width=\"300dp\"\n           android:layout_height=\"100dp\"\n           android:orientation=\"vertical\"\n           android:paddingBottom=\"5dp\"\n           android:paddingTop=\"5dp\"\n           android:paddingLeft=\"10dp\"\n           android:layout_marginTop=\"50dp\"\n           app:radius=\"5dp\"\n           app:arrowDirection=\"right\"\n           app:backgroundColor=\"#f0000000\"\n           app:relativePosition=\"100%\"\n           app:sharpSize=\"10dp\">\n   \n   \n       </com.example.xianzi.sharpview.SharpLinearLayout>\n\n```\n\n* 2.In the code\n```java\n\nSharpLinearLayout sharpLinearLayout = (SharpLinearLayout) findViewById(R.id.sharp_ll);\n//get the SharpViewRenderProxy of the sharpView to refresh sharp）\nsharpLinearLayout.getRenderProxy().setArrowDirection(SharpView.ArrowDirection.BOTTOM);\nsharpLinearLayout.getRenderProxy().setSharpSize(50);\nsharpLinearLayout.getRenderProxy().setRelativePosition(0.8f);\nsharpLinearLayout.getRenderProxy().setRadius(20);\nsharpLinearLayout.getRenderProxy().setBackgroundColor(0xff000000);//注意不要使用安卓原生的设置背景的相关方法（如setBackground，setBackgroundResource等）\n\n```\n\n\n## Usage\n目前支持的气泡尖角或圆角控件和安卓原生控件继承关系如下\n```java\npublic class SharpEditText extends EditText\npublic class SharpTextView extends TextView \npublic class SharpLinearLayout extends LinearLayout\npublic class SharpRelativeLayout extends RelativeLayout \npublic class SharpImageView extends ImageView \n```\n# Author \nname ： 曾宪梓<br/>\nemail ： 1071481464@qq.com\n\n# License\n\nCopyright 2017 zengzhaoxing\n\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\r\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\r\n\r\nandroid {\r\n    compileSdkVersion 25\r\n    buildToolsVersion \"25.0.3\"\r\n    defaultConfig {\r\n        applicationId \"com.example.xianzi.demo\"\r\n        minSdkVersion 16\r\n        targetSdkVersion 25\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(include: ['*.jar'], dir: 'libs')\r\n    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {\r\n        exclude group: 'com.android.support', module: 'support-annotations'\r\n    })\r\n    compile 'com.github.bumptech.glide:glide:3.7.0'\r\n    compile 'com.android.support:appcompat-v7:25.3.1'\r\n    testCompile 'junit:junit:4.12'\r\n    compile project(':sharpview')\r\n}\r\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\r\n# By default, the flags in this file are appended to flags specified\r\n# in D:\\Applications\\AndroidSdk/tools/proguard/proguard-android.txt\r\n# You can edit the include path and order by changing the proguardFiles\r\n# directive in build.gradle.\r\n#\r\n# For more details, see\r\n#   http://developer.android.com/guide/developing/tools/proguard.html\r\n\r\n# Add any project specific keep options here:\r\n\r\n# If your project uses WebView with JS, uncomment the following\r\n# and specify the fully qualified class name to the JavaScript interface\r\n# class:\r\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\r\n#   public *;\r\n#}\r\n"
  },
  {
    "path": "app/src/androidTest/java/com/zhaoxing/view/demo/ExampleInstrumentedTest.java",
    "content": "package com.zhaoxing.view.demo;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumentation test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() throws Exception {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"com.example.xianzi.demo\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"com.zhaoxing.view.demo\">\r\n\r\n    <uses-permission android:name=\"android.permission.READ_LOGS\"/>\r\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\r\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>\r\n    <uses-permission android:name=\"android.permission.GET_TASKS\"/>\r\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\r\n    <uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>\r\n    <uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>\r\n    <uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>\r\n    <uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>\r\n    <uses-permission android:name=\"com.android.launcher.permission.READ_SETTINGS\"/>\r\n    <uses-permission android:name=\"android.permission.WAKE_LOCK\"/>\r\n    <uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>\r\n    <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>\r\n    <uses-permission android:name=\"android.permission.MANAGE_ACCOUNTS\"/>\r\n    <uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>\r\n    <uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>\r\n    <uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>\r\n    <uses-permission android:name=\"android.permission.CALL_PHONE\"/>\r\n    <uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>\r\n    <uses-permission android:name=\"android.permission.REORDER_TASKS\"/>\r\n    <uses-permission android:name=\"android.permission.BLUETOOTH\"/>\r\n    <uses-permission android:name=\"android.permission.DOWNLOAD_WITHOUT_NOTIFICATION\"/>\r\n\r\n    <application\r\n        android:allowBackup=\"true\"\r\n        android:icon=\"@mipmap/ic_launcher\"\r\n        android:label=\"@string/app_name\"\r\n        android:supportsRtl=\"true\"\r\n        android:theme=\"@style/AppTheme\">\r\n        <activity android:name=\"com.zhaoxing.view.demo.MainActivity\">\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n    </application>\r\n\r\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/zhaoxing/view/demo/MainActivity.java",
    "content": "package com.zhaoxing.view.demo;\n\nimport android.graphics.drawable.GradientDrawable;\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.widget.ImageView;\n\nimport com.bumptech.glide.Glide;\nimport com.zhaoxing.view.sharpview.SharpLinearLayout;\nimport com.zhaoxing.view.sharpview.SharpView;\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        Glide.with(this).load(\"http://image.baidu.com/search/detail?ct=503316480&z=undefined&tn=baiduimagedetail&ipn=d&word=%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&cs=415293130,2419074865&os=1556766946,250663840&simid=4145280632,499508967&pn=1&rn=1&di=155407800570&ln=1986&fr=&fmq=1529895389158_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&objurl=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F0117e2571b8b246ac72538120dd8a4.jpg%401280w_1l_2o_100sh.jpg&rpstart=0&rpnum=0&adpicid=0\").placeholder(R.mipmap.ic_launcher).error(R.mipmap.ic_launcher).into(((ImageView) findViewById(R.id.eee)));\n        SharpLinearLayout sharpLinearLayout = (SharpLinearLayout) findViewById(R.id.sharp_ll);\n//        sharpLinearLayout.getRenderProxy().setArrowDirection(SharpView.ArrowDirection.BOTTOM);\n//        sharpLinearLayout.getRenderProxy().setSharpSize(50);\n//        sharpLinearLayout.getRenderProxy().setRelativePosition(0.8f);\n//        sharpLinearLayout.getRenderProxy().setRadius(20);\n//        sharpLinearLayout.getRenderProxy().setBackgroundColor(0xff000000);\n//        int colors[] = { 0xff255779 , 0xff3e7492, 0xffa6c0cd };//分别为开始颜色，中间夜色，结束颜色\n//\n//        GradientDrawable gd = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors);\n//        sharpLinearLayout.setBackground(gd);\n\n    }\n}\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n                xmlns:tools=\"http://schemas.android.com/tools\"\r\n                xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n                android:id=\"@+id/activity_main\"\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"match_parent\"\r\n                android:gravity=\"center_horizontal\"\r\n                android:paddingTop=\"100dp\"\r\n                android:orientation=\"vertical\"\r\n                android:background=\"@android:color/white\">\r\n\r\n    <ImageView\r\n\r\n        android:layout_width=\"100dp\"\r\n        android:layout_height=\"100dp\"\r\n        android:scaleType=\"fitXY\"/>\r\n\r\n    <com.zhaoxing.view.sharpview.SharpImageView\r\n        android:id=\"@+id/eee\"\r\n        android:layout_width=\"100dp\"\r\n        android:layout_height=\"100dp\"\r\n        android:src=\"@mipmap/test\"\r\n        android:scaleType=\"fitXY\"\r\n        app:left_bottom_radius=\"10dp\"\r\n        app:border=\"2dp\"\r\n        app:borderColor=\"@color/colorPrimary\"\r\n        app:relativePosition=\"50%\"\r\n        app:arrowDirection=\"right\"\r\n        app:sharpSize=\"10dp\"\r\n       />\r\n\r\n\r\n    <com.zhaoxing.view.sharpview.SharpTextView\r\n        android:layout_width=\"100dp\"\r\n        android:layout_height=\"50dp\"\r\n        android:textColor=\"@android:color/white\"\r\n        android:text=\"54654654\"\r\n        android:gravity=\"center\"\r\n        app:radius=\"25dp\"\r\n        app:startBgColor=\"#ffff0000\"\r\n        app:middleBgColor=\"#ffff00ff\"\r\n        app:endBgColor=\"#ffffff00\"/>\r\n\r\n    <com.zhaoxing.view.sharpview.SharpTextView\r\n        android:layout_width=\"200dp\"\r\n        android:layout_height=\"70dp\"\r\n        android:textColor=\"@android:color/white\"\r\n        android:text=\"this is a SharpTextView\"\r\n        android:gravity=\"center\"\r\n        android:textSize=\"18sp\"\r\n        app:radius=\"5dp\"\r\n        app:arrowDirection=\"bottom\"\r\n        app:backgroundColor=\"#ffff0000\"\r\n        app:relativePosition=\"20%\"\r\n        app:sharpSize=\"0dp\"\r\n        />\r\n\r\n    <com.zhaoxing.view.sharpview.SharpLinearLayout\r\n        android:id=\"@+id/sharp_ll\"\r\n        android:layout_width=\"300dp\"\r\n        android:layout_height=\"100dp\"\r\n        android:orientation=\"vertical\"\r\n        android:paddingBottom=\"5dp\"\r\n        android:paddingTop=\"5dp\"\r\n        android:paddingLeft=\"10dp\"\r\n        android:layout_marginTop=\"50dp\"\r\n        android:padding=\"35dp\"\r\n        app:radius=\"10dp\"\r\n        app:border=\"2dp\"\r\n        app:borderColor=\"#FF0000\"\r\n        app:arrowDirection=\"left\"\r\n        app:backgroundColor=\"#ff000000\"\r\n        app:relativePosition=\"50%\"\r\n        app:sharpSize=\"15dp\"\r\n\r\n        >\r\n\r\n        <TextView\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:textColor=\"@android:color/white\"\r\n            android:background=\"@android:color/holo_green_light\"\r\n            android:text=\"a child inside the SharpLinearLayout\"/>\r\n\r\n        <TextView\r\n            android:id=\"@+id/close_tv\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:textColor=\"@android:color/holo_blue_light\"\r\n            android:text=\"this is another child view\"/>\r\n\r\n    </com.zhaoxing.view.sharpview.SharpLinearLayout>\r\n\r\n\r\n\r\n</LinearLayout>\r\n"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n    <color name=\"colorPrimary\">#3F51B5</color>\r\n    <color name=\"colorPrimaryDark\">#303F9F</color>\r\n    <color name=\"colorAccent\">#FF4081</color>\r\n</resources>\r\n"
  },
  {
    "path": "app/src/main/res/values/dimens.xml",
    "content": "<resources>\r\n    <!-- Default screen margins, per the Android Design guidelines. -->\r\n    <dimen name=\"activity_horizontal_margin\">16dp</dimen>\r\n    <dimen name=\"activity_vertical_margin\">16dp</dimen>\r\n</resources>\r\n"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\r\n    <string name=\"app_name\">demo</string>\r\n</resources>\r\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\r\n\r\n    <!-- Base application theme. -->\r\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\r\n        <!-- Customize your theme here. -->\r\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\r\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\r\n        <item name=\"colorAccent\">@color/colorAccent</item>\r\n    </style>\r\n\r\n</resources>\r\n"
  },
  {
    "path": "app/src/main/res/values-w820dp/dimens.xml",
    "content": "<resources>\r\n    <!-- Example customization of dimensions originally defined in res/values/dimens.xml\r\n         (such as screen margins) for screens with more than 820dp of available width. This\r\n         would include 7\" and 10\" devices in landscape (~960dp and ~1280dp respectively). -->\r\n    <dimen name=\"activity_horizontal_margin\">64dp</dimen>\r\n</resources>\r\n"
  },
  {
    "path": "app/src/test/java/com/zhaoxing/view/demo/ExampleUnitTest.java",
    "content": "package com.zhaoxing.view.demo;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() throws Exception {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\r\n\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:2.2.3'\r\n        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'\r\n        // NOTE: Do not place your application dependencies here; they belong\r\n        // in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n}\r\n\r\ntask clean(type: Delete) {\r\n    delete rootProject.buildDir\r\n}\r\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Mon Dec 28 10:00:20 PST 2015\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-2.14.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\r\n\r\n# IDE (e.g. Android Studio) users:\r\n# Gradle settings configured through the IDE *will override*\r\n# any settings specified in this file.\r\n\r\n# For more details on how to configure your build environment visit\r\n# http://www.gradle.org/docs/current/userguide/build_environment.html\r\n\r\n# Specifies the JVM arguments used for the daemon process.\r\n# The setting is particularly useful for tweaking memory settings.\r\norg.gradle.jvmargs=-Xmx1536m\r\n\r\n# When configured, Gradle will run in incubating parallel mode.\r\n# This option should only be used with decoupled projects. More details, visit\r\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\r\n# org.gradle.parallel=true\r\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:init\r\n@rem Get command-line arguments, handling Windowz variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\ngoto execute\r\n\r\n:4NT_args\r\n@rem Get arguments from the 4NT Shell from JP Software\r\nset CMD_LINE_ARGS=%$\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app', ':sharpview'\r\n"
  },
  {
    "path": "sharpview/.gitignore",
    "content": "/build\r\n"
  },
  {
    "path": "sharpview/build.gradle",
    "content": "apply plugin: 'com.android.library'\r\napply plugin: 'com.github.dcendents.android-maven'\r\n\r\ngroup='com.github.zengzhaoxing'\r\nandroid {\r\n    compileSdkVersion 25\r\n    buildToolsVersion \"25.0.3\"\r\n\r\n    defaultConfig {\r\n        minSdkVersion 16\r\n        targetSdkVersion 25\r\n        versionCode 245\r\n        versionName \"2.4.5\"\r\n\r\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\r\n\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    compile 'com.github.rey5137:material:1.2.4'\r\n    testCompile 'junit:junit:4.12'\r\n\r\n}\r\n"
  },
  {
    "path": "sharpview/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\r\n# By default, the flags in this file are appended to flags specified\r\n# in D:\\Applications\\AndroidSdk/tools/proguard/proguard-android.txt\r\n# You can edit the include path and order by changing the proguardFiles\r\n# directive in build.gradle.\r\n#\r\n# For more details, see\r\n#   http://developer.android.com/guide/developing/tools/proguard.html\r\n\r\n# Add any project specific keep options here:\r\n\r\n# If your project uses WebView with JS, uncomment the following\r\n# and specify the fully qualified class name to the JavaScript interface\r\n# class:\r\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\r\n#   public *;\r\n#}\r\n"
  },
  {
    "path": "sharpview/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"com.zhaoxing.view.sharpview\">\r\n\r\n\r\n\r\n</manifest>\r\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpDrawable.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.graphics.Canvas;\nimport android.graphics.ColorFilter;\nimport android.graphics.DashPathEffect;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.PixelFormat;\nimport android.graphics.PointF;\nimport android.graphics.Rect;\nimport android.graphics.RectF;\nimport android.graphics.drawable.Drawable;\nimport android.graphics.drawable.GradientDrawable;\nimport android.graphics.drawable.ShapeDrawable;\nimport android.os.Build;\nimport android.support.annotation.ColorInt;\nimport android.util.Log;\n\nclass SharpDrawable extends GradientDrawable {\n\n\n    SharpDrawable(Orientation orientation, @ColorInt int[] colors) {\n        super(orientation, colors);\n        init();\n    }\n\n    void setBgColor(int bgColor) {\n        mBgColor = bgColor;\n        super.setColor(bgColor);\n    }\n\n    public void setCornerRadius(float cornerRadius) {\n        mCornerRadius = cornerRadius;\n        super.setCornerRadius(cornerRadius);\n    }\n\n    void setArrowDirection(SharpView.ArrowDirection arrowDirection) {\n        mArrowDirection = arrowDirection;\n    }\n\n    void setRelativePosition(float relativePosition) {\n        mRelativePosition = Math.min(Math.max(relativePosition, 0), 1);\n    }\n\n    void setBorder(float border) {\n        mBorder = border;\n        super.setStroke((int) mBorder, mBorderColor);\n    }\n\n    void setBorderColor(int borderColor) {\n        mBorderColor = borderColor;\n        super.setStroke((int) mBorder, mBorderColor);\n    }\n\n    void setSharpSize(float sharpSize) {\n        mSharpSize = sharpSize;\n    }\n\n    private float mSharpSize;\n\n    private int mBgColor;\n\n    private float mCornerRadius;\n\n    private SharpView.ArrowDirection mArrowDirection;\n\n    private float mBorder;\n\n    private int mBorderColor;\n\n    /**\n     * from 0 to 1\n     */\n    private float mRelativePosition;\n\n    void setPaint(Paint paint) {\n        mPaint = paint;\n    }\n\n    private Paint mPaint;\n\n    private RectF mRect;\n\n    private Path mPath;\n\n    private PointF[] mPointFs;\n\n    private RectF mOvalRect[] = new RectF[4];\n\n    SharpDrawable() {\n        super();\n        init();\n    }\n\n    private void init() {\n        mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n        mPaint.setAntiAlias(true);\n        mRect = new RectF();\n        mPointFs = new PointF[3];\n        mPath = new Path();\n        mPointFs[0] = new PointF();\n        mPointFs[1] = new PointF();\n        mPointFs[2] = new PointF();\n\n        mOvalRect[0] = new RectF();\n        mOvalRect[1] = new RectF();\n        mOvalRect[2] = new RectF();\n        mOvalRect[3] = new RectF();\n    }\n\n\n    @Override\n    public void draw(Canvas canvas) {\n        if (mSharpSize == 0) {\n            super.draw(canvas);\n        } else {\n            Rect bounds = getBounds();\n            int left = bounds.left;\n            int top = bounds.top;\n            int right = bounds.right;\n            int bottom = bounds.bottom;\n            float length;\n            switch (mArrowDirection) {\n                case LEFT:\n                    left += mSharpSize;\n                    length = Math.max(mRelativePosition * bounds.height() + bounds.top, mSharpSize + mCornerRadius);\n                    length = Math.min(length, bounds.height() - mSharpSize - mCornerRadius);\n                    mPointFs[0].set(bounds.left, length + bounds.top);\n                    mPointFs[1].set(left, mPointFs[0].y - mSharpSize);\n                    mPointFs[2].set(left, mPointFs[0].y + mSharpSize);\n                    mRect.set(left, top, right, bottom);\n                    break;\n                case TOP:\n                    top += mSharpSize;\n                    length = Math.max(mRelativePosition * bounds.width() + bounds.top, mSharpSize + mCornerRadius);\n                    length = Math.min(length, bounds.width() - mSharpSize - mCornerRadius);\n                    mPointFs[0].set(bounds.left + length, bounds.top);\n                    mPointFs[1].set(mPointFs[0].x - mSharpSize, top);\n                    mPointFs[2].set(mPointFs[0].x + mSharpSize, top);\n                    mRect.set(left, top, right, bottom);\n                    break;\n                case RIGHT:\n                    right -= mSharpSize;\n                    length = Math.max(mRelativePosition * bounds.height() + bounds.top, mSharpSize + mCornerRadius);\n                    length = Math.min(length, bounds.height() - mSharpSize - mCornerRadius);\n                    mPointFs[0].set(bounds.right, length + bounds.top);\n                    mPointFs[1].set(right, mPointFs[0].y - mSharpSize);\n                    mPointFs[2].set(right, mPointFs[0].y + mSharpSize);\n                    mRect.set(left, top, right, bottom);\n                    break;\n                case BOTTOM:\n                    bottom -= mSharpSize;\n                    length = Math.max(mRelativePosition * bounds.width() + bounds.top, mSharpSize + mCornerRadius);\n                    length = Math.min(length, bounds.width() - mSharpSize - mCornerRadius);\n                    mPointFs[0].set(bounds.left + length, bounds.bottom);\n                    mPointFs[1].set(mPointFs[0].x - mSharpSize, bottom);\n                    mPointFs[2].set(mPointFs[0].x + mSharpSize, bottom);\n                    mRect.set(left, top, right, bottom);\n                    break;\n            }\n            mPath.reset();\n            mPath.addRoundRect(mRect, mCornerRadius, mCornerRadius, Path.Direction.CW);\n            mPath.moveTo(mPointFs[0].x, mPointFs[0].y);\n            mPath.lineTo(mPointFs[1].x, mPointFs[1].y);\n            mPath.lineTo(mPointFs[2].x, mPointFs[2].y);\n            mPath.lineTo(mPointFs[0].x, mPointFs[0].y);\n            mPaint.setColor(mBgColor);\n            canvas.drawPath(mPath, mPaint);\n\n\n\n            mPaint.setColor(mBorderColor);\n            mPaint.setStyle(Paint.Style.STROKE);\n            mPaint.setStrokeWidth(mBorder);\n            switch (mArrowDirection) {\n                case LEFT:\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.top,mRect.right - mCornerRadius,mRect.top,mPaint);\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.bottom,mRect.right - mCornerRadius,mRect.bottom,mPaint);\n                    canvas.drawLine(mRect.right,mRect.top + mCornerRadius,mRect.right,mRect.bottom - mCornerRadius,mPaint);\n                    canvas.drawLine(mRect.left,mRect.top + mCornerRadius,mRect.left,mPointFs[1].y,mPaint);\n                    canvas.drawLine(mRect.left,mPointFs[2].y,mRect.left,mRect.bottom - mCornerRadius,mPaint);\n                    break;\n                case TOP:\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.bottom,mRect.right - mCornerRadius,mRect.bottom,mPaint);\n                    canvas.drawLine(mRect.left,mRect.top + mCornerRadius,mRect.left,mRect.bottom - mCornerRadius,mPaint);\n                    canvas.drawLine(mRect.right,mRect.top + mCornerRadius,mRect.right,mRect.bottom - mCornerRadius,mPaint);\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.top,mPointFs[1].x,mRect.top,mPaint);\n                    canvas.drawLine(mPointFs[2].x, mRect.top, mRect.right - mCornerRadius, mRect.top, mPaint);\n                    break;\n                case RIGHT:\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.top,mRect.right - mCornerRadius,mRect.top,mPaint);\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.bottom,mRect.right - mCornerRadius,mRect.bottom,mPaint);\n                    canvas.drawLine(mRect.left,mRect.top + mCornerRadius,mRect.left,mRect.bottom - mCornerRadius,mPaint);\n                    canvas.drawLine(mRect.right,mRect.top + mCornerRadius,mRect.right,mPointFs[1].y,mPaint);\n                    canvas.drawLine(mRect.right,mPointFs[2].y,mRect.right,mRect.bottom - mCornerRadius,mPaint);\n                    break;\n                case BOTTOM:\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.top,mRect.right - mCornerRadius,mRect.top,mPaint);\n                    canvas.drawLine(mRect.left,mRect.top + mCornerRadius,mRect.left,mRect.bottom - mCornerRadius,mPaint);\n                    canvas.drawLine(mRect.right,mRect.top + mCornerRadius,mRect.right,mRect.bottom - mCornerRadius,mPaint);\n                    canvas.drawLine(mRect.left + mCornerRadius,mRect.bottom,mPointFs[1].x,mRect.bottom,mPaint);\n                    canvas.drawLine(mPointFs[2].x, mRect.bottom, mRect.right - mCornerRadius, mRect.bottom, mPaint);\n                    break;\n            }\n\n            if (mCornerRadius > 0) {\n                float d = 2 * mCornerRadius;\n\n                mOvalRect[0].set(mRect.left,mRect.top,mRect.left + d,mRect.top + d);\n                mOvalRect[1].set(mRect.right - d,mRect.top,mRect.right,mRect.top + d);\n                mOvalRect[2].set(mRect.left,mRect.bottom - d,mRect.left + d,mRect.bottom);\n                mOvalRect[3].set(mRect.right - d,mRect.bottom - d,mRect.right,mRect.bottom);\n                canvas.drawArc(mOvalRect[0],180,90,false,mPaint);\n                canvas.drawArc(mOvalRect[1],-90,90,false,mPaint);\n                canvas.drawArc(mOvalRect[2],90,90,false,mPaint);\n                canvas.drawArc(mOvalRect[3],90,-90,false,mPaint);\n            }\n\n            canvas.drawLine(mPointFs[0].x, mPointFs[0].y, mPointFs[1].x, mPointFs[1].y, mPaint);\n            canvas.drawLine(mPointFs[0].x, mPointFs[0].y, mPointFs[2].x, mPointFs[2].y, mPaint);\n\n        }\n    }\n\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpEditText.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.content.Context;\nimport android.support.v7.widget.AppCompatEditText;\nimport android.util.AttributeSet;\n\n/**\n * Created by 曾宪梓 on 2017/12/28.\n */\n\npublic class SharpEditText extends AppCompatEditText implements SharpView{\n\n    public SharpEditText(Context context) {\n        super(context);\n        init(context,null,0);\n    }\n\n    public SharpEditText(Context context, AttributeSet attrs) {\n        super(context, attrs);\n        init(context,attrs,0);\n    }\n\n    public SharpEditText(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context,attrs,defStyleAttr);\n    }\n\n    private void init(Context context, AttributeSet attrs, int defStyleAttr){\n        mSharpViewRenderProxy = new SharpViewRenderProxy(this, context, attrs, defStyleAttr);\n    }\n\n    private SharpViewRenderProxy mSharpViewRenderProxy;\n\n    @Override\n    public SharpViewRenderProxy getRenderProxy() {\n        return mSharpViewRenderProxy;\n    }\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpImageView.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.PorterDuff;\nimport android.graphics.PorterDuffXfermode;\nimport android.graphics.Rect;\nimport android.util.AttributeSet;\nimport android.util.Log;\n\nimport com.rey.material.widget.ImageView;\n\nimport java.lang.ref.SoftReference;\n\n/**\n * Created by 曾宪梓 on 2018/6/23.\n */\n\npublic class SharpImageView extends ImageView implements SharpView{\n\n    private SoftReference<Bitmap> mSoftBitmap;\n\n    private SoftReference<Bitmap> mSoftOutBitmap;\n\n    private Canvas mCanvas;\n\n    private Canvas mOutCanvas;\n\n    private Paint mPaint = new Paint();\n\n    private Rect rect = new Rect();\n\n    private PorterDuffXfermode mPorterDuffXfermode = new PorterDuffXfermode(PorterDuff.Mode.SRC_IN);\n\n    public SharpImageView(Context context) {\n        super(context);\n        init(context,null,0);\n    }\n\n    public SharpImageView(Context context, AttributeSet attrs) {\n        super(context, attrs);\n        init(context,attrs,0);\n    }\n\n    public SharpImageView(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context,attrs,defStyleAttr);\n    }\n\n    @Override\n    protected void onDraw(Canvas canvas) {\n        if (mSoftBitmap.get() == null || mSoftOutBitmap.get() == null) {\n            initBitmap();\n        }\n        mPaint.setAntiAlias(true);\n        mCanvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);\n        mOutCanvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);\n        super.onDraw(mCanvas);\n        mPaint.setColor(Color.BLACK);\n        mSharpViewRenderProxy.mSharpDrawable.setBounds(0,0,getWidth(),getHeight());\n        mSharpViewRenderProxy.mSharpDrawable.setPaint(mPaint);\n        mSharpViewRenderProxy.mSharpDrawable.setBgColor(Color.BLACK);\n        mSharpViewRenderProxy.mSharpDrawable.draw(mOutCanvas);\n        mPaint.setXfermode(mPorterDuffXfermode);\n        mOutCanvas.drawBitmap(mSoftBitmap.get(), rect, rect, mPaint);\n        mPaint.setXfermode(null);\n        canvas.drawBitmap(mSoftOutBitmap.get(), rect, rect, mPaint);\n    }\n\n    private void init(Context context, AttributeSet attrs, int defStyleAttr){\n        mSharpViewRenderProxy = new SharpViewRenderProxy(this, context, attrs, defStyleAttr);\n    }\n\n    private SharpViewRenderProxy mSharpViewRenderProxy;\n\n    @Override\n    public SharpViewRenderProxy getRenderProxy() {\n        return mSharpViewRenderProxy;\n    }\n\n    @Override\n    protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n        super.onSizeChanged(w, h, oldw, oldh);\n        if (mSoftBitmap == null || w != oldw || h != oldh) {\n            initBitmap();\n            rect.set(0,0,getWidth(),getHeight());\n        }\n    }\n\n    private void initBitmap() {\n        Bitmap mBitmap = Bitmap.createBitmap(getWidth(),getHeight(), Bitmap.Config.ARGB_8888);\n        Bitmap mOutBitmap = Bitmap.createBitmap(getWidth(),getHeight(), Bitmap.Config.ARGB_8888);\n        mBitmap.setHasAlpha(true);\n        mOutBitmap.setHasAlpha(true);\n        mCanvas = new Canvas(mBitmap);\n        mOutCanvas = new Canvas(mOutBitmap);\n        mSoftBitmap = new SoftReference<>(mBitmap);\n        mSoftOutBitmap = new SoftReference<>(mOutBitmap);\n    }\n\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpLinearLayout.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\n\nimport com.rey.material.widget.LinearLayout;\n\n\npublic class SharpLinearLayout extends LinearLayout implements SharpView {\n\n    public SharpLinearLayout(Context context) {\n        super(context);\n        init(context,null,0);\n    }\n\n    public SharpLinearLayout(Context context, AttributeSet attrs) {\n        super(context, attrs);\n        init(context,attrs,0);\n    }\n\n    public SharpLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context,attrs,defStyleAttr);\n    }\n\n    private void init(Context context, AttributeSet attrs, int defStyleAttr){\n        mSharpViewRenderProxy = new SharpViewRenderProxy(this, context, attrs, defStyleAttr);\n    }\n\n    private SharpViewRenderProxy mSharpViewRenderProxy;\n\n    @Override\n    public SharpViewRenderProxy getRenderProxy() {\n        return mSharpViewRenderProxy;\n    }\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpRelativeLayout.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\n\nimport com.rey.material.widget.RelativeLayout;\n\npublic class SharpRelativeLayout extends RelativeLayout implements SharpView {\n\n    public SharpRelativeLayout(Context context) {\n        super(context);\n        init(context,null,0);\n    }\n\n    public SharpRelativeLayout(Context context, AttributeSet attrs) {\n        super(context, attrs);\n        init(context,attrs,0);\n    }\n\n    public SharpRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context,attrs,defStyleAttr);\n    }\n\n    private void init(Context context, AttributeSet attrs, int defStyleAttr){\n        mSharpViewRenderProxy = new SharpViewRenderProxy(this, context, attrs, defStyleAttr);\n    }\n\n    private SharpViewRenderProxy mSharpViewRenderProxy;\n\n    @Override\n    public SharpViewRenderProxy getRenderProxy() {\n        return mSharpViewRenderProxy;\n    }\n\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpTextView.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\n\nimport com.rey.material.widget.TextView;\n\npublic class SharpTextView extends TextView implements SharpView {\n\n    public SharpTextView(Context context) {\n        super(context);\n        init(context,null,0);\n    }\n\n    public SharpTextView(Context context, AttributeSet attrs) {\n        super(context, attrs);\n        init(context,attrs,0);\n    }\n\n    public SharpTextView(Context context, AttributeSet attrs, int defStyleAttr) {\n        super(context, attrs, defStyleAttr);\n        init(context,attrs,defStyleAttr);\n    }\n\n    private void init(Context context, AttributeSet attrs, int defStyleAttr){\n        mSharpViewRenderProxy = new SharpViewRenderProxy(this, context, attrs, defStyleAttr);\n    }\n\n    private SharpViewRenderProxy mSharpViewRenderProxy;\n\n    @Override\n    public SharpViewRenderProxy getRenderProxy() {\n        return mSharpViewRenderProxy;\n    }\n\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpView.java",
    "content": "package com.zhaoxing.view.sharpview;\n\n\npublic interface SharpView {\n\n    SharpViewRenderProxy getRenderProxy();\n\n    enum ArrowDirection {\n        LEFT, TOP, RIGHT, BOTTOM\n    }\n}\n"
  },
  {
    "path": "sharpview/src/main/java/com/zhaoxing/view/sharpview/SharpViewRenderProxy.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.graphics.drawable.GradientDrawable;\nimport android.util.AttributeSet;\nimport android.view.View;\nimport android.widget.ImageView;\n\nimport java.lang.reflect.Array;\nimport java.util.ArrayList;\nimport java.util.List;\n\n\npublic class SharpViewRenderProxy {\n\n    private View mView;\n\n    public float getRadius() {\n        return mRadius;\n    }\n\n    public int getBackgroundColor() {\n        return mBackgroundColor;\n    }\n\n    public float getRelativePosition() {\n        return mRelativePosition;\n    }\n\n    public float getSharpSize() {\n        return mSharpSize;\n    }\n\n    public float getBorder() {\n        return mBorder;\n    }\n\n    public int getBorderColor() {\n        return mBorderColor;\n    }\n\n    public int[] getBgColors() {\n        return mBgColors;\n    }\n\n    public float[] getCornerRadii() {\n        return mCornerRadii;\n    }\n\n    public SharpView.ArrowDirection getArrowDirection() {\n        return mArrowDirection;\n    }\n\n    private float mRadius;\n\n    private int mBackgroundColor;\n\n    private float mRelativePosition;\n\n    private float mSharpSize;\n\n    private float mBorder;\n\n    private int mBorderColor;\n\n    public void setBgColor(int[] bgColor) {\n        mBgColors = bgColor;\n        refreshView();\n    }\n\n    private int[] mBgColors;\n\n    public void setCornerRadii(float leftTop,float rightTop,float rightBottom,float leftBottom) {\n        mCornerRadii[0] = leftTop;\n        mCornerRadii[1] = leftTop;\n        mCornerRadii[2] = rightTop;\n        mCornerRadii[3] = rightTop;\n        mCornerRadii[4] = rightBottom;\n        mCornerRadii[5] = rightBottom;\n        mCornerRadii[6] = leftBottom;\n        mCornerRadii[7] = leftBottom;\n\n    }\n\n    private float[] mCornerRadii = new float[8];\n\n    private SharpView.ArrowDirection mArrowDirection = SharpView.ArrowDirection.LEFT;\n\n    public void setBorder(float border) {\n        mBorder = border;\n        refreshView();\n    }\n\n    public void setBorderColor(int borderColor) {\n        mBorderColor = borderColor;\n        refreshView();\n    }\n\n    SharpViewRenderProxy(View view, Context context, AttributeSet attrs, int defStyleAttr) {\n        mView = view;\n        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SharpTextView, defStyleAttr, 0);\n        mRadius = a.getDimension(R.styleable.SharpTextView_radius, 0);\n        mCornerRadii[0] = mCornerRadii[1] = a.getDimension(R.styleable.SharpTextView_left_top_radius, 0);\n        mCornerRadii[2] = mCornerRadii[3] = a.getDimension(R.styleable.SharpTextView_right_top_radius, 0);\n        mCornerRadii[4] = mCornerRadii[5] = a.getDimension(R.styleable.SharpTextView_right_bottom_radius, 0);\n        mCornerRadii[6] = mCornerRadii[7] = a.getDimension(R.styleable.SharpTextView_left_bottom_radius, 0);\n        mBorder = a.getDimension(R.styleable.SharpTextView_border, 0);\n        mBackgroundColor = a.getColor(R.styleable.SharpTextView_backgroundColor, 0);\n        mBorderColor = a.getColor(R.styleable.SharpTextView_borderColor, 0);\n        int direction = a.getInt(R.styleable.SharpTextView_arrowDirection, 3);\n        mRelativePosition = a.getFraction(R.styleable.SharpTextView_relativePosition, 1, 1, 0.5f);\n        mSharpSize = a.getDimension(R.styleable.SharpLinearLayout_sharpSize,0);\n        switch (direction) {\n            case 1:\n                mArrowDirection = SharpView.ArrowDirection.LEFT;\n                break;\n            case 2:\n                mArrowDirection = SharpView.ArrowDirection.TOP;\n                break;\n            case 3:\n                mArrowDirection =  SharpView.ArrowDirection.RIGHT;\n                break;\n            case 4:\n                mArrowDirection = SharpView.ArrowDirection.BOTTOM;\n                break;\n        }\n        int start = a.getColor(R.styleable.SharpTextView_startBgColor, -1);\n        int middle  = a.getColor(R.styleable.SharpTextView_middleBgColor, -1);\n        int end  = a.getColor(R.styleable.SharpTextView_endBgColor, -1);\n        if (start != -1  && end != -1) {\n            if (middle != -1) {\n                mBgColors = new int[]{start, middle, end};\n            } else {\n                mBgColors = new int[]{start, end};\n            }\n        }\n        a.recycle();\n        refreshView();\n    }\n\n    SharpDrawable mSharpDrawable;\n\n    private void refreshView() {\n        SharpDrawable bd = new SharpDrawable(GradientDrawable.Orientation.LEFT_RIGHT, null);\n        mSharpDrawable = bd;\n        if (mBgColors != null) {\n            bd.setColors(mBgColors);\n        } else {\n            bd.setBgColor(mBackgroundColor);\n        }\n        bd.setSharpSize(mSharpSize);\n        bd.setArrowDirection(mArrowDirection);\n        bd.setCornerRadius(mRadius);\n        bd.setBorder(mBorder);\n        bd.setBorderColor(mBorderColor);\n        bd.setRelativePosition(mRelativePosition);\n        if (mRadius == 0) {\n            bd.setCornerRadii(mCornerRadii);\n        }\n        if (mView instanceof SharpImageView) {\n            mView.invalidate();\n        } else {\n            mView.setBackground(bd);\n        }\n    }\n\n    public void setRadius(float radius) {\n        mRadius = radius;\n        refreshView();\n    }\n\n    public void setBackgroundColor(int backgroundColor) {\n        mBackgroundColor = backgroundColor;\n        mBgColors = null;\n        refreshView();\n    }\n\n    public void setRelativePosition(float relativePosition) {\n        mRelativePosition = relativePosition;\n        refreshView();\n    }\n\n    public void setSharpSize(float sharpSize) {\n        mSharpSize = sharpSize;\n        refreshView();\n    }\n\n    public void setArrowDirection(SharpView.ArrowDirection arrowDirection) {\n        mArrowDirection = arrowDirection;\n        refreshView();\n    }\n\n}\n"
  },
  {
    "path": "sharpview/src/main/res/values/attrs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <attr name=\"radius\" format=\"dimension\"/>\n    <attr name=\"backgroundColor\" format=\"color\"/>\n    <attr name=\"startBgColor\" format=\"color\"/>\n    <attr name=\"middleBgColor\" format=\"color\"/>\n    <attr name=\"endBgColor\" format=\"color\"/>\n    <attr name=\"arrowDirection\">\n        <enum name=\"left\" value=\"1\"/>\n        <enum name=\"top\" value=\"2\"/>\n        <enum name=\"right\" value=\"3\"/>\n        <enum name=\"bottom\" value=\"4\"/>\n    </attr>\n    <attr name = \"relativePosition\" format = \"fraction\" />\n    <attr name = \"sharpSize\" format = \"dimension\" />\n    <attr name=\"border\" format=\"dimension\"/>\n    <attr name=\"borderColor\" format=\"color\"/>\n    <attr name=\"left_top_radius\" format=\"dimension\"/>\n    <attr name=\"right_top_radius\" format=\"dimension\"/>\n    <attr name=\"right_bottom_radius\" format=\"dimension\"/>\n    <attr name=\"left_bottom_radius\" format=\"dimension\"/>\n\n    <declare-styleable name=\"SharpRelativeLayout\">\n        <attr name=\"radius\"/>\n        <attr name=\"backgroundColor\"/>\n        <attr name=\"startBgColor\"/>\n        <attr name=\"middleBgColor\" />\n        <attr name=\"endBgColor\" />\n        <attr name=\"arrowDirection\"/>\n        <attr name = \"relativePosition\"/>\n        <attr name = \"sharpSize\"/>\n        <attr name=\"border\"/>\n        <attr name=\"borderColor\" />\n        <attr name=\"left_top_radius\"/>\n        <attr name=\"right_top_radius\"/>\n        <attr name=\"right_bottom_radius\"/>\n        <attr name=\"left_bottom_radius\"/>\n    </declare-styleable>\n\n    <declare-styleable name=\"SharpLinearLayout\">\n        <attr name=\"radius\"/>\n        <attr name=\"backgroundColor\"/>\n        <attr name=\"startBgColor\"/>\n        <attr name=\"middleBgColor\" />\n        <attr name=\"endBgColor\" />\n        <attr name=\"arrowDirection\"/>\n        <attr name = \"relativePosition\"/>\n        <attr name = \"sharpSize\"/>\n        <attr name=\"border\"/>\n        <attr name=\"borderColor\" />\n        <attr name=\"left_top_radius\"/>\n        <attr name=\"right_top_radius\"/>\n        <attr name=\"right_bottom_radius\"/>\n        <attr name=\"left_bottom_radius\"/>\n    </declare-styleable>\n\n    <declare-styleable name=\"SharpTextView\">\n        <attr name=\"radius\"/>\n        <attr name=\"backgroundColor\"/>\n        <attr name=\"startBgColor\"/>\n        <attr name=\"middleBgColor\" />\n        <attr name=\"endBgColor\" />\n        <attr name=\"arrowDirection\"/>\n        <attr name = \"relativePosition\"/>\n        <attr name = \"sharpSize\"/>\n        <attr name=\"border\"/>\n        <attr name=\"borderColor\" />\n        <attr name=\"left_top_radius\"/>\n        <attr name=\"right_top_radius\"/>\n        <attr name=\"right_bottom_radius\"/>\n        <attr name=\"left_bottom_radius\"/>\n    </declare-styleable>\n\n    <declare-styleable name=\"SharpImageView\">\n        <attr name=\"radius\"/>\n        <attr name=\"arrowDirection\"/>\n        <attr name = \"relativePosition\"/>\n        <attr name = \"sharpSize\"/>\n        <attr name=\"left_top_radius\"/>\n        <attr name=\"right_top_radius\"/>\n        <attr name=\"right_bottom_radius\"/>\n        <attr name=\"left_bottom_radius\"/>\n    </declare-styleable>\n\n    <declare-styleable name=\"SharpEditText\">\n        <attr name=\"radius\"/>\n        <attr name=\"backgroundColor\"/>\n        <attr name=\"startBgColor\"/>\n        <attr name=\"middleBgColor\" />\n        <attr name=\"endBgColor\" />\n        <attr name=\"arrowDirection\"/>\n        <attr name = \"relativePosition\"/>\n        <attr name = \"sharpSize\"/>\n        <attr name=\"border\"/>\n        <attr name=\"borderColor\" />\n        <attr name=\"left_top_radius\"/>\n        <attr name=\"right_top_radius\"/>\n        <attr name=\"right_bottom_radius\"/>\n        <attr name=\"left_bottom_radius\"/>\n    </declare-styleable>\n\n</resources>\n"
  },
  {
    "path": "sharpview/src/test/java/com/zhaoxing/view/sharpview/ExampleUnitTest.java",
    "content": "package com.zhaoxing.view.sharpview;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() throws Exception {\n        assertEquals(4, 2 + 2);\n    }\n}"
  }
]