Loyal Native Slider

Additional

Language
Java
Version
1.12.1 (Nov 12, 2017)
Created
Jun 18, 2015
Updated
Oct 5, 2019 (Retired)
Owner
SodiDav (jjhesk)
Contributors
SodiDav (jjhesk)
Yuri Heupa (YuriHeupa)
2
Activity
Badge
Generate
Download
Source code

Loyal Native Slider

![Gitter](https://badges.gitter.im/Join Chat.svg)]

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

##Demo Apk Please also check the latest release testing apk from the log history

Usage

Step 1

Gradle

JCenter is the place to find and share popular Apache Maven packages for use by Maven, Gradle, Ivy, SBT, etc. For the most comprehensive collection of artifacts, point your Maven at: http://jcenter.bintray.com

dependencies {
    compile 'com.hkm.loyalslider:library:1.12.1'
}

Step 2 - setup the xml

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 you can add this optionally

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

Step 4

Implement the SliderLayout component in the fragment or activity

Step 5

making some small adjustments

Step 6

setup the slider layout either by your own custom extension or using the existing provided slides from the folder SlideType

Step 7

binding data from json or your own data providers

Step 8

completion of the arrayList with your own type T , T as your data type

Step 9

call mSliderLayout.loadSliderList or .addSliderList or .addSlider independently. finally, check the result. For more variant and options you may

====

Preview

New Version Demo:

Mobile Testing multiple screens support Tablet Testing

=======

Attribtues

This is the attribute support set for SliderLayout

attr description
indicator_visibility disable or enable the visible area in the whole component. options: visible, invisable
auto_cycle option to enable or disable auto cycle
pager_animation animation list of choices. page animation
pager_animation_span the page animation time span
auto_cycle option to enable or disable auto cycle
slide_dot_limit slide dot limit
lns_use_presentation choices of presentation on the slider. options: Smart, Dots, Numbers
image_button_l reference of drawable for the left arrow button to enable previous slide
image_button_r reference of drawable for the right arrow button to enable next slide
slider_side_buttons enable or disable the arrow buttons on each right or left side
slider_side_buttons_function_flip unkown

Advanced usage

Visit the Transform Wiki Please visit Wiki for the mother library

Thanks for the Reference

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

Thank you for your support and we will bring more amazing libraries to your productive works. We are accepting bitcoin by the address as below. Please scan the QR code to start

License

Copyright 2016 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