All Projects → AjaySharvesh3 → Image-Slider-View

AjaySharvesh3 / Image-Slider-View

Licence: other
Slider is android library, which makes you bit more attractive for sliding images. It will be useful for displaying movie casting and crew pics, on-boarding pages etc.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Image-Slider-View

wallhaven4j
Wallhaven API for Java
Stars: ✭ 17 (-26.09%)
Mutual labels:  jitpack
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+165.22%)
Mutual labels:  slider
roundy
Simple react round slider. Supports touch events.
Stars: ✭ 29 (+26.09%)
Mutual labels:  slider
LiveFader
@IBDesignable Horizontal or vertical UIControl subclass that can start from bottom or middle of the control.
Stars: ✭ 21 (-8.7%)
Mutual labels:  slider
pinar
🌲☀️ Customizable, lightweight React Native carousel component with accessibility support.
Stars: ✭ 214 (+830.43%)
Mutual labels:  slider
SHSliderSwitch
SHSliderSwitch is a simple lightweight library to implement an animated slider switch.
Stars: ✭ 18 (-21.74%)
Mutual labels:  slider
SimpleSlider
Simple responsive slider created in pure javascript.
Stars: ✭ 21 (-8.7%)
Mutual labels:  slider
slider-manager
simple wrapper to create sliders focused on animations
Stars: ✭ 28 (+21.74%)
Mutual labels:  slider
takahashi.js
Make Takahashi-style slide easily!
Stars: ✭ 30 (+30.43%)
Mutual labels:  slider
AORangeSlider
AORangeSlider is a custom UISlider with two handlers to pick a minimum and a maximum range.
Stars: ✭ 82 (+256.52%)
Mutual labels:  slider
cachu-slider
🌈 🔆 Create animated full screen and content-fit sliders efficiently.
Stars: ✭ 30 (+30.43%)
Mutual labels:  slider
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (+169.57%)
Mutual labels:  jitpack
range-slider
Customizable slider (range) component for JavaScript with no dependencies
Stars: ✭ 26 (+13.04%)
Mutual labels:  slider
react-color
🎨 Is a tiny color picker widget component for React apps.
Stars: ✭ 50 (+117.39%)
Mutual labels:  slider
skeleton-carousel
Carousel component. Horizontal and vertical swipe navigation
Stars: ✭ 31 (+34.78%)
Mutual labels:  slider
packetevents
PacketEvents is a powerful packet library. Our packet wrappers are efficient and easy to use. We support many protocol versions. (1.8+)
Stars: ✭ 235 (+921.74%)
Mutual labels:  jitpack
svelte-slidy
📸 Sliding action script
Stars: ✭ 211 (+817.39%)
Mutual labels:  slider
TNSlider
A custom iOS slider that show current value on the thumb
Stars: ✭ 14 (-39.13%)
Mutual labels:  slider
vue-piece-slider
animated slides in a fragmented look 🐞🌳✡️📐
Stars: ✭ 95 (+313.04%)
Mutual labels:  slider
T System
the moving objects tracking system via two axis camera motion (and as optionally n joint robotic arm) for raspberry pi distributions
Stars: ✭ 17 (-26.09%)
Mutual labels:  slider

Image-Slider-View

Description

Slider Library is simple for creating beatiful UI for image sliding in circular view. Sliding them in both left and right with the help of buttons, texts etc. Easy to implement on your device.

Demo Gif

How to implement it?

1. First, add the JitPack repository to your build.gradle file (project level)

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	} 

2. Second, add Module dependency in your app/build.gradle file

dependencies {
          implementation 'com.github.AjaySharvesh3:Image-Slider-View:v1.0'
  }

3. Third, add this XML code to your activity (Any of your activity you need to implement it on)

 <com.wolfpack.ajays.slider.Slider
     android:id="@+id/slider"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_marginTop="50dp"
     android:layout_centerHorizontal="true"/>

4. Fourth step, add some image resources in Java

        slider = findViewById(R.id.slider);
        int [] id = new int [] {R.drawable.dogone, R.drawable.dogtwo,  R.drawable.dogthree};
        slider.setImageResource(id);

5. Now you need to command this view when you want to slide to next item. So you can call helper method like:

//Slide image in left
slider.slideLeft();

//Slide image in right
slider.slideRight();

Additional Works

1. You can also listen to events when the slider reaches its end.

Just call .setSlideListener method and pass the implementation slider.SlideListener interface.

            slider.setSlideListener(new Slider.SlideListener() {
            @Override
            public void onReachedFirst() {
                Toast.makeText(MainActivity.this,"Reached 1st Position!",Toast.LENGTH_LONG).show();
            }

            @Override
            public void onReachedLast() {
                Toast.makeText(MainActivity.this,"Reached last Position!", Toast.LENGTH_LONG).show();
            }

        });

2. You can also customize your color for Concentric circles by:

    slider.setColor(Color.parseColor("#009988"));

Contributions

Any contributions are welcome. You can send PR or open issues.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].