@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2) private void showProgress(final boolean show){
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
    editContainer.setVisibility(show ? View.GONE : View.VISIBLE);
    progressBar.setVisibility(show ? View.VISIBLE : View.GONE);
  }
 else {
    progressBar.setVisibility(show ? View.VISIBLE : View.GONE);
    editContainer.setVisibility(show ? View.GONE : View.VISIBLE);
  }
}

@ TargetApi ( Build . VERSION_CODES . HONEYCOMB_MR2 ) private void showProgress ( final boolean show ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB_MR2 ) { editContainer . setVisibility ( show ? View . GONE : View . VISIBLE ) ; progressBar . setVisibility ( show ? View . VISIBLE : View . GONE ) ; } else { progressBar . setVisibility ( show ? View . VISIBLE : View . GONE ) ; editContainer . setVisibility ( show ? View . GONE : View . VISIBLE ) ; } }
shows the progress ui and hides the login form .
