Skip to content
Browse files

Add easy use

  • Loading branch information...
1 parent 006ea69 commit e23f119d5d4ae0a870b64109b9d49e2f6ca1c14d @CaMnter committed
Showing with 50 additions and 2 deletions.
  1. +50 −2 README.md
  2. BIN screenshot/textureview_1.gif
  3. BIN screenshot/textureview_2.gif
View
52 README.md
@@ -1,8 +1,7 @@
EasyCountDownTextureView
==
-![Language](https://img.shields.io/badge/language-Java-EE0000.svg)
-[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/CaMnter/EasyCountDownTextureView/blob/master/LICENSE)
+![Language](https://img.shields.io/badge/language-Java-EE0000.svg) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/CaMnter/EasyCountDownTextureView/blob/master/LICENSE)
![Version](https://img.shields.io/badge/version-1.1-8470FF.svg)
[ ![Download](https://api.bintray.com/packages/camnter/maven/EasyCountDownTextureView/images/download.svg) ](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>
+```
+
+![TextureView_2](https://github.com/CaMnter/EasyCountDownTextureView/raw/master/screenshot/textureview_2.gif)
+
+```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" />
+```
+
+![TextureView_1](https://github.com/CaMnter/EasyCountDownTextureView/raw/master/screenshot/textureview_1.gif)
+
## Performance
View
BIN screenshot/textureview_1.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN screenshot/textureview_2.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e23f119

Please sign in to comment.
Something went wrong with that request. Please try again.