private void setOnRiseListener() { try { getView().setOnTouchListener(fragmentsTouchListener.createListener(getView())); MainActivity.setFrameIniPosition(getView().getY()); checkScrollable(); getView().invalidate(); } catch (Exception e) { e.printStackTrace(); Log.i(FRAGMENT_NUM, "could not make touch listener for some reason!"); } }
private void createInstances() { fragmentsTouchListener = MainActivity.getTouchInstance(); }