private void InitBottomSheets() { var notifRoot = (ConstraintLayout)FindViewById(Resource.Id.notifs_root); var qrRoot = (ConstraintLayout)FindViewById(Resource.Id.qr_root); var closeBottomBtn = FindViewById <TextView>(Resource.Id.notifs_hdr); var qrImageView = FindViewById <ImageView>(Resource.Id.qr_iv); qrImageView.PostDelayed(async() => { qrImageView.SetImageBitmap(await Task.Run(() => new QrGenUtil().TextToImageEncode(AppDataHelper.GetCurrentUser().Uid))); }, 1000); NotifBehavior = BottomSheetBehavior.From(notifRoot); NotifBehavior.Hideable = true; NotifBehavior.State = BottomSheetBehavior.StateHidden; NotifBehavior.AddBottomSheetCallback(new BottomSheetCallback()); closeBottomBtn.Click += delegate { NotifBehavior.State = BottomSheetBehavior.StateHidden; }; QrBehavior = BottomSheetBehavior.From(qrRoot); QrBehavior.Hideable = true; QrBehavior.State = BottomSheetBehavior.StateHidden; QrBehavior.AddBottomSheetCallback(new BottomSheetCallback()); }