height - android Navigation Bar hiding and persantage of usable screen overlap -


my problem persantage of usable screen . application working ı assume if ı change dimension of screen (for example galaxy s8+) down.

this how working fine

enter image description here strong text

and wrong one

enter image description here

the problem related navigationbar. tried set machparent params , use programmatically displaymetrics metrics = this.getresources().getdisplaymetrics(); width = metrics.widthpixels; height = metrics.heightpixels - utils.getstatusbarheight(getcontext()); code. not working in galaxy s8+ when hide navigationbar. can me fold?

edit. mean height of screen doesnt work.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -