Closed paramarthasaha96 closed 6 years ago
When creating a BottomSheet with a custom view, you can setup the view however you want, for example:
View v = LayoutInflater.from(getContext()).inflate(R.layout.my_view,null);
v.findViewById(R.id.my_button).setOnClickListener(v->doSomething());
new BottomSheet.Builder(this)
.setView(v)
.show();
OR you can attach a BottomSheetListener, then in the onSheetShown
callback, you can call getLayout
on the BottomSheet
object passed which will pass the root view of the BottomSheet
Thanks for it closing the issue.
So i have some buttons in my custom layout which i need to click to do some actions. Is it possible to do it and if yes how?