GoogleChromeLabs / svgomg-twa

A sample that project Trusted Web Activities technology to wrap SVGOMG in an Android Application
Apache License 2.0
519 stars 132 forks source link

Not able to put a svg gradient as TWA splash screen background. #44

Closed momoproject closed 4 years ago

momoproject commented 5 years ago

I'm not sure if this is even possible, but is there some way to do it?

<meta-data
android:name="android.support.customtabs.trusted.SPLASH_SCREEN_BACKGROUND_COLOR"
android:resource="@color/backgroundColor"/>

Being, @drawable/gradient instead of @color/backgroundColor, I did this but didn't worked, the app just throws an error, I asked this on Stack too, but didn't got an answer, so I thought on asking here, it would be good as an enhacement.

image

andreban commented 4 years ago

Created this issue on bugs.chromium.org to track this as a feature request. Closing the issue here in favour of that one.