Get Android Screen Width and Height Programatically – Kotlin

WindowManager is available to every activiry in android. By using windowmanager we will get screen with and height. To get Android screen width and height programmatically you fallow below steps. Step 1: Create DispalyMetrics() objec. Step 2: Pass the displayMetrics object to getMetrics() method of WindowManager Display class then it will returns the Display object.…

Read More