use of com.google.android.material.bottomsheet.BottomSheetBehavior in project android-client by GenesisVision.
the class TrendingBottomSheetView method updatePeekHeight.
private void updatePeekHeight() {
BottomSheetBehavior bottomsheetBehavior = BottomSheetBehavior.from(this);
flexBox.post(() -> bottomsheetBehavior.setPeekHeight(TypedValueFormatter.toDp(60) + flexBox.getHeight()));
}
use of com.google.android.material.bottomsheet.BottomSheetBehavior in project android-client by GenesisVision.
the class SocialActivity method showTrendingBottomSheet.
@Override
public void showTrendingBottomSheet() {
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.from(trendingView);
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_HALF_EXPANDED);
}
Aggregations