Demo-PercentProgressBar


Source link: https://github.com/natasam/Demo-PercentProgressBar

Demo project with Android library PercentProgressBar.

Inspired by NumberProgressBar, this is Android-PercentProgressBar, circular ProgressBar and line ProgressBar with progress percentage shown.

Library is also available on Android Arsenal.

Use

Try Demo-PercentProgressBar.

Basic implementation:

Example for LineProgress in your xml layout:

<com.natasa.progresspercent.LineProgress

android:id="@+id/line"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_margin="10dp"

app:background_stroke_width="2dp"

app:progress="0"

app:background_color="#9e9e9e"

app:progress_color="@color/colorPrimary"

app:stroke_width="3dp" /> 

or for CircularProgress, just set your values:

<com.natasa.progresspercent.CircularProgress

android:layout_width=""

android:layout_height=""

app:background_stroke_width=""

app:progress="0"

app:background_color=""

app:progress_color=""

app:stroke_width="" /> 

Example to add it directly in activity:

CircularProgress progressBar = new CircularProgress(this);
 //or LineProgress progressBar = new LineProgress(this);
 //and add it to your layout 

Methods for use in activity, for both ProgressBars:

progressBar.setRoundEdge(true);

progressBar.setShadow(true);

progressBar.setTypeface(assetsPathToTypeface);

  progressBar.setBackgroundColor(Color.LTGRAY);

progressBar.setProgressColor(Color.GREEN);

progressBar.setTextColor(Color.BLACK);

progressBar.setTextSize(30);

progressBar.setBackgroundStrokeWidth(10);

progressBar.setProgressStrokeWidth(15);

progressBar.resetProgress();

progressBar.setProgress(0);

progressBar.setOnProgressTrackListener(new OnProgressTrackListener() {

 @Override

 public void onProgressFinish() {

}

  @Override

 public void onProgressUpdate(int progress) {

 
}

}
);
 

Licence

Android-PercentProgressBar Copyright (c) 2015 Natasa Misic

  This program is free software: you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation, either version 3 of the License, or  (at your option) any later version.
This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License for more details.
See <http://www.gnu.org/licenses/>. 

Resources

Plugin which shows you the bugs from your Bugsnag projects + few useful features.

Options:

  • Add, edit bugsnag accounts
  • Show all projects from all accounts
  • Fetch errors of selected project
  • See full stacktrace of the error
  • Double click on the error and go the java class to the right line in the editor
  • Customize view columns

SQLite Model Generator Eclipse plugin allows to generate SQLite models for Android projects using JSON schema file.

android-localization-helper helps to find missing or obsolete translations for android resources.

Usage:

alh.sh /path/to/android/project [arrays.xml]

You must specify android project folder. Second parameter is optional, it specifies resources filename (strings.xml by default).

This plugin generates Android string resource XML files from CSV file. Generation has to be invoked as additional gradle task.

Supported features:

  • non-translatable resources - translatable="false" XML attribute
  • auto-escaping double quotes, apostrophes and newlines
  • auto-quoting leading and trailing spaces
  • syntax validation - duplicated, empty, invalid names detection
  • comments

TokenAutoComplete is a Android Gmail style token auto-complete text field and filter. It's designed to have an extremely simple API to make it easy for anyone to implement this functionality while still exposing enough customization to let you make it awesome.

openpgp-api-lib provides methods to execute OpenPGP operations, such as sign, encrypt, decrypt, verify, and more without user interaction from background threads. This is done by connecting your client application to a remote service provided by OpenKeychain or other OpenPGP providers.

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