Giter Site home page Giter Site logo

countdown's Introduction

countdown

一个简单的计时器

image

提供了一些方法

  设置margin
  public void setLinearLayoutMargin(int left, int top, int right, int bottom)
  public void setTextViewMargin(int left, int top, int right, int bottom)
  设置Padding
  public void setLinearLayoutPadding(int left, int top, int right, int bottom)
  public void setTextViewPadding(int left, int top, int right, int bottom)
  设置背景
  public void setLinearLayoutDrawable(Drawable d)
  public void setTextViewDrawable(Drawable d)
  设置背景色
  public void setLinearLayoutBgColor(int color)
  public void setTextViewBgColor(int color)
  

xml中的一些方法

  countdown:color_bg  //设置背景色
  countdown:color_text  //设置字体颜色
  countdown:text_size  //设置字体大小
  countdown:setDrawable  //设置父容器背景
  countdown:setDrawable_sub  //设置子控件背景
  

怎么使用

  
  xml中
  
  <com.zy.lib.countdown.CountDownView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
        
  Java中
  
  setStopTime();//设置一个long类型的停止时间
  

开源不易,欢迎star

countdown's People

Contributors

zyandroid avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.