コード例 #1
0
  protected void setAdditionalText2(final String text) {
    TraceLog.scoped(this).d("setAdditionalText2", text);

    TextView addText2 = (TextView) findViewById(R.id.AdditionalText2);
    if (text != null) {
      addText2.setText(text);
      addText2.setVisibility(View.VISIBLE);
    } else {
      addText2.setVisibility(View.GONE);
    }
  }
コード例 #2
0
  @Override
  public void onLoadFinished(Loader<AsyncResult<String>> listLoader, AsyncResult<String> result) {
    if (result.getException() != null || result.getData() == null) {
      Toast.makeText(getActivity(), R.string.err_odata_unexpected, Toast.LENGTH_SHORT).show();
      TraceLog.e("Error loading file logs", result.getException());

    } else {
      final String logs = result.getData();
      childViewLogs.setText(logs);
    }
  }