protected static int[] getStyleForTextView(TextView view) {
        final int[] styleIds = new int[]{-1, -1};
        // Try to find the specific actionbar styles
        if (isActionBarTitle(view)) {
            styleIds[0] = android.R.attr.actionBarStyle;
            styleIds[1] = android.R.attr.titleTextStyle;
        } else if (isActionBarSubTitle(view)) {
            styleIds[0] = android.R.attr.actionBarStyle;
            styleIds[1] = android.R.attr.subtitleTextStyle;
        }
        if (styleIds[0] == -1) {
            // Use TextAppearance as default style
            styleIds[0] = CalligraphyConfig.get().getClassStyles().containsKey(view.getClass())
                    ? CalligraphyConfig.get().getClassStyles().get(view.getClass())
                    : android.R.attr.textAppearance;
        }
        return styleIds;
    }
protected static int [ ] getStyleForTextView ( TextView view ) { final int [ ] styleIds = new int [ ] { - 1 , - 1 } ; if ( isActionBarTitle ( view ) ) { styleIds [ 0 ] = android . R . attr . actionBarStyle ; styleIds [ 1 ] = android . R . attr . titleTextStyle ; } else if ( isActionBarSubTitle ( view ) ) { styleIds [ 0 ] = android . R . attr . actionBarStyle ; styleIds [ 1 ] = android . R . attr . subtitleTextStyle ; } if ( styleIds [ 0 ] == - 1 ) { styleIds [ 0 ] = CalligraphyConfig . get ( ) . getClassStyles ( ) . containsKey ( view . getClass ( ) ) ? CalligraphyConfig . get ( ) . getClassStyles ( ) . get ( view . getClass ( ) ) : android . R . attr . textAppearance ; } return styleIds ; }
Some styles are in sub styles, such as actionBarTextStyle etc..

@param view view to check.
@return 2 element array, default to -1 unless a style has been found.