Git Product home page Git Product logo

multiprogressbar's Introduction

MultiProgressBar

A progress bar library for Android that provides customized progress bars.

License      Android Arsenal

Built with ❤︎ by Aseem Khare

image             image             image

image             image             image

image             image             image

                                                                image

💻 Installation

Add this in your app's build.gradle file:

dependencies {
  implementation 'com.aseem.versatileprogressbar:MultiProgressBar:1.1.0'
}

❔ Usage

Basic Usage
Minimum SDk version required:23

Put the following at the bottom of your activity layout xml file. Probably inside a parent Relative Layout tag.

 	<com.aseem.versatileprogressbar.ProgBar
        android:id="@+id/myProgBar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
	android:elevation="10dp"
        app:barType="@drawable/bouncy_balls"
        app:text="Please wait..."          
        app:textSize="6sp"		   
        app:enlarge="3"			     
        app:androidtextColor="@color/colorPrimary"/> 

Description

Attribute Name Default Value Description
app:barType bouncy_balls Defines the design of progress bar. All the available designs are mentioned below.
app:text Please wait... The text you want to show below the progress bar.
app:textSize 16sp The size of text you want.
app:enlarge 2 This can range from 1 to 10 and enalrges the size of the progress bar.
app:androidtextColor BLACK This is the color of the text.

Progress Bar Designs

        app:barType="@drawable/bouncy_balls"
	app:barType="@drawable/clock"
	app:barType="@drawable/color_capsule"
	app:barType="@drawable/fidget"
	app:barType="@drawable/gear_duo"
	app:barType="@drawable/hour_glass"
	app:barType="@drawable/infinity_bar"
	app:barType="@drawable/jelly_belly"
	app:barType="@drawable/rainbow_ring"
	app:barType="@drawable/triad_ring"

🎨 Customization and Attributes

You can programatically customize the progress bar using the following methods:

Method Name Description Usage
setScaleType() To set the scale type of progress bar. Default is centerInside. myProgBar.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
setProgressVector() To set the design of progress bar. All the available designs are mentioned above. myProgBar.setProgressVector(getDrawable(R.drawable.bouncy_balls));
enlarge() This can range from 1 to 10 and enalrges the size of the progress bar. myProgBar.enlarge(4);
setTextMsg() The text you want to show below the progress bar. myProgBar.setTextMsg("Loading");
setTextColor() This sets the color of the text below the progress bar. myProgBar.setTextColor(getColor(R.color.colorPrimary));
setTextSize() This sets the size of the text below the progress bar. myProgBar.setTextSize(24);

📃 License

Copyright 2019 Aseem Khare

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.

If you like the library, please click on the ★ Star button at the top 😊

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.