droidconIN 2016

The sixth edition of droidconIN

Proteus: Android Layout Engine

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

videocam
Preview video

Technical level

Advanced

Section

Full talk (40 minutes)

Status

Confirmed & Scheduled

View proposal in schedule

Vote on this proposal

Login to vote

Total votes:  +84

Abstract

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.

Outline

  • 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

Requirements

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.

Links

Slides

https://speakerdeck.com/adityasharat/proteus-android-layout-engine

Comments

  • 3
    Aishwarya Kumar (@aishwaryakumar) 2 years ago

    This looks interesting !

  • 3
    Rahat Khanna (@mappmechanic) 2 years ago

    This looks very promising.

  • 1
    vinayaka naik (@vinanaik) 2 years ago

    Nice work.

  • 1
    Mohammed Shaiban (@shaiban) a year ago

    Just one word, Amazing.

    • 1
      Aditya Sharat (@adityasharat) Proposer a year ago

      Thank you !! :)

  • 1
    Dinakaran Egrove (@dinak1989) a year ago

    Hi Aditya,

    Whether proteus lib is used in Flipkart Android App??

    • 1
      Aditya Sharat (@adityasharat) Proposer a year ago

      Yes, Flipkart app uses Proteus in production.

  • 1
    Dinakaran Egrove (@dinak1989) a year ago

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

    • 1
      Aditya Sharat (@adityasharat) Proposer a year ago

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

Login with Twitter or Google to leave a comment