ArcProgressStackView


Source link: https://github.com/Devlight/ArcProgressStackView



ArcProgressStackView

Present your progress bars in arc mode with information and total control.

                       

You can check the sample app here.

Download

You can download a .aar from GitHub's releases page.

Or use Gradle:

compile 'devlight.io:arcprogressstackview:1.0.4'

Or Maven:

<dependency>
<groupId>devlight.io</groupId>
<artifactId>arcprogressstackview</artifactId>
<version>1.0.4</version>
<type>pom</type> </dependency>

Or Ivy:

<dependency org='devlight.io' name='arcprogressstackview' rev='1.0.4'>
<artifact name='$AID' ext='pom'></artifact> </dependency>

Android SDK Version

ArcProgressStackView requires a minimum SDK version of 8, but if you want animation and shadow support it requires a minimum SDK version of 11.

Sample

Parameters

For APSV you can set such parameters as:

  • models:
    allows you to set APSV models, where you set title, progress and colors. Can be set up only via code.

  • animation:
    allows you to animate progress with func call or with touch event.

  • shadow:
    allows you to add shadow to your progress models, but remember, the shadow need LAYER_TYPE_SOFTWARE, so it decrease FPS.

  • round corners:
    allows you to set round corners to models.

  • drag/seek:
    allows you to make your progress model seek like.

  • typeface:
    allows you to set custom typeface.

  • text color:
    allows you to set text(title and progress indicator) color.

  • shadow distance:
    allows you to set shadow distance.

  • shadow angle:
    allows you to set shadow angle.

  • shadow radius:
    allows you to set shadow radius.

  • shadow color:
    allows you to set shadow color.

  • animation duration:
    allows you to set animation duration.

  • animation listener:
    allows you to set animation listener.

  • interpolator:
    allows you to set interpolator to animation.

  • draw width:
    allows you to set draw width in fraction mode(e.g. 55%) or dimension mode.

  • model offset:
    allows you to set model offset(positive or negative).

  • model background:
    allows you to set model background track from start angle to sweep angle.

  • start angle:
    allows you to set start angle of models.

  • sweep angle:
    allows you to set sweep angle of models.

  • progress indicator orientation:
    allows you to set progress indicator orientation.

  • preview colors:
    allows you to set preview colors, which generate count of models equals to count of colors.

  • preview background:
    allows you to set models background preview color.

Tips

All angle variables can only be positive and be in range from 0 to 360 degrees.
The size of View automatically set up in square mode.

Init

Check out in code init:

final ArrayList<ArcProgressStackView.Model> models = new ArrayList<>();
 models.add(new ArcProgressStackView.Model("Circle", 25, bgColors[0], mStartColors[0]));
 models.add(new ArcProgressStackView.Model("Progress", 50, bgColors[1], mStartColors[1]));
 models.add(new ArcProgressStackView.Model("Stack", 75, bgColors[2], mStartColors[2]));
 models.add(new ArcProgressStackView.Model("View", 100, bgColors[3], mStartColors[3]));
  final ArcProgressStackView arcProgressStackView = (ArcProgressStackView) findViewById(R.id.apsv);
 arcProgressStackView.setModels(models);

Other methods check out in sample.

And XML init:

<<devlight.io.library.ArcProgressStackView
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  app:apsv_rounded="true"
  app:apsv_shadowed="true"
  app:apsv_animated="true"
  app:apsv_dragged="true"
  app:apsv_leveled="true"
  app:apsv_typeface="fonts/agency.ttf"
  app:apsv_text_color="#fff"
  app:apsv_shadow_distance="5dp"
  app:apsv_shadow_angle="90"
  app:apsv_shadow_radius="10dp"
  app:apsv_shadow_color="#000"
  app:apsv_animation_duration="1000"
  app:apsv_interpolator="@android:anim/bounce_interpolator"
  app:apsv_draw_width="75%"
  app:apsv_model_offset="5dp"
  app:apsv_model_bg_enabled="true"
  app:apsv_start_angle="270"
  app:apsv_sweep_angle="360"
  app:apsv_indicator_orientation="vertical"
  app:apsv_preview_colors="@array/default_preview"
  app:apsv_preview_bg="#ccc"/>

Getting Help

To report a specific problem or feature request, open a new issue on Github.

Credits

Ron Evgeniy Virgil Pana Gleb Kuznetsov

Author

Created by Basil Miller - @gigamole

Company

           

Created by Basil Miller - @gigamole

Here you can see open source work developed by Devlight LLC.
This and another works is an exclusive property of Devlight LLC.

If you want to use this library in applications which will be available on Google Play, please report us or author of the library about it.

Whether you're searching for a new partner or trusted team for creating your new great product we are always ready to start work with you.

You can contact us: [email protected] or [email protected].
Thanks in advance.

Devlight LLC, 2016
devlight.io

Resources

A simple API that cleanly registers pending intent for location updates from Google location api. Using Recon and FlankLocation annotation the location update registration using pending intent is made easier, This still supports dynamic location request at runtime by accepting it as parameter when registering for location updates.

AndroidPermissionsUsage is an IntelliJ IDEA (and Android Studio) plugin designed to find the usage of the permissions defined in an Android application.

A highly configurable library to do loading progress with animated balls.

RxPaper is a RxJava wrapper for the cool paper library, a fast NoSQL data storage for Android that lets you save/restore Java objects by using efficient Kryo serialization and handling data structure changes automatically.

A small library to make easy connect to a REST webservice.

A way to MVVM using RxJava with new Android databinding.

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