[TIMOB-19190] Android: Material Theme - 9 patch splash not displayed correctly
| GitHub Issue | n/a |
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2015-07-09T07:07:31.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | n/a |
| Reporter | Shawn Lan |
| Assignee | Ingo Muschenetz |
| Created | 2015-07-08T01:30:01.000+0000 |
| Updated | 2017-03-24T17:41:07.000+0000 |
Description
Attached background.9.png is a simple 9 patch splash screen. Put it into the density folders:
{appname}/platform/android/res/drawable-mdpi/
{appname}/platform/android/res/drawable-hdpi/
{appname}/platform/android/res/drawable-xhdpi/
{appname}/platform/android/res/drawable-xxhdpi/
Run the app using Material Theme with SDK 4.0.0 on Android 5.0, you'll see the splash screen come out like result.png (black spots).
Attachments
If I add the optional padding box to the 9 patch png, the issue will be gone.
This is not a bug but a new (not clearly documented) requirement on Android 5.0+ to have padding box on nine-patch. I'll soon do a blog post about it.
Closing ticket as invalid with reference to the above comments.