FloatingActionButton.setSize(int) or FloatingActionButton.setColor(int)
Invoked from constructor, but it's allowed to invoke this method manually from code.ScrollDetector.onScroll(MotionEvent, MotionEvent, float, float) recognize direction of user gesture as DOWN.ScrollDetector.onScroll(MotionEvent, MotionEvent, float, float) recognize direction of user gesture as UP.View.OnTouchListener which uses GestureDetector to recognize scrolling events.ScrollDetector.onScroll(MotionEvent, MotionEvent, float, float).View.OnTouchListener which shows/hides specified view
when onScrollUp() and onScrollDown() events recognized.R.anim#floating_action_button_show and R.anim#floating_action_button_hide.40dp.56dp.