Git Product home page Git Product logo

circular-image's Introduction

CircularImage

####Description CircularImage is an android library to create a configurable CircularDrawables. It has the following functionalities:

  1. Combines upto 4 bitmaps to create one combined CircularDrawable. Additionally, it supports combination of 2 and 3 bitmaps.
  2. Supports drawing of text, if bitmaps are not available.
  3. Supports drawing of different types of configurable notifications, at any random angle x from horizontal.
  4. Supports badges at a fixed position.
  5. Supports configurable dividers and borders.
  6. Optimised to reduce overdraw.

####Screenshot Alt text Alt text

####Sample Code

CircularDrawable circularDrawable = new CircularDrawable();
circularDrawable.setBitmapOrText(bitmap1, bitmap2);
//Set Notification
circularDrawable.setNotificationDrawer(new CircularNotificationDrawer().setNotificationText("51").setNotificationAngle(135).setNotificationColor(Color.WHITE, Color.RED));
//Set Divider
circularDrawable.setDivider(4, Color.WHITE);
circularDrawable.setBadge(badgeIcon);
circularDrawable.setBorder(Color.BLACK, 4);
//Set the drawable to imageView
imageView.setImageDrawable(circularDrawable)
//Set the overlay arc
circularDrawable10.setOverlayArcDrawer(new OverlayArcDrawer(Color.parseColor("#BB333333"), 30, 120));

For more details, please refer the sample application.

circular-image's People

Contributors

viveksoneja28 avatar

Watchers

James Cloos avatar 정원학 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.