WhorlView
????View
??
??
step1
??gradle??
dependencies {
compile 'com.tt:whorlviewlibrary:1.0.3'
}
step2
?xml???WhorlView
<com.tt.whorlviewlibrary.WhorlView xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/whorl2"
android:layout_width="1dp"
android:layout_height="1dp"
android:layout_marginTop="12dp"
app:whorlview_circle_colors="#F14336_#ffffff_#5677fc_#F44336_#4CAF50"
app:whorlview_circle_speed="270"
app:whorlview_parallax="fast"
app:whorlview_strokeWidth="6"
app:whorlview_sweepAngle="90">
</com.tt.whorlviewlibrary.WhorlView>
step3
????
WhorlView whorlView = (WhorlView) this.findViewById(R.id.whorl);
whorlView.start();
XML?????
?? | ?? | ?? | ??? |
---|---|---|---|
whorlview_circle_colors | string | ???? | ?????????? |
whorlview_circle_speed | int | ???? | 270??? |
whorlview_parallax | enum | ???? | 72??? |
whorlview_sweepAngle | float | ?? | 90? |
whorlview_strokeWidth | float | ?? | 5f |
1.0.3???????????whorlview_circle_colors??????<??>_<??>_<??>??_??????????#???6??8?16???
API
???api??????????
whorlView.start();
whorlView.stop();
??
- ??????
????????markdown??????????????????????????????????
??
License
Copyright (c) 2015 Kyson
Licensed under the Apache License, Version 2.0