I'm currently working on a app that needs to display a listview of pictures and each picture must take up the entire screen.
I am currently getting the screen resolution and re-sizing the image.
The problem I'm having is with devices that use onscreen button.
how do I take into account the onscreen buttons or how can I find out how much space does the onscreen button take up?
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
height =metrics.heightPixels;
width=metrics.widthPixels;