Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to get witdth of window android

// Java
DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
int height = displayMetrics.heightPixels;
int width = displayMetrics.widthPixels;
Comment

PREVIOUS NEXT
Code Example
Java :: read text file java to string 
Java :: jsp import class 
Java :: random item from arraylist 
Java :: javafx dependency 
Java :: how to check if a string contains only alphabets and numbers in java 
Java :: java arraylist 
Java :: java get mouse position on screen 
Java :: starting code of java 
Java :: springboot starter jpa 
Java :: android cardview dependency 
Java :: java byte array to string 
Java :: java selenium new empty window 
Java :: toast java example 
Java :: android round double to 2 decimal 
Java :: java get current date string 
Java :: recyclerview snaphelper callbacks android 
Java :: JFrame Exit oon close Java11 
Java :: java check ipv6 with regex 
Java :: listview refresh android adapter 
Java :: android glide dependencies 
Java :: android temporal navigation 
Java :: java calculate delta time 
Java :: change editext hint color android 
Java :: java get color from string 
Java :: how to constraint layout parm programmatically in android 
Java :: java date to string yyyy-mm-dd 
Java :: how to set view width programmatically in android 
Java :: android how to start a new activity on button click 
Java :: lombok get error in extended classes¨ 
Java :: absolute method in jdbc 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =