Not able to close floating action menu on click of outside
mahidharguggilam opened this issue · comments
mahidharguggilam commented
How to add transparent black background and collapse fab menu on click of outside the fab menu
mahidharguggilam commented
My problem got solved
In MainActivity
final FrameLayout mInterceptorFrame = (FrameLayout) findViewById(R.id.fl_interceptor);
mInterceptorFrame.setOnTouchListener(new View.OnTouchListener() {
@OverRide
public boolean onTouch(View v, MotionEvent event) {
Log.d(TAG, "onTouch " + "");
if (fabMain.isOpened()) {
fabMain.close(true);
return true;
}
return false;
}
});
In xml above floating action menu