GithubHelp home page GithubHelp logo

jiubadao / colortrackview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hongyangandroid/colortrackview

0.0 2.0 0.0 1.29 MB

字体或者图片可以逐渐染色和逐渐褪色的动画效果

License: Apache License 2.0

Java 100.00%

colortrackview's Introduction

Android-ColorTrackView

字体或者图片可以逐渐染色和逐渐褪色的动画效果

使用

 <com.zhy.view.ColorTrackView
        android:id="@+id/id_changeTextColorView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_centerVertical="true"
        android:padding="20dp"
        android:background="#44ff0000"
        android:gravity="center_vertical"
        zhy:progress="0"
        zhy:direction="left"
        zhy:text="张鸿洋"
        zhy:text_change_color="#ffff0000"
        zhy:text_origin_color="#ff000000"
        zhy:text_size="60sp" />

注:zhy为命名空间,xmlns:zhy="http://schemas.android.com/apk/res-auto",可自由修改。

  • progress [0.0f , 1.0f]
  • text 绘制的文本
  • text_change_color目标颜色
  • text_origin_color原始颜色
  • text_size字体大小
  • direction 方向,枚举类型,支持:left,right,top,bottom

效果图

简单使用

结合ViewPager

关于我

我的博客地址

colortrackview's People

Contributors

hongyangandroid avatar

Watchers

James Cloos avatar gopher 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.