We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shows blank screen when implemented in fragment.
mDemoSlider = view.findViewById(R.id.slider);
HashMap<String, Integer> imagesWithTitle = new HashMap<>(); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); imagesWithTitle.put("xxxx", R.drawable.xxxx); for (String name : imagesWithTitle.keySet()) { TextSliderView textSliderView = new TextSliderView(getContext()); // initialize a SliderLayout textSliderView .description(name) .image(imagesWithTitle.get(name)) .setScaleType(BaseSliderView.ScaleType.Fit); //.setOnSliderClickListener(HomeFragment.this); //add your extra information textSliderView.bundle(new Bundle()); textSliderView.getBundle() .putString("extra", name); mDemoSlider.addSlider(textSliderView); } mDemoSlider.setPresetTransformer(SliderLayout.Transformer.Accordion); mDemoSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom); mDemoSlider.setCustomAnimation(new DescriptionAnimation()); mDemoSlider.setDuration(4000);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Shows blank screen when implemented in fragment.
mDemoSlider = view.findViewById(R.id.slider);
The text was updated successfully, but these errors were encountered: