예제 #1
0
  @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;
  }
예제 #2
0
 public void setScrollable(boolean scrollable) {
   mScrollable = scrollable;
   if (mVirtualWorkspaceView != null) {
     mVirtualWorkspaceView.setScrollable(mScrollable);
   }
 }