by Vinay S Shenoy (@vinaysshenoy) on Friday, 17 October 2014

+10
Vote on this proposal
Status: Confirmed & Scheduled
View session in schedule
Section
UI - crisp talks

Technical level
Intermediate

Media

Objective

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.

Description

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.

Comments

  • 1
    [-] Anenth Guru (@anenth) 2 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?

    • 1
      [-] Vinay S Shenoy (@vinaysshenoy) 2 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.

  • 1
    [-] Sriram Ramani (@sriramramani) 2 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.

    • 1
      [-] Vinay S Shenoy (@vinaysshenoy) 2 years ago (edited 2 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 with Twitter or Google to leave a comment