I created a CustomTextView that extends TextView, in the CustomTextView's constructor it has the following code:
Typeface tf = this.getTypeface();
boolean isBold = false;
boolean isItalic = false;
if(tf != null) {
isBold = tf.isBold();
isItalic = tf.isItalic();
}
Here the isItalic and isBold are always false. Even after I defined android:textStyle="italic" in the layout file. What could be the problem?
Thanks Ray