• Stars
    star
    160
  • Rank 234,703 (Top 5 %)
  • Language
    Java
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Possible a dynamic viewpager ever you can find.

Loyal Native Slider

Android Arsenal Download Android Gems

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

Throughput Graph

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

Download

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

zoom in slider multislide

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

wallet

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

More Repositories

1

MaterialTabsAdavanced

Done by neokree for the material tabs. This is going to be the better one in here!
Java
153
star
2

hkm-progress-button

Base on android-process-button this is the advanced version of the android-process-button.
Java
118
star
3

KickAssSlidingMenu

I am bringing it back from the good old project sliding menu in the Android Studio. It will be an alternative to the google promoted Drawer Layout.
Java
99
star
4

TagViewLayout

fast manage your TagViewLayouts
Java
73
star
5

ToolBarLib

The total redesigned action bar of your choices πŸ”₯πŸ”₯
Java
64
star
6

unity-interview

sample game for interview
C#
31
star
7

DisqusSDK-Android

This is the simple library for https://disqus.com/ developed on Android.
Java
28
star
8

LongMenu

Easy Setup the dynamic long menu in JAVA Android
Java
12
star
9

slideSelectionList

The viewpager based animated pushed level by level list menu support both multiple and single selection.
Java
11
star
10

DropDownBoxUi

A custom made drop down box Ui for handy use.
Java
2
star
11

LLicenseChecker

The server side license checker developed Lofy
PHP
2
star
12

LicenseModuleChecker-Client-Android

Android client side SDK for software verifications
Java
2
star
13

FacebookSupport

Facebook Scan and Support
PHP
1
star
14

TaxiOneCall

Call Taxi with one check
HTML
1
star
15

SlidrSwipe

An easy Swappable slider activity
Java
1
star
16

mymachineroom

The foundation of the machine room
Python
1
star
17

LayerZeroUsdt

layer zero ready USDT
Python
1
star
18

BaibuMapGradle

Try to make the baidu map on grade
Java
1
star
19

URVSugarOverlay

This is the library to extend and support fast integration and development from the UltimateRecyclerView library
Java
1
star
20

heskCounter

This is the JQ numeric counter for display a list of digits
JavaScript
1
star
21

shoppingcart

the online store on android
Java
1
star
22

parallaxmotion

Its a motion sensor parrallex view
Java
1
star
23

incomplete-game-engine-ship

unity program library and controllers
C#
1
star
24

hkm-meta-box

meta-box-request
PHP
1
star
25

AndroidSlidingPanelAdvanced

Done by umano/AndroidSlidingUpPanel, this is going to be super awesome dancing advance panel that will be so easy to use.
Java
1
star