PageLoader


Source link: https://github.com/arieridwan8/pageloader

PageLoader

PageLoader is a simple android library for loading page with easy customization. Built by Arie Ridwansyah.

Setup

Add PageLoader to your dependencies block:

dependencies {

  compile 'id.arieridwan:pageloader:0.0.2' 
}

Usage

PageLoader

Add a PageLoader to your layout just like any other view.

<id.arieridwan.lib.PageLoader
  android:id="@+id/pageloader"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

Define the action to load the page or displaying error page on the event

SomeMethod(){
 pageLoader.startProgress();
 ...
  onComplete(){

...
  
}

  onNext(){

...

pageLoader.stopProgress();

  
}

  onError(){

...

pageLoader.stopProgressAndFailed();

  
}
 
}

Set onClickListener when error page is displayed

pageLoader.setOnRetry(new View.OnClickListener() {

 @Override

 public void onClick(View view) {

  pageLoader.startProgress();

 
}

}
);

You can easily customize the text for loading page or when displaying the error page then change the dimensions with following attribute

app:setLoadingText="Please wait..." app:setErrorText="Something happened" app:setTextColor="@color/black" app:setTextSize="16sp"

Or you can change the image for loading or error page and set the dimensions of the image

app:setLoadingImage="@drawable/ic_search" app:setErrorImage="@drawable/ic_not_found" app:setLoadingImageHeight="64dp" app:setLoadingImageWidth="64dp" app:setErrorImageHeight="64dp" app:setErrorImageWidth="64dp"

  

And also you can change the animation mode

app:setLoadingAnimationMode="rotate" app:setLoadingAnimationMode="flip" app:setLoadingAnimationMode="vibrate" app:setLoadingAnimationMode="shake" app:setLoadingAnimationMode="bounce"

And then, you can using custom animation or custom font

pageLoader.setCustomAnimation(myAnimation);
 pageLoader.setCustomFont(myTypeface);

Screenshot

To Do

  • setDefaultFontEnabled
  • setLoadingProgressModeEnabled

Credits

Arie Ridwansyah

License

PageLoader is under Apache License 2.0.

Resources

Autocomplete adds simple yet powerful autocomplete behavior to EditTexts, to avoid working with the infamous MultiAutoCompleteTextView APIs.

Features

  • Define a AutocompletePolicy to listen to text events
  • Popup is automatically shown
  • Query text passed to AutocompletePresenter
  • List shown in a recycler view
  • Built in support for @usernames, #hashtags and similar

Simple library to apply custom font in android text: TextView, EdiText and Button.

It is an example to implement an Horizontal picker with the Leftmost element selected.

A simple, material design multi-contact picker using RecyclerView and Alphabetical Fast Scrolling! The picker will read the device contacts (REMEMBER: Runtime permissions for retrieving contacts) and allow you to select 1-many and return them in a convenient list. Great for apps that wish to allow users to import from their contacts and/or invite their friends all at once.

Note: The contacts will always have the first letter gmail-style avatars, contact photos are not used at this time.

Clean Architecture with Dagger2 + Retrofit2 + Picasso.

This repo contains demo module which retrieves characters from Star wars API.

Highlights every View which inherits TextView (i.e. TextView, Button, EditText). Set targets and Colors. Then highlight any word.

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