티스토리 뷰

AndroidImageSlider-ImageViewPager

AndroidImageSlider ViewPagerList

 

Tutorial

Add the library to your project

compile project(':imagersliderlib')

add images

import com.imagersliderlib.adapter.ImageViewPagerListAdapter;

ImageViewPagerListAdapter Adapter;
Adapter = new ImageViewPagerListAdapter(this , ArrayList<String> images);

touch action

mylistview.setOnScrollListener(new AbsListView.OnScrollListener() {
            @Override
            public void onScrollStateChanged(AbsListView view, int scrollState) {
                Adapter.touch_check = true;
                if (scrollState == 1) {
                    Adapter.touch_check = true;
                }
                if (scrollState == 0) {
                    Adapter.touch_check = false;
                }
            }
            @Override
            public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
            }
        });

Author

License

Apache License



URL: https://github.com/yongbeam/AndroidImageSlider-ImageViewPager 



댓글
댓글쓰기 폼