File tree Expand file tree Collapse file tree
htextview-library/src/main/java/com/hanks/htextview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,6 +161,15 @@ public void setAnimateType(HTextViewType type) {
161161 initHText (attrs , defStyle );
162162 }
163163
164+
165+ @ Override
166+ public void setTextColor (@ ColorInt int color ) {
167+ //Check for RainbowText. Do not alter color if on that type due to paint conflicts
168+ if (animateType != 8 ){
169+ super .setTextColor (color );
170+ }
171+ }
172+
164173 @ Override
165174 public Parcelable onSaveInstanceState () {
166175 Parcelable superState = super .onSaveInstanceState ();
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ public abstract class HText implements IHText {
8282 drawFrame (canvas );
8383 }
8484
85+ public void setTextColor (int color ){
86+ mHTextView .setTextColor (color );
87+ }
88+
8589 private void prepareAnimate () {
8690 mTextSize = mHTextView .getTextSize ();
8791 mPaint .setTextSize (mTextSize );
You can’t perform that action at this time.
0 commit comments