-
- All Implemented Interfaces:
-
android.os.Parcelable,com.backbase.deferredresources.DeferredColor,com.backbase.deferredresources.color.ParcelableDeferredColor
public final class DeferredColorWithAlpha implements ParcelableDeferredColor
A DeferredColor that always resolves with a specific alpha value, ignoring the base color's alpha.
This class implements android.os.Parcelable. It will throw at runtime if base cannot be marshalled.
-
-
Constructor Summary
Constructors Constructor Description DeferredColorWithAlpha(DeferredColor base, Float alpha)Convenience constructor to specify a float alpha value to apply on the base color. DeferredColorWithAlpha(DeferredColor base, Integer alpha)
-
Method Summary
Modifier and Type Method Description Integerresolve(Context context)Using the given context, resolve the base color with the specified alpha applied. ColorStateListresolveToStateList(Context context)Resolve the color to a ColorStateList. -
-
Constructor Detail
-
DeferredColorWithAlpha
DeferredColorWithAlpha(DeferredColor base, Float alpha)
Convenience constructor to specify a float alpha value to apply on the base color.
-
DeferredColorWithAlpha
DeferredColorWithAlpha(DeferredColor base, Integer alpha)
-
-
Method Detail
-
resolve
@ColorInt() Integer resolve(Context context)
Using the given context, resolve the base color with the specified alpha applied.
-
resolveToStateList
ColorStateList resolveToStateList(Context context)
Resolve the color to a ColorStateList.
-
-
-
-