コード例 #1
0
  @Override
  public View getHeader(Activity activity) {
    LayoutInflater inflater = LayoutInflater.from(activity);
    header = inflater.inflate(R.layout.view_browse_peer_header, null);

    updateHeader();

    return header;
  }
コード例 #2
0
  @Override
  public void onLoadFinished(Loader<Object> loader, Object data) {
    if (data == null) {
      LOG.warn("Something wrong, data is null");
      return;
    }

    if (loader.getId() == LOADER_FILES_ID) {
      updateFiles((Object[]) data);
    }

    updateHeader();
  }