It seems to do everything according to the guidelines from Google, and when you call the bot itself, it is superimposed on top of the fragment layout
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View v = inflater.inflate(R.layout.fragment_fragment_help, container, false); View bottomSheet = v.findViewById(R.id.bottom_shit); mBottomSheetBehavior = BottomSheetBehavior.from(bottomSheet); final LinearLayout test = (LinearLayout) v.findViewById(R.id.calls); test.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mBottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED); } }); mBottomSheetBehavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() { @Override public void onStateChanged(@NonNull View bottomSheet, int newState) { // React to state change } @Override public void onSlide(@NonNull View bottomSheet, float slideOffset) { // React to dragging events } }); return v; }
R.id.bottom_shitbackground you need, from where the bat knows that you need a non-transparent background. PS: I’m a little dumb and read only the contents of the question, not the title, so I didn’t understand what transparency doesn’t suit you. - xkor