CircularProgressView


Source link: https://github.com/nomad5modules/CircularProgressView

CircularProgressView

A circular progressview for android

About

This is a simple small class that renders a progress in form of an filling arc shape. A progress text can be rendered additionally. This text is rendered in the secondary color for the 'done' area of the arc.

I used it for rendering the progress that is done in the background of all views. This view has no dependencies.

It also supports a custom font (that is places in the 'assets' directory) and fading of the progress view (even though I recommend setting the 'fadeTime' value to -1 and use a Fragment with a FragmentTransation to fade this view in and out).

All values are optional. If you want to reuse the view from the code, simply set the class members in the CircularProgressView class accordingly.

XML Attributes

Following XML attributes are allowed

<momentum.circularprogressview.CircularProgressView  progressColor=  "#FFFFFF"  progressText=  "TEST PROGRESS  #VAL#"  progressTextFont= "consolab.ttf"  progressTextSize= "36"  borderOffset=  "150"  fadeTimeMs=
"500" />

progressColor:

The main color of the progress ARC. The text will be rendered in this color where the arc is not yet painted.

progressText:

The Text to be rendered. Add #VAL# to the text in order to automatically add a interger value to the progress text.

progressTextFont:

An optional ttf or otf font. This font hast to be in the "assets" directory.

progressTextSize:

The font size

borderOffset:

Optional border offset, next iteration will kick this, its just a fix to fill the corners ( will be deprecated in next version)

fadeTimeMs:

The fade in and fade out time, can be set to -1 to ignore fading

Example Application

Gradle include from jCenter

You can add it also via

// The dependencies dependencies {

  /* the circular progress view */
  compile 'com.nomad5:circularprogressview:1.3.1' 
}

This works with jCenter and mavenCentral.

Precompiled AAR

You can download the latest precompiled version here https://dl.bintray.com/mlostek/maven/com/nomad5/circularprogressview/1.3.1/circularprogressview-1.3.1.aar

Additional information

  • Set the progress to 0 (at the beginning) and 1 (at the end).
  • 'wrapcontent' for dimensions is not yet supported
  • Call setProgress with additional interpolation time (in ms) in order to interpolate between progress values

License

Check file LICENSE and Make sure to follow the licensing terms and conditions of the project and the software used to build the project.

Feedback

If you have any questions or feedback, feel free to get back to me!

Next Todo's

  • nothing on the list. Any suggestions?

Resources

Tiny library with ability to provide support for infinite paginated scrolling in RecyclerView. It is able to show loading & try again layout at the bottom of the list.

ShareLoginLib likes simple sharesdk or umeng in China . It is a tool to help developers to share their content (image , text or music ) to WeChat,Weibo and QQ.

IntentBuilder is a type safe way of creating intents and populating them with extras. Use them with your Activities and Services.

A button that shows custom drawables when entering a loading state.

Twitter Kit is a multi-module gradle project containing several Twitter SDKs including TweetComposer, TwitterCore, and TweetUi. It is built on the Fabric platform and uses many shared components.

This is An Easy Android Crash Handle Library. You can use it to collect crashes and store them on phone or send to server.

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