static boolean canAddV7AppCompatViews ( ) { if ( sAppCompatViewCheck == null ) { try { Class . forName ( "android.support.v7.widget.AppCompatTextView" ) ; sAppCompatViewCheck = Boolean . TRUE ; } catch ( ClassNotFoundException e ) { sAppCompatViewCheck = Boolean . FALSE ; } } return sAppCompatViewCheck ; }
See if the user has added appcompat - v7 with AppCompatViews