daimajia / AndroidImageSlider

An amazing and convenient Android image slider.
MIT License
5.62k stars 1.66k forks source link

Load images after slide #81

Open kardani opened 9 years ago

kardani commented 9 years ago

Hi dear, your library is amazing. is there possible to load 2nd,3rd &... after scroll to them? I mean the image wont load until focused to that...

jjhesk commented 9 years ago

I have the similar issue from loading the images from the library. I have 4-8 images to load and when the activity start it kept sliding until the 3rd one and stop from there. How is the possible fix from this issue?? @dominikkv @daimajia

zhouqiangWang commented 9 years ago

I think you need ViewPager#setOffscreenPageLimit I will open it in SliderLayout.

jjhesk commented 8 years ago

try this library @zhouqiangWang https://github.com/jjhesk/LoyalNativeSlider

flyliu33 commented 8 years ago

Hello,how can i use setOffscreenPageLimit(), and I can not find it in SliderLayout.

lolmourne commented 7 years ago

hi i create view from ViewPager#setOffscreenPageLimit . It has runtime error when i use slideView.setOffscreenPageLimit(20); how to fix this?

BhoomiKhan commented 3 years ago

Those who are stuck on three or four images and they are unable to load more than this, you just have to make sure that you have used different keys in file_maps. If you put the same keys into file_maps then the similar keys will consider once. For example if you want to load 6 images then you must have to put 6 uniques keys.

        file_maps.put("Hannibal",R.drawable.first_image);
        file_maps.put("Big Bang Theory",R.drawable.second_image);
        file_maps.put("House of Cards",R.drawable.third_image);
        file_maps.put("Game of Thrones", R.drawable.fifth_image);
        file_maps.put("Ertugrul  Ghazi Season_1", R.drawable.sixth_image);
        file_maps.put("Ertugrul  Ghazi Season_2", R.drawable.seventh_image);