@Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);

    LinearLayout ll = new LinearLayout(getActivity());
    ll.setOrientation(LinearLayout.VERTICAL);
    ll.setGravity(Gravity.BOTTOM);

    mSeekBarZ = new SeekBar(getActivity());
    mSeekBarZ.setMax(100);
    mSeekBarZ.setProgress(70);
    mSeekBarZ.setOnSeekBarChangeListener(this);
    ll.addView(mSeekBarZ);

    mSeekBarY = new SeekBar(getActivity());
    mSeekBarY.setMax(100);
    mSeekBarY.setProgress(60);
    mSeekBarY.setOnSeekBarChangeListener(this);
    ll.addView(mSeekBarY);

    mSeekBarX = new SeekBar(getActivity());
    mSeekBarX.setMax(100);
    mSeekBarX.setProgress(50);
    mSeekBarX.setOnSeekBarChangeListener(this);
    ll.addView(mSeekBarX);

    mLayout.addView(ll);

    return mLayout;
  }
 @Override
 protected void onBeforeApplyRenderer() {
   mRenderSurface.setAntiAliasingMode(ISurface.ANTI_ALIASING_CONFIG.MULTISAMPLING);
   mRenderSurface.setSampleCount(2);
   super.onBeforeApplyRenderer();
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   mCameraOffset = new Vector3();
   super.onCreate(savedInstanceState);
 }