Пример #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);
   }
 }