#SharpView gitgub地址這是一個(gè)自定義控件,帶有微信聊天尖角。目前有TextView,LinearLayout,RelativeLayout.## 效果
## Import```java Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories: allprojects {repositories {...maven { url "https://jitpack.io" }}}Step 2. Add the dependencydependencies {? ? ? ? compile 'com.github.zengzhaoxing:SharpView:v2.0.0'}```## Maven```javaStep 1.jitpack.iohttps://jitpack.ioStep 2. Add the dependencycom.github.zengzhaoxingSharpViewv2.0.0```* 自定義屬性name | format | instructions-----|------|----radius? ? | dimension? ? | radius of the view cornerbackgroundColor? | color? ? | backgroundColorarrowDirection? ? | enum? ? | the sharp location,can be one of the(top,left,right,bottom)relativePosition? | relativePosition| relative position of the sharpsharpSize? ? | dimension? ? | sharp length## 使用* 1.In the XML```java```
* 2.In the code
```java
SharpLinearLayout sharpLinearLayout = (SharpLinearLayout) findViewById(R.id.sharp_ll);
//get the SharpViewRenderProxy of the sharpView to refresh sharp
sharpLinearLayout.getRenderProxy().setArrowDirection(SharpView.ArrowDirection.BOTTOM);
sharpLinearLayout.getRenderProxy().setSharpSize(50);
sharpLinearLayout.getRenderProxy().setRelativePosition(0.8f);
sharpLinearLayout.getRenderProxy().setRadius(20);
sharpLinearLayout.getRenderProxy().setBackgroundColor(0xff000000);
```