Reputation: 51
I am trying to get the screen dimensions or density this way:
Display mdisp = getWindowManager().getDefaultDisplay();
Point mdispSize = new Point();
mdisp.getSize(mdispSize);
int maxX = mdispSize.x;
int maxY = mdispSize.y;
The problem is that the maxY contains the navigation bar so my bitmap background is under the navigation bar.
How can I get the maxY without navigation bar height?
Upvotes: 1
Views: 62
Reputation: 3764
You can get the height of the parent view:
view.getHeight()
and use it.
Upvotes: 1