Description
?????????selector,????xml??????????????????????????????Builder?????????????????????????????????????????????????
Captures
Use
Gradle
compile 'com.yuan.library.selector:selectordrawable-release:1.0.3'
Maven
<dependency>
<groupId>~com.yuan.library.selector</groupId>
<artifactId>selectordrawable-release</artifactId>
<version>1.0.3</version>
<type>pom</type> </dependency>
Example
// ???? SelectorFactory.create(new SelectorShape.SelectorBuilder()
.normalColor() // ????
.pressColor() // ????
.disableColor() // ????
.selectColor() // ????
.shapeBuilder(new Shape.ShapeBuilder()
.corner() // ????
.leftTopCorner() // ????
.leftBottomCorner() // ????
.rightTopCorner() //????
.rightBottomCorner() // ????
.strokeColor() // ????
.strokeWidth()).build()) // ??size // ????
SelectorFactory.create(new SelectorDrawable.SelectorBuilder()
.normalDrawable()
.pressDrawable()
.disableDrawable()
.selectDrawable().build())
About me
- Mail? [email protected]
- QQ?11026979