siralam / BSImagePicker

An image picker that extends BottomSheetDialogFragment. Camera and gallery all in one dialog. Single or Multi Selection.
201 stars 62 forks source link

Bottombar Done TextView set enable #53

Open johnshoe opened 3 years ago

johnshoe commented 3 years ago

Hi!

How can I set Enabled the Done textView in the buttomBar? I tried this in onViewCreated, but not work: CoordinatorLayout parentView = (CoordinatorLayout) (getView().getParent().getParent()); View bottomBarView = LayoutInflater.from(getContext()).inflate(R.layout.item_picker_multiselection_bar, parentView, false); this.tvDone = bottomBarView.findViewById(R.id.tv_multiselect_done); this.tvDone.setEnabled(false);

Thank you