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 ; }
Some styles are in sub styles such as actionBarTextStyle etc ..