How do i make my background image to fill the width 100% when i have
win.showNavBar();When i try
win.hideNavBar();it fills fine. But now i got like 10dp on both sides left.
What to do?
Not being 100% sure what you're dealing with... I think you might need to go over the dimension (sizes) of the UI elements you have on the window.
Just for reference purposes, let me jot down iPhone's default (non-retina) UI element sizes.
- Status Bar : 320px * 20px (portrait mode)
- Navigation Bar : 320px * 44px (portrait mode)
- Tab Bar Height : 49px
And the above dimension would leave you with a 320px * 367px sized window to work with.
Think you can help? Login to answer this question!