|
|
@@ -1,8 +1,7 @@ |
|
|
EasyCountDownTextureView
|
|
|
==
|
|
|
|
|
|
-
|
|
|
-[](https://github.com/CaMnter/EasyCountDownTextureView/blob/master/LICENSE)
|
|
|
+ [](https://github.com/CaMnter/EasyCountDownTextureView/blob/master/LICENSE)
|
|
|

|
|
|
[  ](https://bintray.com/camnter/maven/EasyCountDownTextureView/_latestVersion)
|
|
|
|
|
@@ -40,6 +39,55 @@ dependencies { |
|
|
</declare-styleable>
|
|
|
```
|
|
|
|
|
|
+## Easy use
|
|
|
+
|
|
|
+```xml
|
|
|
+<RelativeLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="50dp"
|
|
|
+ android:background="#ffffffff">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="196dp"
|
|
|
+ android:layout_height="158dp"
|
|
|
+ android:layout_marginTop="26dp"
|
|
|
+ android:scaleType="centerCrop"
|
|
|
+ android:src="@mipmap/bg_fruit" />
|
|
|
+
|
|
|
+ <com.camnter.easycountdowntextureview.EasyCountDownTextureView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:easyCountHour="6"
|
|
|
+ app:easyCountMinute="6"
|
|
|
+ app:easyCountSecond="26" />
|
|
|
+
|
|
|
+</RelativeLayout>
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+```xml
|
|
|
+<com.camnter.easycountdowntextureview.EasyCountDownTextureView
|
|
|
+ android:id="@+id/style_tv"
|
|
|
+ android:layout_width="132dp"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ app:easyCountBackgroundColor="#ffdddddd"
|
|
|
+ app:easyCountColonColor="#ffdddddd"
|
|
|
+ app:easyCountColonSize="20sp"
|
|
|
+ app:easyCountHour="6"
|
|
|
+ app:easyCountMinute="6"
|
|
|
+ app:easyCountRectHeight="34dp"
|
|
|
+ app:easyCountRectRadius="5dp"
|
|
|
+ app:easyCountRectSpacing="12dp"
|
|
|
+ app:easyCountRectWidth="36dp"
|
|
|
+ app:easyCountSecond="26"
|
|
|
+ app:easyCountTimeColor="#ff3A94FF"
|
|
|
+ app:easyCountTimeSize="20sp" />
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
## Performance
|
|
|
|
|
|
0 comments on commit
e23f119