the problem i am facing is that my app is only displayed propertly when this option is set to the minimum otherwise the bottom navigation bar (the one at the bottom with the 3 android action buttons) covers the app (hiding the bottom part of the app)
I am not 100% sure this code will do it as i don’t have my android n device with me but i took the code that was causing the problem and “cleaned it” to just leave the key parts
right but i expect that nothing in my app is covered by the android action bar.
Do you mean that if i have a dockpanel that fills all the screen nothing will be covered by the android action bar but if i have more than one “dock=bottom” it will be covered under certain circumstances? (like: android n)
zaulin@yahoo.com wrote:
right but i expect that nothing in my app is covered by the android action bar.
This is exactly the purpose <BottomBarBackground Dock="Bottom" /> is supposed to solve.
Do you mean that if i have a dockpanel that fills all the screen nothing will be covered by the android action bar but if i have more than one “dock=bottom” it will be covered under certain circumstances? (like: android n)
No.
An empty dockpanel will be partially obscured by both the status-bar and action-bar. And if you add more than one Dock=“Bottom”, everything works as expected.
What I’m saying is that this works for me as-is. Here’s an example that should show what’s going on, and I’ve confirmed that it does the right thing, regardless of the Android N “Display Size”-setting:
<App>
<DockPanel>
<StatusBarBackground Background="#0f0" Dock="Top" />
<BottomBarBackground Background="#f00" Dock="Bottom" IncludesKeyboard="false">
<Text Value="This is behind the action-bar" />
</BottomBarBackground>
<Rectangle Color="#0ff">
<Stroke Width="3">
<SolidColor Color="#f00" />
</Stroke>
</Rectangle>
<Panel Dock="Bottom" Height="30">
<Rectangle Color="#f0f">
<Stroke Width="3">
<SolidColor Color="#0f0" />
</Stroke>
<Text Value="This is docked to the bottom, but visible" />
</Rectangle>
</Panel>
</DockPanel>
</App>
@zaulin: Interesting. It works as expected (not cutting off at the bottom) on my Android N device (Sony Xperia Z5 Compact), so it doesn’t appear to be a general problem with this functionality. But what you’re observing here is clearly not what should happen, and warrants further inspection. If you can tell us what device you experience this problem on, I can see if I can reproduce the issue on the same or a similar device…
@zaulin: Unfortunately, I don’t have access to that specific phone, but as it’s a Nexus-phone, it should run an untainted Android-version, so hopefully this reproduces on another Android 7.1.2 device. My device runs Android 7.0, so that might be the reason for the difference.
But, after looking through the code, I got one small hunch… Does this problem go away if you restart the app after changing the “Display Size”-setting? If so, it might be a logic-error in when we re-compute the height of the bottom-bar…