예제 #1
0
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
   switch (msg.what) {
     case MSG_STOP_REFRESH:
       stopRefresh();
       break;
     case MSG_GET_DATA_OVER:
       ToastUtil.showToast(mContext, "亲,没有更多数据了哦.");
       stopRefresh();
       home_Xlistview.setPullLoadEnable(false);
       break;
     default:
       break;
   }
 }
예제 #2
0
 @Override
 protected void setListensers() {
   home_Xlistview.setPullLoadEnable(true);
   home_Xlistview.setSelector(android.R.color.transparent);
   home_Xlistview.setOnItemClickListener(new MyOnItemClickListener());
   home_Xlistview.setXListViewListener(new MyIXListViewListener());
   ObserverManager mObserverManager = ObserverManager.getInstance();
   mObserverManager.addCityChangedObserver(
       new ObserverManager.OnCityChangedListener() {
         @Override
         public void onCityChanged() {
           home_Xlistview.setVisibility(View.GONE);
           isShowAnim(true);
           showBaseLoading();
           getDealData();
         }
       });
 }