public interface ViewTransformer
| 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.
|
void |
transformView(float translation,
float maxTranslation,
float peekedTranslation,
BottomSheetLayout parent,
android.view.View view)
Called on every frame while animating the presented sheet.
|
void transformView(float translation,
float maxTranslation,
float peekedTranslation,
BottomSheetLayout parent,
android.view.View view)
translation - 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.float getDimAlpha(float translation,
float maxTranslation,
float peekedTranslation,
BottomSheetLayout parent,
android.view.View view)
translation - 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.