CustomizeUtils

Functions

Link copied to clipboard
fun buildStyledText(context: Context, text: String, customization: Customization): SpannableString

Build a styled spanned string from a Customization object

Link copied to clipboard

Given a color int, return the hex string with alpha

Link copied to clipboard

Ensure the color is valid and parsable

Link copied to clipboard

Ensure dimension such as corner radius and border width are 0 or greater

Link copied to clipboard

Ensure font size is greater than 0

Link copied to clipboard

Ensure strings like font name and titles are not null/empty

Link copied to clipboard
fun setStatusBarColor(activity: AppCompatActivity, @ColorInt statusBarColor: Int)

Given the toolbar's background color, set the status bar color to a slightly darker version if API levels allow.