All Projects → livesun → Gradienttextview

livesun / Gradienttextview

一个颜色逐渐改变的textview,类似歌词效果

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Gradienttextview

hat-view
Allow to put "hat" on TextView. Inspired by Telegram appbar title with Santa Claus hat 🎅🏻
Stars: ✭ 51 (-80.9%)
Mutual labels:  textview
OutlineTextView
Android TextView with outline
Stars: ✭ 59 (-77.9%)
Mutual labels:  textview
extra-textview
additional features for TextView
Stars: ✭ 21 (-92.13%)
Mutual labels:  textview
TextViewPlus
an android library for setting custom font in xml layout
Stars: ✭ 27 (-89.89%)
Mutual labels:  textview
Android-SGTextView
同时带字体描边 渐变 阴影的TextView - both have stroker, gradient and shadow TextView
Stars: ✭ 18 (-93.26%)
Mutual labels:  textview
EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (-65.92%)
Mutual labels:  textview
TextViewSetWordSpace
Android设置TextView字间距
Stars: ✭ 18 (-93.26%)
Mutual labels:  textview
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts
Stars: ✭ 26 (-90.26%)
Mutual labels:  textview
embedded-text
Multiline TextBox for the embedded-graphics Rust crate
Stars: ✭ 35 (-86.89%)
Mutual labels:  textview
FOTextLayout
实现文字横竖向切换,实现各种文字的排版,可以某种程度上替代UILabel。
Stars: ✭ 36 (-86.52%)
Mutual labels:  textview
Socially
Socially is a textView which is able to create separate clickable views according to your requirements.
Stars: ✭ 28 (-89.51%)
Mutual labels:  textview
CheckableTextView
A simple and flexible Checked TextView or Checkable TextView
Stars: ✭ 108 (-59.55%)
Mutual labels:  textview
react-native-highlighted-text
A React Native component to individually style texts inside a text
Stars: ✭ 18 (-93.26%)
Mutual labels:  textview
LicenseTextView
Custom Lincese TextView for android
Stars: ✭ 31 (-88.39%)
Mutual labels:  textview
textmatcher
A simple text watcher that matches specific targets like mention or hashtag in a string by defining rules
Stars: ✭ 67 (-74.91%)
Mutual labels:  textview
Hyena
鬣狗快速开发库(2018年6月停止维护)
Stars: ✭ 21 (-92.13%)
Mutual labels:  textview
KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (-77.53%)
Mutual labels:  textview
TTInputVisibilityController
Lightweight controller to keep your inputs visible when the keyboard is presented.
Stars: ✭ 21 (-92.13%)
Mutual labels:  textview
LycricsTextView
No description or website provided.
Stars: ✭ 14 (-94.76%)
Mutual labels:  textview
FSAnimatedTextView
Animated Number Text View Library
Stars: ✭ 32 (-88.01%)
Mutual labels:  textview

GradientTextView 效果

grad

GradientTextView 功能

  • GradientTextView是一个文字颜色逐步改变的自定义view,目前只有两种颜色。

如何使用 GradientTextView

  • Step 1. Add it in your root build.gradle at the end of repositories:
  allprojects {
    	repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  • Step 2. Add the dependency
 dependencies {
            compile 'com.github.livesun:GradientTextView:v1.0'
	}
  • Step 3 xml布局
<gradient.mylibrary.GradienTextView
        android:id="@+id/gradienTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        app:originalCololr="@color/colorPrimary"
        app:change_color="@color/colorAccent"
        android:textSize="15sp"
        />
  • Step 4 代码调用
//简单使用

 GradienTextView gradienTextView = (GradienTextView) findViewById(R.id.gradienTextView);
 gradienTextView.start(Orientation.LEFT_TO_RIGHT,1000);
 
 
 //也可以自定义
 
  gradienTextView.setOrientation(Orientation.LEFT_TO_RIGHT);
        ValueAnimator animator = ValueAnimator.ofFloat(new float[]{0.0F, 1.0F});
        animator.setDuration(2000);
        animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
            public void onAnimationUpdate(ValueAnimator animation) {
                float value = ((Float)animation.getAnimatedValue()).floatValue();

                gradienTextView.setCurrentProgress(value);
            }
        });
        animator.start();
        
        
    //也可以静态展示
    
     gradienTextView.start(Orientation.LEFT_TO_RIGHT,1000);
     gradienTextView.setCurrentProgress(0.5f);

##有问题反馈 在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].