Skip to content

Instantly share code, notes, and snippets.

View nntuyen's full-sized avatar

Tuyen Nguyen nntuyen

View GitHub Profile
Shader "Custom/yar" {
Properties {
_ColorLow ("Color Low", COLOR) = (1,1,1,1)
_ColorHigh ("Color High", COLOR) = (1,1,1,1)
_yPosLow ("Y Pos Low", Float) = 0
_yPosHigh ("Y Pos High", Float) = 10
_GradientStrength ("Graident Strength", Float) = 1
_EmissiveStrengh ("Emissive Strengh ", Float) = 1
_ColorX ("Color X", COLOR) = (1,1,1,1)
_ColorY ("Color Y", COLOR) = (1,1,1,1)
TextDecorator
.decorate(tvContent, text)
.setTextColor(R.color.colorAccent, "Lorem", "amet")
.setBackgroundColor(R.color.colorPrimary, "dolor", "elit")
.strikethrough("Duis", "Praesent")
.underline("sodales", "quam")
.setSubscript("vitae")
.makeTextClickable(new OnTextClickListener() {
@Override public void onClick(View view, String text) {
Toast.makeText(MainActivity.this, text, Toast.LENGTH_SHORT).show();