Coder Social home page Coder Social logo

android-square-progressbar's Introduction

android-square-progressbar

square image

First things first

My post about the update 1.1.0 : http://www.signer.pro/android-square-progressbar-v-1-1-0/

My post about the initial version 1.0 : http://www.signer.pro/android-square-progressbar/

Example application: https://play.google.com/store/apps/details?id=net.yscs.android.square_progressbar_example

Get it on Google Play

General idea

Sometimes you dont have enough space in your layout to display a progressBar. So this library gives you a new approach. You can simply display a progressbar in a colour/color you want around an image.

This library is in an early state, but with your feedback it only can get better. So feel free to submit new feature request and report bugs.

Examples

Here are some examples how these progressBars could look like:

rectangular image rectangular image

How to use it?

SquareProgressBar squareProgressBar = (SquareProgressBar) findViewById(R.id.squareprogressbar);
squareProgressBar.setImage(R.drawable.city);
squareProgressBar.setColor("#C9C9C9");
squareProgressBar.setProgress(32);
squareProgressBar.setWidth(8);

Colour / Color

(http://en.wikipedia.org/wiki/American_and_British_English_spelling_differences#-our.2C_-or)

There are 3 possibilities to set the colour of the progressbar:

squareProgressBar.setColor("#C9C9C9");

squareProgressBar.setColorRGB(112, 13, 119);

squareProgressBar.setHoloColor(color.holo_blue_dark);

android-square-progressbar's People

Contributors

mrwonderman avatar

Watchers

haikuowuya avatar

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.