how to write the code that read the size of the screen. i have 4 different layout, “layout”, “layout-land”, “layout-large”, and “layout-large-land”
every one of the layout i need to write a different code for each of them, for example at the “layout” , i have this code imagebutton1.setVisibility(View.VISIBLE); , but at the landscape screen, i have remove the imagebutton1. so i plan to if else statement, but i duno how to determine the size of the screen by using android java, need some guide here.
Technically, you could just do something like this:
Otherwise you can use: