SimpleArcLoader


Source link: https://github.com/generic-leo/SimpleArcLoader

SimpleArcLoader

  • bored of seeing the same old Android Loader ? SimpleArcLoader is one thing you should try.

Preview

Setup

Gradle

  dependencies {

 compile 'com.leo.simplearcloader:simplearcloader:1.0.+'

}

Example 1

To show dialog

SimpleArcDialog mDialog = new SimpleArcDialog(this);
 mDialog.setConfiguration(new ArcConfiguration(this));
 mDialog.show();

Example 2

Making use of just the Loader

<com.leo.simplearcloader.SimpleArcLoader
android:visibility="visible"
android:id="@+id/loader"
android:layout_centerInParent="true"
android:layout_width="60dp"
android:layout_height="60dp"
custom:arc_style="simple_arc"
custom:arc_speed="medium"
custom:arc_margin="3dp"> </com.leo.simplearcloader.SimpleArcLoader>

Example 3

Customizing Dialog/SimpleArcLoader View using ArcConfiguration

ArcConfiguration configuration = new ArcConfiguration(context);
 configuration.setLoaderStyle(SimpleArcLoader.STYLE.COMPLETE_ARC);
 configuration.setText("Please wait..");
  // Using this configuration with Dialog  mDialog.setConfiguration(configuration);
  // Using this configuration with ArcLoader mSimpleArcLoader.refreshArcLoaderDrawable(configuration);

You can customize Arc/Dialog with ArcConfiguration methods -

  • setLoaderStyle(SimpleArcLoader.STYLE mLoaderStyle)
  • setArcMargin(int mArcMargin)
  • setArcWidthInPixel(int mStrokeWidth)
  • setColors(int[] colors)
  • setTypeFace(Typeface typeFace)
  • setText(String mText)
  • setTextColor(int mTextColor)
  • setTextSize(int size)
  • setAnimationSpeedWithIndex(int mAnimationIndex) Values to be passed SimpleArcLoader.SPEED_SLOW, SimpleArcLoader.SPEED_MEDIUM, SimpleArcLoader.SPEED_FAST

Please refer the examples for some of the customization.

Developed By

License

Copyright 2016 Prathamesh Sawant

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

Couchbase-Lite-Android is a lightweight embedded NoSQL database engine for Android with the built-in ability to sync to Couchbase Server on the backend.

It is the Android port of Couchbase Lite iOS.

Android Widget to show circular counters.

Grocery Sync for Couchbase Lite Android.

An example app that uses the Couchbase Lite Android mobile database framework.

Easy Rating Dialog provides a simple way to display an alert dialog for rating app.

Default conditions to show:

  • User opened the app more than 5 times
  • User opened the app after 7 days of first opening.

Helper library about Showing and stopping a progress in the ActionBar.

Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.

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