private static void SetSnapIndex(int offset, LoopListView2 view)
        {
            //m_timer = 0;
            int currentIndex = view.CurSnapNearestItemIndex;
            int nextIndex    = currentIndex + offset;

            view.SetSnapTargetItemIndex(nextIndex);
        }
Exemplo n.º 2
0
        private void SetSnapIndex(int offset)
        {
            m_timer = 0;
            int currentIndex = m_view.CurSnapNearestItemIndex;
            int nextIndex    = currentIndex + offset;

            m_view.SetSnapTargetItemIndex(nextIndex);
        }
Exemplo n.º 3
0
        private void SetSnapIndex(int offset)
        {
            int currentIndex = m_view.CurSnapNearestItemIndex;
            int nextIndex    = currentIndex + offset;

            if (nextIndex < 0 || m_list.Length <= nextIndex)
            {
                return;
            }
            m_view.SetSnapTargetItemIndex(nextIndex);
        }
Exemplo n.º 4
0
        void OnDotClicked(int index)
        {
            int curNearestItemIndex = mLoopListView.CurSnapNearestItemIndex;

            if (curNearestItemIndex < 0 || curNearestItemIndex >= mPageCount)
            {
                return;
            }
            if (index == curNearestItemIndex)
            {
                return;
            }
            mLoopListView.SetSnapTargetItemIndex(index);
        }