AndroidImageSlider icon indicating copy to clipboard operation
AndroidImageSlider copied to clipboard

Load images after slide

Open kardani opened this issue 10 years ago • 6 comments

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...

kardani avatar Mar 02 '15 06:03 kardani

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

jjhesk avatar Mar 11 '15 10:03 jjhesk

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

zhouqiangWang avatar May 09 '15 04:05 zhouqiangWang

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

jjhesk avatar Feb 11 '16 08:02 jjhesk

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

flyliu33 avatar Jul 27 '16 02:07 flyliu33

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

lolmourne avatar Apr 25 '17 06:04 lolmourne

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); 

BhoomiKhan avatar Dec 01 '20 06:12 BhoomiKhan