@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_workspace, container, false); mVirtualWorkspaceView = (VirtualWorkspaceView) rootView.findViewById(R.id.virtual_workspace); mWorkspaceView = (WorkspaceView) rootView.findViewById(R.id.workspace); mVirtualWorkspaceView.setScrollable(mScrollable); return rootView; }
public void setScrollable(boolean scrollable) { mScrollable = scrollable; if (mVirtualWorkspaceView != null) { mVirtualWorkspaceView.setScrollable(mScrollable); } }