Skip to content

Nikhil-z/FAV-LoyalNativeSlider

 
 

Repository files navigation

Loyal Native Slider

[Android Arsenal][6][ Download ][7][Android Gems][8][![Gitter](https://badges.gitter.im/Join Chat.svg)][9]

Master: Build Status

Dev: Build Status

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

##Features

###v1.3.2

  • Save image function by long click on the thumb
  • Enhanced number view
  • Allow direct image resizing
  • When there is only one image, it will not able to scroll.
  • Allow left and right button flip on the functionality

###v0.2.9

  • fixed id reflection issue

###v0.2.8

  • fixed bugs
  • enhanced extenable number indicator
  • allow different position for the indicator presentations
  • extensive custom buttons for and
  • more options for smart presention including the constance for the item limit

###v0.2.5

  • mutislidable viewpager list
  • infinity viewpager slider
  • added buttons for both sides

Demo

from daimajia Download Apk

Usage

Step 1

Gradle

Download

dependencies {
    compile 'com.hkm.loyalslider:library:1.3.2@aar'
}

Eclipse

For Eclipse users, I provided a sample project which orgnized as Eclipse way. You can download it from here, and make some changes to fit your project.

Notice: It's the version of 1.0.9, it may not update any more. You can update manually by yourself.

For Eclipse project, you might need to with the parent project from daimajia.

Step 2

Add permissions (if necessary) to your AndroidManifest.xml

<!-- 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" />

Note: If you want to load images from the internet, you need both the INTERNET and READ_EXTERNAL_STORAGE permissions to allow files from the internet to be cached into local storage.

If you want to load images from drawable, then no additional permissions are necessary.

Step 3

Add the Slider to your layout:

<com.hkm.slider.SliderLayout
        android:id="@+id/slider"
        android:layout_width="match_parent"
        android:layout_height="200dp"
/>

There are some default indicators. If you want to use a provided indicator:

<com.hkm.slider.Indicators.PagerIndicator
        android:id="@+id/custom_indicator"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        />

Code example

====

Advanced usage

Visit the Transform Wiki Please visit Wiki for the mother library

Thanks for the Reference

  • [Picasso][2]
  • [NineOldAndroids][3]
  • [ViewPagerTransforms][4]
  • [Android Image Slider][5]

If there are someone who I do not mention here, please accept my sincere appologies and tell me.

###Donation: Open Donation - USD: [OPEN][1]

License

Copyright 2015 JJHesk

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

##About me [1]: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=ooxfordck@gmail.com&currency_code=USD&amount=&return=&item_name=LoyalSliderDonation [2]: https://github.com/square/picasso [3]: https://github.com/JakeWharton/NineOldAndroids [4]: https://github.com/ToxicBakery/ViewPagerTransforms [5]: https://github.com/daimajia/AndroidImageSlider [6]: http://android-arsenal.com/details/1/1998 [7]: https://bintray.com/jjhesk/maven/library/_latestVersion [8]: http://www.android-gems.com/lib/jjhesk/LoyalNativeSlider [9]: https://gitter.im/daimajia/AndroidImageSlider?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

About

This is the slider for Android use. Thanks to Android Image Slider. This will make it even a better one!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%