Пример #1
0
  @Override
  public void onReceiveResponse(Response response, Request request, Object tag) {
    super.onReceiveResponse(response, request, tag);
    if (response instanceof GetInquiryFromOtherItemsResponse) {
      dismissProgress();
      ArrayList<GoodsListData> goodListDatas =
          ((GetInquiryFromOtherItemsResponse) response).getGoodListDatas();
      if (nowIndex == 1) {
        adapterLeft.setDatas(goodListDatas);
        mRlvAskPrice.stopRefresh();
        mRlvAskPrice.setAdapter(adapterLeft);

      } else {
        adapterLeft.addDatas(goodListDatas);
        mRlvAskPrice.stopLoadMore();
      }
      nowIndex++;
      isLoading = false;
    } else if (response instanceof GetInquiryFromMeItemResponse) {
      ArrayList<GoodsListDataForAskMe> goodListDatas =
          ((GetInquiryFromMeItemResponse) response).getDataForAskMes();
      if (nowIndex == 1) {
        adapterRight.setDatas(goodListDatas);
        mRlvAskPrice.stopRefresh();

      } else {
        adapterRight.addDatas(goodListDatas);
        mRlvAskPrice.stopLoadMore();
      }
      nowIndex++;
      isLoading = false;
    }
  }