Esempio n. 1
0
        public RecyclerViewVerseViewAdapter(Context context, RecyclerView recyclerView)
        {
            _recyclerView = recyclerView;

            SwipeTouchListener = new SwipeTouchListener(context);
            _recyclerView.SetOnTouchListener(SwipeTouchListener);
        }
Esempio n. 2
0
        public RecyclerViewVerseViewAdapter(Context context, RecyclerView recyclerView, LinearLayoutManager layoutManager, int chapterHeadingVerseOffset)
        {
            _recyclerView              = recyclerView;
            _layoutManager             = layoutManager;
            _chapterHeadingVerseOffset = chapterHeadingVerseOffset;

            _scrollListener           = new RecyclerViewScrollListener();
            _scrollListener.Scrolled += ScrollListenerOnScrolled;
            _recyclerView.AddOnScrollListener(_scrollListener);

            _swipeTouchListener               = new SwipeTouchListener(context);
            _swipeTouchListener.OnDown       += SwipeTouchListenerOnOnDown;
            _swipeTouchListener.OnSwipeLeft  += SwipeTouchListenerOnOnSwipeLeft;
            _swipeTouchListener.OnSwipeRight += SwipeTouchListenerOnOnSwipeRight;
            _recyclerView.SetOnTouchListener(_swipeTouchListener);
        }