@Override
 public void onClick(View view) {
   if (mContext.getSupportActionBar().isShowing()) {
     mContext.getSupportActionBar().hide();
     mContext.hideInfo();
     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
       view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
   } else {
     mContext.getSupportActionBar().show();
     mContext.showInfo();
     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
       view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
   }
 }
    @Override
    public View onCreateView(
        LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.fragment_image, container, false);

      imageView = (TouchImageView) rootView.findViewById(R.id.image);
      //            imageView.setMaxScale(3.0f);
      timeOut = (TextView) rootView.findViewById(R.id.time_out_text);
      progress = (ProgressBar) rootView.findViewById(R.id.loading);
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB
          && !mContext.getSupportActionBar().isShowing()) {
        imageView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
      }
      return rootView;
    }