droidconIN 2016

The sixth edition of droidconIN

Proteus: Android Layout Engine

Submitted by Aditya Sharat (@adityasharat) on Aug 8, 2016

Section: Full talk (40 minutes) Technical level: Advanced Status: Confirmed & Scheduled


Proteus is meant to be a drop-in replacement for Android’s LayoutInflater; but unlike the compiled XML layouts bundled in the APK, Proteus inflates layouts at runtime. This talk will focus on why we built Proteus and how it helped us perform A/B tests and build custom brand pages without any App release.
With Proteus, you can control your Apps layout from the backend (no WebViews). Forget the boilerplate code to findViewById, cast it to a TextView, and then setText(). Proteus has runtime data bindings and formatters. Plugin in your own custom views and attributes and formatters.


  • What are we trying to solve, and why?
  • LayoutInflater, and how it doesn’t work.
  • How Proteus works.
  • Forget findViewById and setText.
  • What you can achieve.
  • There are others out there; kind of


Intermediate knowledge of the Android Framework

  • XML layout and LayoutInflater
  • Building and deploying Android apps.

Speaker bio

Aditya is a Software Development Engineer at Flipkart. He is part of the team which build Proteus. He works on developing libraries, frameworks and tools to promote decoupling, abstraction, code reusability, extensibility, and stability. He is also a full-stack Web Developer specializing in development of high-performance web applications.




Preview video



  • Aishwarya Kumar (@aishwaryakumar) 3 years ago

    This looks interesting !

  • Rahat Khanna (@mappmechanic) 3 years ago

    This looks very promising.

  • vinayaka naik (@vinanaik) 3 years ago

    Nice work.

  • Mohammed Shaiban (@shaiban) 3 years ago

    Just one word, Amazing.

    • Aditya Sharat (@adityasharat) Proposer 3 years ago

      Thank you !! :)

  • Dinakaran Egrove (@dinak1989) 3 years ago

    Hi Aditya,

    Whether proteus lib is used in Flipkart Android App??

    • Aditya Sharat (@adityasharat) Proposer 3 years ago

      Yes, Flipkart app uses Proteus in production.

  • Dinakaran Egrove (@dinak1989) 3 years ago

    For Flipkart Home page have you used proteus to render dynamic layout??? or its webview

    • Aditya Sharat (@adityasharat) Proposer 3 years ago

      That is native, the homepage is built on another in house framework.

  • Dimple Agola a year ago

    Hello, Aditya your proteus example is very nice. I understood all parts.
    But my question is when I set text or button in json .After I want to json to fetch buttonname or textname then click event perform. .How to manage click event .????

Login to leave a comment