private void InitView() { if (IsInEditMode) { return; } //生成主View var v = LayoutInflater.From(Context).Inflate(Resource.Layout.common_recyclerview, this); mPtrLayout = (SwipeRefreshLayout)v.FindViewById(Resource.Id.ptr_layout); mPtrLayout.Enabled = false; mProgressView = (ViewGroup)v.FindViewById(Resource.Id.progress); if (_progressId != 0) { LayoutInflater.From(Context).Inflate(_progressId, mProgressView); } mEmptyView = (ViewGroup)v.FindViewById(Resource.Id.empty); if (_emptyId != 0) { LayoutInflater.From(Context).Inflate(_emptyId, mEmptyView); } mErrorView = (ViewGroup)v.FindViewById(Resource.Id.error); if (_errorId != 0) { LayoutInflater.From(Context).Inflate(_errorId, mErrorView); } InitRecyclerView(v); }
public CustommScaleDownAnimation(SwipeRefreshLayout swipeRefreshLayout) { _swipeRefreshLayout = swipeRefreshLayout; }
public CustommAnimateToStartPosition(SwipeRefreshLayout swipeRefreshLayout) { _swipeRefreshLayout = swipeRefreshLayout; }
public CustomCancelListener(SwipeRefreshLayout swipeRefreshLayout) { _swipeRefreshLayout = swipeRefreshLayout; }
public CustomAlphaAnimation(SwipeRefreshLayout swipeRefreshLayout, int startingAlpha, int endingAlpha) { _swipeRefreshLayout = swipeRefreshLayout; _startingAlpha = startingAlpha; _endingAlpha = endingAlpha; }