Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public CustommScaleDownAnimation(SwipeRefreshLayout swipeRefreshLayout)
 {
     _swipeRefreshLayout = swipeRefreshLayout;
 }
Ejemplo n.º 3
0
 public CustommAnimateToStartPosition(SwipeRefreshLayout swipeRefreshLayout)
 {
     _swipeRefreshLayout = swipeRefreshLayout;
 }
Ejemplo n.º 4
0
 public CustomCancelListener(SwipeRefreshLayout swipeRefreshLayout)
 {
     _swipeRefreshLayout = swipeRefreshLayout;
 }
Ejemplo n.º 5
0
 public CustomAlphaAnimation(SwipeRefreshLayout swipeRefreshLayout, int startingAlpha, int endingAlpha)
 {
     _swipeRefreshLayout = swipeRefreshLayout;
     _startingAlpha      = startingAlpha;
     _endingAlpha        = endingAlpha;
 }