Answer the question
In order to leave comments, you need to log in
How to find out screen width (android)?
Display display = getWindowManager().getDefaultDisplay();
game_area_params.height = game_area_width = game_area_height = game_area_params.width = display.getWidth();
"display.getWidth()" - this method is deprecated, but I can't find another solution. Tell me how to get the screen width in modern programming for the android platform?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question