public static AccentPalette getPalette ( Context context ) { Resources resources = context . getResources ( ) ; if ( ! ( resources instanceof AccentResources ) ) return null ; return ( ( AccentResources ) resources ) . getPalette ( ) ; }
Get the AccentPalette instance from the the context .