iReaderAndroid/X2C
Increase layout loading speed 200% observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2933
- days_rel: n/a
- days_push: 2063
- n_releases_24m: 0
Adoption not part of the score
2580 stars · 254 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
X2C is an Android library that translates XML layouts into equivalent Java code at compile time using APT and JavaPoet, so runtime layout inflation skips XML parsing and reflection. Developers keep writing XML layouts but load them via X2C.setContentView/X2C.inflate, reportedly cutting load time by ~200%.
Use cases
- speed up android layout inflation
- avoid xml parsing overhead at runtime
- keep xml layouts but load java code instead
- reduce layout loading time in android app startup
- replace layoutinflater inflate with faster alternative
When to choose
- android apps with layout-heavy screens where inflation time matters
- teams wanting xml maintainability with java-level load performance
When to avoid
- non-android projects
- projects needing actively maintained dependencies or a clear license
- teams unwilling to adopt annotation processors and custom attribute configs
Facets
library · maturity maintenance
build-tool developer-tools ui-components mobile-development android-tools performance developer-tools jvm android-layout annotation-processor xml-to-java compile-time-codegen layout-inflation android
2 sources
- readme: https://github.com/iReaderAndroid/X2C · fetched 2026-08-28 · 85ccb81dc294
- homepage: https://www.jianshu.com/p/c1b9ce20ceb3 · fetched 2026-08-29 · addd9d13c622
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| iReaderAndroid/X2C | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="iReaderAndroid/X2C")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem