You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we define a style in xml and want to apply it at RunTime using setTextAppearance, the MagicTextView specific format is not loaded. Adding this to code solved it:
public void setTextAppearance(Context context, int resid) {
super.setTextAppearance(context, resid);
TypedArray a = context.obtainStyledAttributes(resid, R.styleable.MagicTextView);
formatMagicTextView(a);
a.recycle();
}
The text was updated successfully, but these errors were encountered:
If we define a style in xml and want to apply it at RunTime using setTextAppearance, the MagicTextView specific format is not loaded. Adding this to code solved it:
public void setTextAppearance(Context context, int resid) {
super.setTextAppearance(context, resid);
TypedArray a = context.obtainStyledAttributes(resid, R.styleable.MagicTextView);
formatMagicTextView(a);
a.recycle();
}
The text was updated successfully, but these errors were encountered: