[TIMOB-25384] Android: extendBackground extends the screen below soft system navigation
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-11-13T21:01:39.000+0000 |
| Affected Version/s | Release 6.2.0 |
| Fix Version/s | Release 7.0.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Prashant Saini |
| Assignee | Yordan Banev |
| Created | 2017-10-11T15:03:35.000+0000 |
| Updated | 2017-11-15T05:57:37.000+0000 |
Description
Setting 'extendBackground' to _true_ extends the screen not only behind the StatusBar, but also behind the software system navigation buttons on devices with one.
Test case:
*index.xml*
<Alloy>
<Window title="My Test App" backgroundColor="gray" customToolbar="toolbar">
<Toolbar
id="toolbar"
title="MyMenu"
subtitle="Subtitle"
width="Ti.UI.FILL"
top="0"
barColor="#639851"
extendBackground= "true"/>
</Window>
</Alloy>
Attachments
| File | Date | Size |
|---|---|---|
| extended.png | 2017-10-11T15:06:13.000+0000 | 89816 |
PR: https://github.com/appcelerator/titanium_mobile/pull/9524
Ti.UI.Window should also have
extendBackgroundproperty so that window can be extended on *Windows* not having *Toolbar*. This will provide total control on when to extend background & on which component it has to be extended.FR Passed. Waiting for merge to get enabled.
Changes are seen in SDK 7.0.0.v20171114202841.