MyDynamicRecyclerView


Source link: https://github.com/developerVatsal/MyDynamicRecyclerviewExample

MyDynamicRecyclerViewLibrary

This is an Android Library for developer to use customized recyclerview with many features, like easy use Empty view, Refresh view, Floating Action Button, Load more. So all these features contain in one recyclerview.
Example is avilable in app module.

##Download

###Gradle dependency:

  • Add the following to your project level build.gradle:
allprojects {
  repositories {

...
maven {
 url "https://jitpack.io" 
}
  
}
 
}
 
  • Add this to your app build.gradle:
dependencies {
  compile 'com.github.vatsaldesai92:MyDynamicRecyclerviewLibrary:1.0.2' 
}
 

##Usage

  • Add MyDynamicRecyclerView in xml file or dynamicaly careate in java file.

 <com.desai.vatsal.myrecylerviewlibrary.MyDynamicRecyclerView
android:id="@+id/myRecyclerview"

android:layout_width="match_parent"

android:layout_height="match_parent"/>
 MyDynamicRecyclerView myRecyclerview = new MyDynamicRecyclerView(this);
 
  • Set background & simple divider
 // set background color
  myRecyclerview.setBackgroundColor(Color.RED);
 or  myRecyclerview.setBackgroundColor("#854559");

 // set simple divider true/false , Divider will generate automatically if set SimpleDivider true.
  myRecyclerview.setSimpleDivider(true);
 
  • Use information layout to show information to user, when internet is not avilable, record is not available etc.
 // setInfoIcon(icon, icon_color);

  myRecyclerview.setInfoIcon(R.drawable.ic_warning, "#856245");

// setInfoTitle(text, text_size, text_color, text_typeface);

  myRecyclerview.setInfoTitle("No Internet Available", 18, Color.GRAY, null);

// setInfoMessage(text, text_size, text_color, text_typeface);

  myRecyclerview.setInfoMessage("Please Swipe From Top For Refresh", 14, Color.GRAY, null);

 // Show Information & Hide recyclerview  myRecyclerview.showInfoLayout();

 // Hide Information & Show recyclerview
  myRecyclerview.hideInfoLayout();
  
  • Use SwipeRefresh
 // set SwipeRefresh true/false
  myRecyclerview.setSwipeRefresh(true);

 // set SwipeRefresh colors
  myRecyclerview.setColorSchemeColors(Color.RED, Color.YELLOW, Color.BLACK, Color.GREEN, Color.BLUE);

 // set SwipeRefresh Listener
  myRecyclerview.setOnRefreshListener(new MyDynamicRecyclerView.SwipeRefreshListener() {

@Override

public void OnRefresh() {

  
}

  
}
);

 // stop SwipeRefresh  myRecyclerview.stopSwipeRefresh();
 
  • Use Floating Action Button
 // set Floating Action Button true/false
  myRecyclerview.setFAB(true);

 myRecyclerview.setFABMargins(20, 20, 20, 20);

  myRecyclerview.setFABImage(R.mipmap.ic_launcher);

  myRecyclerview.setFABRippleColor(Color.RED);

  myRecyclerview.setFABBackgroundTintMode(PorterDuff.Mode.DST_OVER);

  myRecyclerview.setFABImageColor("#845654");

  myRecyclerview.setFABBackgroundColor(Color.YELLOW);

 myRecyclerview.setFABOnClickListener(new MyDynamicRecyclerView.FABOnClickListener() {

@Override

public void OnClick() {

  
}

  
}
);
 
  • Use Load More
 // set Load More true/false, if you want to use load more then pass object of LinearLayoutManager which is used in recyclerview
  myRecyclerview.setLoadMore(true, linearLayoutManager);

 // set Load More Listener, when recyclerview reach to it's last cell listener will execulte
  myRecyclerview.setLoadMoreListener(new MyDynamicRecyclerView.LoadMoreListener() {

@Override

public void OnLoadMore() {

}

  
}
);
 

##License


 Apache Version 2.0

Copyright 2016.

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. 

Resources

A simple library to make taking screenshots of your apps.

With the Marshmallow release and the new permissions model, taking screenshots of your applications has become just slightly more complicated as you need to deal with permissions on the run.

This library does it all for you regardless of the device you're running it on.

RxJava2 extensions for Android Databindings library.

Library for inject spherical metadata in photos and videos on Android. Only MP4 and JPEG formats supported.

Alternative for MediaPlayer for music files. Uses ExoPlayer 2 and MediaPlayer for lower APIs.

XmlToJson is an Android Studio Library which converts XML to JSON and JSON to XML.

It is fully configurable and easy to integrate with gradle.

Simple yet powerful SQLite database layer for Android that makes database handling feel like magic.

Overview:

  • Simple, intuitive & typesafe API
  • Minimal setup needed
  • Built in RxJava support with reactive stream semantics on queries and operations
  • Built in AutoValue immutable objects support
  • Full support for complex columns
  • Support for SQLite views
  • Persist any third party object with fully customizable object transformers
  • No reflection
  • Compile time annotation processing
  • Probably the fastest library for Android SQLite database operations (without memory caching)

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