Esempio n. 1
0
  @Override
  public void onBindView(View view) {
    super.onBindView(view);
    View textView = view.findViewById(R.id.searching_text);
    View progressBar = view.findViewById(R.id.searching_progress);

    int visibility = mProgress ? View.VISIBLE : View.INVISIBLE;
    textView.setVisibility(visibility);
    progressBar.setVisibility(visibility);

    if (oldView != null) {
      oldView.findViewById(R.id.searching_progress).setVisibility(View.GONE);
      oldView.findViewById(R.id.searching_text).setVisibility(View.GONE);
      oldView.setVisibility(View.GONE);
    }
    oldView = view;
  }
 @Override
 public void onBindView(View view) {
   super.onBindView(view);
   final View progressBar = view.findViewById(R.id.scanning_progress);
   progressBar.setVisibility(mProgress ? View.VISIBLE : View.GONE);
 }