Droidcon India 2014

Droidcon India’s fourth edition

okulus: Image effects to make your apps stand out

Submitted by Vinay S Shenoy (@vinaysshenoy) (@vinaysshenoy) on Oct 17, 2014

Section: UI - crisp talks Technical level: Intermediate Status: Confirmed & Scheduled


It’s one thing to do Image loading, but another thing altogether to make them look pretty. You would often want to make your app stand out from the rest by adding multiple effects, say borders, rounded corners, circular crops, etc.

The goal of Okulus is to provide Android developers with a drop-in, easy to use method of applying these effects without worrying about performance and memory usage.


When building an application, I was asked to crop the user images to a circular mask. I did find multiple methods online, but they had different limitations; Some required multiple processing of Bitmaps, others created new Bitmap objects, etc.

So I did some research, and implemented a library which does this in the most optimal way possible. The end results are very promising - ZERO overdraw, and NO extra memory usage required to perform the effects.

Okulus can do this for you without breaking a sweat

  • Crop your images into multiple shapes
  • Add borders
  • Soft shadows
  • Lots more

I will be covering how to use okulus to apply nice effects to your apps with minimal effort.

Speaker bio

I’m currently an Android application developer at flipkart, working on the Android eBooks app.

I am an open source enthusiast, and love building great experiences on mobile. I enjoy building things that makes the lives of developers easier.





  • Anenth Guru (@anenth) 5 years ago

    Hi Vinay, Okulus looks like a neat library. Will you be able present this topic as a 40 minute talk? If yes, please outline your talk in bit more detail. Do you think this topic would be suited for a 15 minute crip talk?

    • Vinay S Shenoy (@vinaysshenoy) (@vinaysshenoy) Proposer 5 years ago

      Yes, I was initially planning to talk about the technique used, but what I actually want to do is talk about Okulus. So yes, I’m proposing a 15-minute talk instead.

  • Sriram Ramani (@sriramramani) 5 years ago

    Would you be able to talk about more options? Like using PorterDuff modes, etc. If not, I feel that this topic would be an excellent one for a 15min crip talk.

    • Vinay S Shenoy (@vinaysshenoy) (@vinaysshenoy) Proposer 5 years ago (edited 5 years ago)

      Yes, I have decided to keep it as a 15-minute talk for now. Okulus currently supports only dynamic masking using BitmapShaders, but I hadn’t thought of providing support for static masks using PorterDuff modes. That’s a good idea for the roadmap. Thanks for reminding me about it!

Login to leave a comment