Skip to content

Instantly share code, notes, and snippets.

View rahulchowdhury's full-sized avatar

Rahul Chowdhury rahulchowdhury

View GitHub Profile
@rahulchowdhury
rahulchowdhury / GradientTextView.java
Created August 4, 2016 15:47
Custom TextView for Android which shows text with a gradient fill
import android.content.Context;
import android.graphics.LinearGradient;
import android.graphics.Shader;
import android.graphics.Typeface;
import android.support.v4.content.ContextCompat;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Created by rahulchowdhury on 04/08/16.