How to create auto adapter screen resolution UI