public void updateUIToScanningState() {

    mPullToRefreshLayout.setRefreshing(scanning);

    supportInvalidateOptionsMenu();

    String html;
    if (scanning) {
      html = getString(R.string.scan_empty_text);
    } else {
      html = getString(R.string.no_passes_empty_text);
    }

    emptyView.setText(Html.fromHtml(html));

    emptyView.setMovementMethod(LinkMovementMethod.getInstance());
  }
예제 #2
0
  @Override
  public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);

    mPullToRefreshLayout.getHeaderTransformer().onConfigurationChanged(getActivity(), newConfig);
  }