public void show ( PeekViewActivity activity , MotionEvent motionEvent ) { PeekView peek ; if ( layout == null ) { peek = new PeekView ( activity , options , layoutRes , callbacks ) ; } else { peek = new PeekView ( activity , options , layout , callbacks ) ; } peek . setOffsetByMotionEvent ( motionEvent ) ; activity . showPeek ( peek ) ; }
Show the PeekView