AndroidAutoSize
A low-cost Android screen adaptation solution.
Overview
Pixel 2 XL | 1440 x 2880 | 560dpi:
Pixel XL | 1440 x 2560 | 560dpi:
Nexus 5X | 1080 x 1920 | 420dpi:
Nexus 4 | 768 x 1280 | 320dpi:
Nexus S | 480 x 800 | 240dpi:
Download
Usage (just one steps)
Step 1
- Initialize in AndroidManifest:
Advance (see demo)
- Customize the adaptation parameters of the Activity:
- Cancel the adaptation of the Activity:
ProGuard
-keep class me.jessyan.autosize.** { *; }
-keep interface me.jessyan.autosize.** { *; }