@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.trace_layout);
    listView = (PullListView) findViewById(R.id.lv_trace);
    View emptyView = getLayoutInflater().inflate(R.layout.layout_empty_view, null);
    TextView tvIndicator = (TextView) emptyView.findViewById(R.id.tv_empty);
    tvIndicator.setText("观看记录为空");
    listView.setEmptyView(emptyView);
    tvTitle.setText("我看过的主播");
    mUser = ApplicationEx.get().getUserManager().getUser();
    //		bitmapLoad=Utils.getBitmapLoad(this,false);
    asyncImageLoader = new AsyncImageLoader();
    if (mUser != null) {
      getHostAtt();
    }
    getLocalAttHost();
    listView.setOnItemClickListener(
        new AdapterView.OnItemClickListener() {

          @Override
          public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            if (parent.getAdapter() != null) {
              Intent intent = new Intent(TraceHostSeeActivity.this, ChatRoomActivity.class);
              intent.putExtra("host", (Father) parent.getAdapter().getItem(position));
              startActivity(intent);
            }
          }
        });
  }
Exemplo n.º 2
0
 public static void refreshCatalogStorage() {
   ApplicationEx.getInstance().getCatalogStorage().requestCatalog(CatalogStorage.LOCAL, true);
   ApplicationEx.getInstance().getCatalogStorage().requestCatalog(CatalogStorage.IMPORT, true);
 }