RollingLayout


Source link: https://github.com/JustKiddingBaby/RollingLayout

RollingLayout

Introduction

A view that can rolling automatic within child views list. ?????????????????(?[????])?( ?????)

Demo

Provide four direction rolling mode.

Features

  • Provide four direction for rolling mode.
  • It can be used as FrameLayout.
  • Provide adapter pattern.
  • Provide listener to listen rolling changing action.
  • Provide listener to listen rolling item clicking action.
  • Configure duration of stay for rolling item view.
  • Configure duration of rolling time for item view.

Version

name RollingLayout
latest

Configure

Maven

<dependency>
<groupId>com.justkiddingbaby</groupId>
<artifactId>rollinglayout</artifactId>
<version>the latest version</version>
<type>pom</type> </dependency>

JCenter

First. add to project build.gradle

repositories {

  jcenter() 
}

Second. add to module build.gradle

compile 'com.justkiddingbaby:rollinglayout:the latest version'

Attributes instruction

attribute instruction value
rolling_eachTime duration for rolling animator integer
rolling_pause duration of stay for rolling animator integer
rolling_orientation rolling mode upDown downUp leftRight rightLeft

Function instruction

return function name instruction
void setRollingEachTime(int time) set duration of rolling
void setRollingPauseTime(int time) set duration of stay
void setRollingOrientation(int orientation) set the rolling mode
void setAdapter(BaseAdapter orientation) set the data behind this RollingLayout
void startRolling() start rolling
void stopRolling() stop rolling
void addOnRollingChangedListener(OnRollingChangedListener listener) add a listener to listen RollingLayout rolling changed action.
void addOnRollingChangedListener(OnRollingChangedListener listener) set a listener to listen RollingLayout rolling item click action.

Usage

use in the layout

 <com.jkb.rollinglayout.RollingLayout

 android:id="@+id/rollingleftRight"

 android:layout_width="0dp"

 android:layout_height="wrap_content"

 android:layout_margin="10dp"

 android:layout_weight="1"

 rolling:rolling_eachTime="500"

 rolling:rolling_orientation="leftRight"

 rolling:rolling_pause="1000"/>

Release history

v1.0.1(2017/7/28)

1?alter parent class to ViewFlipper from ViewGroup. 2?add listener for RollingLayout.

v0.1(2017/7/24)

1?release version 0.1.

License

RollingLayout is available under the MIT license. See the LICENSE file for more info.

Resources

Simple full screen image viewer for Fresco library that includes "pinch to zoom" and "swipe to dismiss" gestures.

This library add something for swipe item settling, recover base on the Itemtouchhelper.

Chaining multiple sources with RxJava.

Deal with Android M permissions in runtime in a simple way with reactive programming. This library was developed in Kotlin but can interoperate with Java.

This library is an easy to use series of commands to interact with a hashmap across multiple fragments attached to any running activity. This also allows users to pass information between fragments, without a transaction or bundle.

Endless background scrolling for Android.

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