LinearGradient的用法
LinearGradient linearGradient;
linearGradient = new LinearGradient(0, 0, 0, getHeight(), 0xff808080, 0x33808080,CLAMP);
getPaint().setShader(linearGradient); TextPaint paint = getPaint(); paint.setColor(getCurrentTextColor()); paint.drawableState = getDrawableState();