/** * Sets the values for a TextLayoutBuilder from a style resource. * * @param builder The TextLayoutBuilder * @param context The Context to use for resolving the attributes * @param styleRes The style resource identifier */ public static void updateFromStyleResource( TextLayoutBuilder builder, Context context, @StyleRes int styleRes) { updateFromStyleResource(builder, context, 0, styleRes); }
/** * Sets the values for a TextLayoutBuilder from a style resource or a themed attribute. * * @param builder The TextLayoutBuilder * @param context The Context to use for resolving the attributes * @param styleAttr The themed style attribute * @param styleRes The style resource identifier */ public static void updateFromStyleResource( TextLayoutBuilder builder, Context context, @AttrRes int styleAttr, @StyleRes int styleRes) { updateFromStyleResource(builder, context, null, styleAttr, styleRes); }