AndroidAutoSize is a screen adaptation library for Android that automatically scales layout dimensions and view sizes across different screen resolutions. It functions as an automatic layout scaler and view dimension manager, ensuring that user interface proportions remain consistent by referencing a base design dimension.
The library allows developers to define screen measurements using alternative units such as millimeters, inches, or points instead of standard density-independent pixels. It includes capabilities for custom dimension overrides, enabling the scaling process to be disabled or modified for specific screens to meet unique layout requirements.
The system manages responsive layouts by calculating scale factors based on design ratios and intercepting view layout parameters during inflation. It also maps static design specifications to physical device hardware density through unit-conversion mapping.