question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slider jumping fast at start

See original GitHub issue

Hello I’m using this slider to show some product images. Everything work good but when the app loads slider, slider jump fast between images and after 2 or 3 seconds it stops and start its usual activity. Whats the problem here? Here is my code :

` for(String name : url_maps.keySet()){ DefaultSliderView textSliderView = new DefaultSliderView(SecondActivity.this);

                    textSliderView
                            .image(url_maps.get(name))
                            .setScaleType(BaseSliderView.ScaleType.Fit)
                            .setOnSliderClickListener(SecondActivity.this);

                    textSliderView.bundle(new Bundle());
                    textSliderView.getBundle()
                            .putString("extra",name);
                    sliderShow.addSlider(textSliderView);
                }
                sliderShow.setDuration(50);
                sliderShow.setPresetTransformer(SliderLayout.Transformer.ZoomOutSlide);
                if(url_maps.size() <= 1)
                    sliderShow.stopAutoCycle();`

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:11

github_iconTop GitHub Comments

4reactions
mus9876commented, Aug 9, 2018

Wagwan, just use sliderLayout.movePrevPosition(false); will solve the problem 😉

Example:- if needed

public void manageAutoSlider(View view, List<String> arrayList) {
    sliderLayout = view.findViewById(R.id.image_slider_ID);
    String finalSliderImageLink = "";
    for (String imageName : arrayList) {
        slider = new DefaultSliderView(this.getContext());
        finalSliderImageLink = APIs.getSliderThumbImage + imageName;
        slider.image(finalSliderImageLink).setScaleType(BaseSliderView.ScaleType.CenterCrop);
        sliderLayout.addSlider(slider);
    }
    sliderLayout.movePrevPosition(false);  <===
    sliderLayout.setPresetTransformer(SliderLayout.Transformer.CubeIn);
    sliderLayout.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
    sliderLayout.setDuration(3000);
}
3reactions
rezasys2commented, Jul 24, 2018

Where’s our brother, @daimajia we need you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best slide/jump technique? : r/apexuniversity - Reddit
Yeah that's really quick strafing while jumping. So you start walking sideways then slide and when you jump you snap your mouse back...
Read more >
Slide Jumping - Rise Of The Dead Wiki - Fandom
Press Sprint+Crouch really quickly. This will slide you. As soon as you can, spam spacebar. Theoretically, this will make you jump while retaining...
Read more >
Is it ever faster to slide instead of sprint when travelling over ...
Even on flat ground it looks like you might gain speed for a moment when you start to slide. It seems like you...
Read more >
What are the best settings for Slick Slider to avoid jumpiness ...
I have a slick slider that automatically starts when the page is open, but when it does it will often start half way,...
Read more >
Collapsing a Slider - U.S. Parachute Association
Having a collapsed slider allows you to better see others and inspect your own canopy. 2) Decreasing the surface area of the slider...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found