A beautiful smooth slider for Android. πŸΌπŸ€

Overview

SMOOLIDER ⭐

A smooth slider with a modern UI and effects based on ViewPager. More features coming soon


Supports ❀

Feel free to give your support by contributing to this library. Buy me a beer!

Follow me on Github for upcoming repositories:


license Codacy Badge CircleCI

Installation

build.gradle

Add jitpack maven in your root build.gradle at the end of repositories:

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

Add the dependency to your app build.gradle file (not your project build.gradle file).

dependencies {
   implementation 'com.github.astrit-veliu:Smoolider:1.2'
}

Usage

Smoolider is used the same as a normal ViewPager but more beautiful and with other functionalities. You can use my adapter, or implement a new one.

XML

Include the widget in xml.

<?xml version="1.0" encoding="UTF-8"?>

<com.av.smoothviewpager.Smoolider.SmoothViewpager
            android:id="@+id/smoolider"
            android:paddingRight="10dp"
            android:layout_alignParentBottom="true"
            android:clipToPadding = "false"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
	    </com.av.smoothviewpager.Smoolider.SmoothViewpager>

Java

After attaching the adapter to SmoothViewpager you can start/cancel autoplay of slides, adjust the quality of images and interact with other widgets. (See the example for more details)

        //simply call the setAdapter method with parameter a list of PageModel objects, where you can also add your own object into it
        viewpager.setAdapter(getDemoData())
        viewpager.setOnPageClick { page ->
            viewpager.removePage(page) //will remove the page object from Smoolider and jumps to first postion
	    viewpager.addPage(page) //will add the page object from Smoolider and jumps to its position
        }
        viewpager.setOnPageSelected { position, page ->
            //here you get the current position and the Page Object in case you want to do some actions with its data
        }

πŸ“„ License

Smoolider is released under the MIT license. See LICENSE for details.

MIT License

Copyright (c) 2019 Astrit Veliu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
You might also like...
Animations for Android L drawer, back, dismiss and check icons
Animations for Android L drawer, back, dismiss and check icons

Material Menu Morphing Android menu, back, dismiss and check buttons Have full control of the animation: Including in your project compile 'com.balysv

Android L Ripple effect wrapper for Views
Android L Ripple effect wrapper for Views

Material Ripple Layout Ripple effect wrapper for Android Views Including in your project compile 'com.balysv:material-ripple:1.0.2' Check for latest v

Android widget for selecting a range of values.
Android widget for selecting a range of values.

MaterialRangeBar MaterialRangeBar is a fork from https://github.com/edmodo/range-bar that adds some basic material styling, as well as start and end v

Android drawer icon with material design animation
Android drawer icon with material design animation

LDrawer Android drawer icon with material design animation Note Basically same as appcompat_v7 version 21, you can use appcompat_v7 compile 'com.andro

[] Android Library that implements Snackbars from Google's Material Design documentation.
[] Android Library that implements Snackbars from Google's Material Design documentation.

DEPRECATED This lib is deprecated in favor of Google's Design Support Library which includes a Snackbar and is no longer being developed. Thanks for a

A material horizontal calendar view for Android based on RecyclerView
A material horizontal calendar view for Android based on RecyclerView

Horizontal Calendar A material horizontal calendar view for Android based on RecyclerView. Installation The library is hosted on jcenter, add this to

Android Sample Project with Material Design and Toolbar.

AndroidMaterialDesignToolbar -- PROJECT IS NOT SUPPORTED Android Sample Project with Material Design and Toolbar. Project use Appcompat library for ma

Material style circular progress bar for Android
Material style circular progress bar for Android

Material CircularProgressView Indeterminate Determinate Description This CircularProgressView is a (surprisingly) circular progress bar Android View t

Android - draw z-depth shadow of MaterialDesign
Android - draw z-depth shadow of MaterialDesign

ZDepthShadowLayout Android - draw z-depth shadow of MaterialDesign Demo Screen Capture Download apply plugin: 'com.android.application' repositories

Comments
  • 1 view but showing another to right

    1 view but showing another to right

    so the scenaio is

    I have 2 elements in the smooth slider if I remove one and notify the adapter.

    it changes the element to 1 but it still has a view visible to its right which feels there is still a view there.

    but if I go with just 1 element then it doesn't draw any view.

    can you please tell how should i fix it

    opened by billy9222 3
  • Unable to use library

    Unable to use library

    dependencies { implementation 'com.github.astrit-veliu:Smoolider:1.2' }

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

    Unable to use your library. I have configured both the things mentioned above.

    opened by Harshkanani 1
Releases(1.2)
Owner
Astrit Veliu
Android Developer & Cyber Security
Astrit Veliu
An Android library aimed to get the beautiful CardViews that Google shows at its official design specifications

MaterialList Discontinued This library will not receive any updates, as I do not have the time or knowledge to improve it. If anyone forks it and want

null 1.6k Nov 29, 2022
A beautiful notes app

Background Although there are many notes apps out there, they're all hideous, glitchy, low quality or all 3 at the same time. Maybe the developer view

Om Godse 1k Jan 7, 2023
This is a library with components of Android L to you use in android 2.2

Material Design Android Library How to use Components Buttons Flat Button Rectangle Button Float Button Float small button Switches CheckBox Switch Pr

Ivan Navas 9.1k Jan 5, 2023
MaterialPickers-in-android - A simple android project that shows how to create material pickers for date and time

MaterialPickers-in-android A simple android project that shows how to create mat

Segun Francis 2 Apr 28, 2022
Material Shadows for android : A library for supporting convex material shadows

MaterialShadows A library for seamlessly integrating Material shadows. The library takes existing material shadows to next level by adding the followi

Harjot Singh Oberai 2.2k Dec 19, 2022
A library to bring fully animated Material Design components to pre-Lolipop Android.

Material MaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop Android. MaterialLibrary's origina

Rey Pham 6k Dec 21, 2022
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.

MaterialDrawer ... the flexible, easy to use, all in one drawer library for your Android project. What's included ?? β€’ Setup ??️ β€’ Migration Guide ??

Mike Penz 11.6k Dec 27, 2022
Floating Action Button for Android based on Material Design specification

FloatingActionButton Yet another library for drawing Material Design promoted actions. Features Support for normal 56dp and mini 40dp buttons. Customi

Zendesk 6.4k Dec 26, 2022
Implementation of Ripple effect from Material Design for Android API 9+

RippleEffect ExpandableLayout provides an easy way to create a view called header with an expandable view. Both view are external layout to allow a ma

Robin Chutaux 4.9k Dec 30, 2022
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Carbon Material Design implementation for Android 4.0 and newer. This is not the exact copy of the Lollipop's API and features. It's a custom implemen

null 3k Jan 9, 2023