Android custom view should extend AppCompatTextView

UPDATE: If you’re using androidx libraries instead of the (legacy) v7 support libraries (which you ought to do so now…), please use this instead:

import androidx.appcompat.widget.AppCompatTextView;

OLD ANSWER: (still useful if you’ve not migrated to androidx yet…)

This custom view should extend
android.support.v7.widget.AppCompatTextView instead

It’s a Warning, not an Error.

Instead of

public class FontAwesome extends TextView

You should use AppCompatTextView

public class FontAwesome extends AppCompatTextView 

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)