Package com.regula.facesdk.configuration
Class UiConfiguration
java.lang.Object
com.regula.facesdk.configuration.UiConfiguration
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUiConfiguration(HashMap<CustomizationColor, Long> colors, HashMap<CustomizationColor, Drawable> drawableColors, HashMap<CustomizationImage, Integer> images, HashMap<String, Drawable> drawables, HashMap<CustomizationFont, Integer> fonts, HashMap<CustomizationFont, Typeface> typefaces, HashMap<CustomizationFont, Integer> fontSizes) -
Method Summary
Modifier and TypeMethodDescriptionintgetColor(CustomizationColor color, Resources res) DrawablegetDrawable(Drawable drawable, Resources resources, CustomizationColor value) booleanstatic DrawableresizeDrawableWithMaxHeight(Resources resources, Drawable drawable, int maxHeightDp) voidsetButtonBackground(Button button, Resources resources, CustomizationColor colorValue) voidsetButtonTextFont(CustomizationFont font, Context context, Button button) voidsetImageDrawable(ImageButton imageButton, Resources resources, CustomizationImage image) voidsetImageDrawable(ImageView imageView, Resources resources, CustomizationImage image) voidsetImageDrawableWithResize(ImageView imageView, Resources resources, CustomizationImage image, int maxDp) voidsetTextFont(CustomizationFont font, Context context, TextView textView) voidsetTextImageDrawable(TextView textView, Resources resources, CustomizationImage image)
-
Constructor Details
-
UiConfiguration
public UiConfiguration(HashMap<CustomizationColor, Long> colors, HashMap<CustomizationColor, Drawable> drawableColors, HashMap<CustomizationImage, Integer> images, HashMap<String, Drawable> drawables, HashMap<CustomizationFont, Integer> fonts, HashMap<CustomizationFont, Typeface> typefaces, HashMap<CustomizationFont, Integer> fontSizes)
-
-
Method Details
-
getColor
-
setButtonTextFont
-
setTextFont
-
getDrawable
-
setButtonBackground
-
setImageDrawable
-
setImageDrawableWithResize
public void setImageDrawableWithResize(ImageView imageView, Resources resources, CustomizationImage image, int maxDp) -
setImageDrawable
public void setImageDrawable(ImageButton imageButton, Resources resources, CustomizationImage image) -
setTextImageDrawable
-
resizeDrawableWithMaxHeight
public static Drawable resizeDrawableWithMaxHeight(Resources resources, Drawable drawable, int maxHeightDp) -
isContainsCustomImage
-