Loyal Native Slider


Source link: https://github.com/jjhesk/LoyalNativeSlider

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

Resources

This is the official conference app for DroidKaigi 2017 Tokyo.

Selectable multi-tab menu.

Mock your datas for Okhttp and Retrofit in json format in just a few moves.

Draw your shapes with minimum effort and configure their color, stroke or even dash effects. Focus only on how you want to construct your shape by describing your Path behavior.

Library for multiple images capture as well as multiple image picker. UX/UI can be styled with any color relative to Material Design. Please do check for the latest version before integrating into your project. Latest version - 1.0.2

Android Marshmallow Permissions integration, Simple and Fast. Check the Github page for more info on how the library works and how to use it.

Java and Kotlin versions available.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes