ylliX - Online Advertising Network
Deflating the LayoutInflater (droidcon India)

Deflating the LayoutInflater (droidcon India)


Android developers spend a lot of time writing XML layouts every day. This talk will explain how Android’s LayoutInflater works.

By the end of this talk, you will have an understanding of how XML gibberish gets converted to Views in Java, how AppCompat is able to back-port Material Design for pre-Lollipop devices auto-magically and how libraries like Calligraphy work.

Talk structure

  • What is LayoutInflater
  • How View hierarchies are constructed from XML layouts
  • Why layout inflation is a slow process
  • Why custom Views require fully qualified names in XML
  • How AppCompat back-ports Material Design
  • How the Calligraphy library works
  • Writing your own library that hooks into the inflation process

Cover photo by Aaron Burden.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *