kandi background
Explore Kits

AndroidImageSlider | An amazing and convenient Android image slider. | Animation library

 by   daimajia Java Version: v1.0.9 License: MIT

 by   daimajia Java Version: v1.0.9 License: MIT

Download this library from

kandi X-RAY | AndroidImageSlider Summary

AndroidImageSlider is a Java library typically used in User Interface, Animation applications. AndroidImageSlider has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.
This is an amazing image slider for the Android platform. I decided to open source this because there is really not an attractive, convenient slider widget in Android. You can easily load images from an internet URL, drawable, or file. And there are many kinds of amazing animations you can choose. :-D.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • AndroidImageSlider has a medium active ecosystem.
  • It has 5648 star(s) with 1727 fork(s). There are 264 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 289 open issues and 95 have been closed. On average issues are closed in 299 days. There are 20 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of AndroidImageSlider is v1.0.9
AndroidImageSlider Support
Best in #Animation
Average in #Animation
AndroidImageSlider Support
Best in #Animation
Average in #Animation

quality kandi Quality

  • AndroidImageSlider has 0 bugs and 0 code smells.
AndroidImageSlider Quality
Best in #Animation
Average in #Animation
AndroidImageSlider Quality
Best in #Animation
Average in #Animation

securitySecurity

  • AndroidImageSlider has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • AndroidImageSlider code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
AndroidImageSlider Security
Best in #Animation
Average in #Animation
AndroidImageSlider Security
Best in #Animation
Average in #Animation

license License

  • AndroidImageSlider is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
AndroidImageSlider License
Best in #Animation
Average in #Animation
AndroidImageSlider License
Best in #Animation
Average in #Animation

buildReuse

  • AndroidImageSlider releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • AndroidImageSlider saves you 1928 person hours of effort in developing the same functionality from scratch.
  • It has 4248 lines of code, 288 functions and 49 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
AndroidImageSlider Reuse
Best in #Animation
Average in #Animation
AndroidImageSlider Reuse
Best in #Animation
Average in #Animation
Top functions reviewed by kandi - BETA

kandi has reviewed AndroidImageSlider and discovered the below as its top functions. This is intended to give you an instant insight into AndroidImageSlider implemented functionality, and help decide if they suit your requirements.

  • Handles a touch event .
  • Bind an event listener to the view .
  • Sets the preset transformer .
  • Initializes the slider .
  • On pre - transform .
  • Sets the item as selected .
  • Display the description layout
  • Calculate the offset for a given rotation .
  • This method will be overridden by subclasses to override this method .
  • When image displays an error .

AndroidImageSlider Key Features

An amazing and convenient Android image slider.

Step 1

copy iconCopydownload iconDownload
dependencies {
    	compile "com.android.support:support-v4:+"
    	compile 'com.squareup.picasso:picasso:2.3.2'
    	compile 'com.nineoldandroids:library:2.4.0'
    	compile 'com.daimajia.slider:library:1.1.5@aar'
}

Step 2

copy iconCopydownload iconDownload
<!-- if you want to load images from the internet -->
<uses-permission android:name="android.permission.INTERNET" />

<!-- if you want to load images from a file OR from the internet -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Step 3

copy iconCopydownload iconDownload
<com.daimajia.slider.library.SliderLayout
        android:id="@+id/slider"
        android:layout_width="match_parent"
        android:layout_height="200dp"
/>

How to customize Indicator styling with com.glide.slider.library.SliderLayout?

copy iconCopydownload iconDownload
binding.sliderProductImage.setCustomIndicator(custom_indicator as PagerIndicator)

Community Discussions

Trending Discussions on AndroidImageSlider
  • How to customize Indicator styling with com.glide.slider.library.SliderLayout?
Trending Discussions on AndroidImageSlider

QUESTION

How to customize Indicator styling with com.glide.slider.library.SliderLayout?

Asked 2020-Jun-25 at 14:47

I have the following Slider Layout using this slider:

                <com.glide.slider.library.SliderLayout
                    android:id="@+id/slider_product_image"
                    android:layout_width="500dp"
                    android:layout_height="350dp"/>
                <com.glide.slider.library.indicators.PagerIndicator
                    android:id="@+id/custom_indicator"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    app:selected_height="20dp"
                    app:selected_width="20dp"/>

Here's the code I use to set it up:

            //Slider
            for (item in prod.images) {
                val sliderView = DefaultSliderView(context)

                // initialize SliderLayout
                sliderView
                    .image(item)
                    .setRequestOption(
                        RequestOptions()
                            .diskCacheStrategy(DiskCacheStrategy.ALL)
                            .skipMemoryCache(true)
                    )
                binding.sliderProductImage.addSlider(sliderView)
            }
            binding.sliderProductImage.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom)
            binding.sliderProductImage.stopCyclingWhenTouch(false)
            binding.sliderProductImage.stopAutoCycle()

The slider is based on this one using picasso as image loader. The original slider allows for thorough indicator customization as can be seen here. There are available properties such as app:selected_height and app:selected_width, which are supposed to set the height and width of the indicator of the selected item, but they don't have any effect on the layout itself. Here's an image of my result:

enter image description here

The selected indicator is still the same size. Am I missing something? Is there a way to apply these properly?

ANSWER

Answered 2020-Jun-25 at 14:47

Found my error... All the way at the bottom it says you need to bind it with a SliderLayout instance for it to work:

binding.sliderProductImage.setCustomIndicator(custom_indicator as PagerIndicator)

Source https://stackoverflow.com/questions/62577367

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install AndroidImageSlider

You can download it from GitHub, Maven.
You can use AndroidImageSlider like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the AndroidImageSlider component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.