void OnEndDrag() { if (mLoopListView.ShownItemCount == 0) { return; } if (mLoadingTipStatus != LoadingTipStatus.None && mLoadingTipStatus != LoadingTipStatus.WaitReleasePull) { return; } LoopListViewItem2 item = mLoopListView.GetShownItemByItemIndex(0); if (item == null) { return; } mLoopListView.OnItemSizeChanged(item.ItemIndex); if (mLoadingTipStatus != LoadingTipStatus.WaitReleasePull) { return; } mLoadingTipStatus = LoadingTipStatus.WaitLoad; UpdateLoadingTip(item); DataSourceMgr.Get.RequestRefreshDataList(OnDataSourceRefreshFinished); }
void OnEndDrag() { if (mLoopListView.ShownItemCount == 0) { return; } if (mLoadingTipStatus != LoadingTipStatus.None && mLoadingTipStatus != LoadingTipStatus.WaitReleasePush && mLoadingTipStatus != LoadingTipStatus.WaitReleasePull) { return; } // 上拉加载 LoopListViewItem2 item = mLoopListView.GetShownItemByItemIndex(DataSourceMgr.Get.TotalItemCount); if (item != null) { mLoopListView.OnItemSizeChanged(item.ItemIndex); if (mLoadingTipStatus != LoadingTipStatus.WaitReleasePush) { //Debug.Log("上拉 ==>> RETURN"); //return; } else { //Debug.Log("上拉加载"); mLoadingTipStatus = LoadingTipStatus.WaitLoad; UpdateLoadingTip(item); DataSourceMgr.Get.RequestLoadMoreDataList(mLoadMoreCount, OnDataSourceLoadMoreFinished); } } // 下拉刷新 LoopListViewItem2 _item = mLoopListView.GetShownItemByItemIndex(0); if (_item != null) { mLoopListView.OnItemSizeChanged(_item.ItemIndex); if (mLoadingTipStatus != LoadingTipStatus.WaitReleasePull) { //Debug.Log("下拉 ==>> RETURN"); //return; } else { //Debug.Log("下拉刷新"); mLoadingTipStatus = LoadingTipStatus.WaitLoad; UpdateLoadingTip(_item); DataSourceMgr.Get.RequestRefreshDataList(OnDataSourceRefreshFinished); } } }
void OnEndDrag() { if (mLoopListView.ShownItemCount == 0) { return; } if (mLoadingTipStatus != LoadingTipStatus.None && mLoadingTipStatus != LoadingTipStatus.WaitRelease) { return; } LoopListViewItem2 item = mLoopListView.GetShownItemByItemIndex(DataSourceMgr.Get.TotalItemCount); if (item == null) { return; } mLoopListView.OnItemSizeChanged(item.ItemIndex); if (mLoadingTipStatus != LoadingTipStatus.WaitRelease) { return; } mLoadingTipStatus = LoadingTipStatus.WaitLoad; UpdateLoadingTip(item); //请求加载更多数据 DataSourceMgr.Get.RequestLoadMoreDataList(mLoadMoreCount, OnDataSourceLoadMoreFinished); }
void OnEndDrag() { if (mLoopListView.ShownItemCount == 0) { return; } LoopListViewItem2 item = mLoopListView.GetShownItemByItemIndex(0); if (item == null) { return; } mLoopListView.OnItemSizeChanged(item.ItemIndex); }
//public void RemoveFavorite(){ // GameManager.Instance.favObj.SetActive(false); // GameManager.Instance.favorite[GameManager.Instance.favMIndex].rData.RemoveAt(GameManager.Instance.favRIndex); // if(GameManager.Instance.favorite[GameManager.Instance.favMIndex].rData.Count==0){ // GameManager.Instance.favorite.RemoveAt(GameManager.Instance.favMIndex); // } // GameManager.Instance.dummyFavorite.RemoveAt(GameManager.Instance.favTempIndex); // SaveGame.Save ( "Favorites", GameManager.Instance.favorite); //} void OnEndDrag() { if (mLoopListView.ShownItemCount == 0) { return; } LoopListViewItem2 item = mLoopListView.GetShownItemByItemIndex(0); if (item == null) { return; } mLoopListView.OnItemSizeChanged(item.ItemIndex); transform.parent.GetChild(3).gameObject.SetActive(false); }