Tag

LayoutInflater

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 9, 2024 · Mobile Development

Understanding Android LayoutInflater: Usage, inflate Methods, Factory and Factory2

This article explains how Android's LayoutInflater converts XML layout files into View objects, demonstrates the various ways to obtain and use a LayoutInflater, details the overloads of the inflate method, and shows how to customize view creation with Factory and Factory2 interfaces, including practical code examples.

AndroidFactory2Kotlin
0 likes · 20 min read
Understanding Android LayoutInflater: Usage, inflate Methods, Factory and Factory2
Sohu Tech Products
Sohu Tech Products
Dec 28, 2022 · Mobile Development

Android Plugin‑Based Skinning: Implementation Principles and Framework Analysis

This article explains how to implement Android plugin-based skinning by defining a skinning interface, customizing LayoutInflater.Factory2, loading external skin resources, and analyzing the Android‑skin‑support library’s code, providing a clear step‑by‑step guide for mobile developers.

AndroidKotlinLayoutInflater
0 likes · 12 min read
Android Plugin‑Based Skinning: Implementation Principles and Framework Analysis
Xiaohongshu Tech REDtech
Xiaohongshu Tech REDtech
Dec 7, 2022 · Mobile Development

Optimizing Android Layout Inflation with Layout2Code: An APT‑Based Approach

The team created Layout2Code, an APT‑based generator that translates XML layouts into Kotlin code at build time—handling merge and include tags and supporting custom Views—cutting homepage layout inflation by over 200 ms, boosting performance metrics while requiring far less maintenance than traditional X2C solutions.

APTAndroidKotlin
0 likes · 7 min read
Optimizing Android Layout Inflation with Layout2Code: An APT‑Based Approach
Sohu Tech Products
Sohu Tech Products
Jun 2, 2021 · Mobile Development

Comprehensive Guide to Android Skinning and Theme Switching

This article provides an in‑depth overview of Android skinning, covering UI specifications, product‑level thinking, code implementations, dynamic refresh mechanisms, layout inflation interception, skin package loading strategies, performance optimizations, and future directions such as drawable skinning and Material You integration.

AndroidLayoutInflaterSkinning
0 likes · 18 min read
Comprehensive Guide to Android Skinning and Theme Switching
JD Retail Technology
JD Retail Technology
May 22, 2020 · Mobile Development

Optimizing Android Layout Inflation with AsyncLayoutInflater: Analysis and Implementation

This article examines the performance bottlenecks of Android's LayoutInflater, analyzes its source code and loading process, and demonstrates how to use AsyncLayoutInflater to off‑load layout inflation to a background thread, resulting in measurable UI frame‑time improvements.

AndroidAsyncLayoutInflaterLayoutInflater
0 likes · 13 min read
Optimizing Android Layout Inflation with AsyncLayoutInflater: Analysis and Implementation