Skip to content
Easy count down by TextureView
Branch: master
Clone or download
Latest commit 477b5de Aug 29, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
easycountdowntextureview
gradle/wrapper [Update] gradle plugin and gradle version Nov 8, 2016
samples [Fix] the calendar time calculation problem. Close #3 Apr 6, 2017
screenshot Add easy use Mar 19, 2016
.gitignore
LICENSE Initial commit Mar 14, 2016
README.md [Update] README.md Aug 29, 2017
build.gradle [Update] gradle plugin and gradle version Nov 8, 2016
gradle.properties
gradlew Initialize project Mar 15, 2016
gradlew.bat Initialize project Mar 15, 2016
settings.gradle [Mod] app module >> samples module and StyleActivity >> SettingActivity Dec 19, 2016

README.md

EasyCountDownTextureView


Language License Version SDK Download

Easy count down by TextureView



Attention

minSdkVersion >= 14



Gradle

dependencies {
	compile 'com.camnter.easycountdowntextureview:easycountdowntextureview:1.6'
}


Attributes

<declare-styleable name="EasyCountDownTextureView">
    <attr name="easyCountRectWidth"
        format="dimension"/>
    <attr name="easyCountRectHeight"
        format="dimension"/>
    <attr name="easyCountRectRadius"
        format="dimension"/>
    <attr name="easyCountRectBorderSize"
        format="dimension"/>
    <attr name="easyCountRectBorderColor"
        format="color"/>
    <attr name="easyCountRectBorderStroke"
        format="dimension"/>
    <attr name="easyCountRectSpacing"
        format="dimension"/>
    <attr name="easyCountTimeColor"
        format="color"/>
    <attr name="easyCountTimeSize"
        format="dimension"/>
    <attr name="easyCountTimeStroke"
        format="dimension"/>
    <attr name="easyCountColonColor"
        format="color"/>
    <attr name="easyCountColonSize"
        format="dimension"/>
    <attr name="easyCountColonStroke"
        format="dimension"/>
    <attr name="easyCountBackgroundColor"
        format="color"/>
    <attr name="easyCountHour"
        format="integer"/>
    <attr name="easyCountMinute"
        format="integer"/>
    <attr name="easyCountSecond"
        format="integer"/>
</declare-styleable>


Easy use

<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_1


<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_2



Performance

Without scrolling, only time in the refreshing



License

  Copyright (C) 2016 CaMnter yuanyu.camnter@gmail.com

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
You can’t perform that action at this time.