use of eu.davidea.common.SimpleOnTouchListener in project FlexibleAdapter by davideas.
the class BottomSheetDialog method onCreateDialog.
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
mBottomSheetDialog = new android.support.design.widget.BottomSheetDialog(getActivity(), R.style.AppTheme_BottomSheetDialog);
mBottomSheetDialog.setContentView(getArguments().getInt(ARG_LAYOUT));
mBottomSheetDialog.findViewById(R.id.select_item_type).setOnClickListener(this);
mBottomSheetDialog.findViewById(R.id.select_item_type).setOnTouchListener(new SimpleOnTouchListener(getContext()));
mBottomSheetDialog.findViewById(R.id.select_reference_button).setOnClickListener(this);
mBottomSheetDialog.findViewById(R.id.select_reference_button).setOnTouchListener(new SimpleOnTouchListener(getContext()));
mBottomSheetDialog.findViewById(R.id.new_item).setOnClickListener(this);
createPopUps();
return mBottomSheetDialog;
}
Aggregations