Read More
Read now

How to get the screen width and height in android

Save

In this small blog,
We will show you the simple methods to get your screen width and height in pixels as well as in dp.

Screen width or height in pixels

If you have used this method in an Activity,

If you’re not in an Activity you can get the default Display via WINDOW_SERVICE

 

Screen width or height in dp

 

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!

Deniel Kerr

Owner and Founder. Opencart

Talk to Sales
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home