public abstract class BaseViewTransformer extends java.lang.Object implements ViewTransformer
| Modifier and Type | Field and Description |
|---|---|
static float |
MAX_DIM_ALPHA |
| Constructor and Description |
|---|
BaseViewTransformer() |
| Modifier and Type | Method and Description |
|---|---|
float |
getDimAlpha(float translation,
float maxTranslation,
float peekedTranslation,
BottomSheetLayout parent,
android.view.View view)
Called on when the translation of the sheet view changes allowing you to customize the amount of dimming which
is applied to the content view.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformViewpublic static final float MAX_DIM_ALPHA
public float getDimAlpha(float translation,
float maxTranslation,
float peekedTranslation,
BottomSheetLayout parent,
android.view.View view)
ViewTransformergetDimAlpha in interface ViewTransformertranslation - The current translation of the presented sheet view.maxTranslation - The max translation of the presented sheet view.peekedTranslation - The peeked state translation of the presented sheet view.parent - The BottomSheet presenting the sheet view.view - The content view to transform.