如何在 AppGyver Supersonic 中设置背景颜色?
How to set background color in AppGyver Supersonic?
我找不到任何关于如何在 AppGyver Supersonic 应用程序中更改 "real" 背景颜色的文档。我可以使用 CSS 设置 body
元素的颜色,但用户在向上或向下拖动屏幕时(在 iOS 中)仍然可以在反弹效果中看到默认的白色。列表组件的背景颜色也是如此,有什么办法可以改变它吗?为列表 div
元素设置 background-color
没有任何作用。
这里是 AppGyver 开发者!在 iOS 上,它可以通过旧版类固醇 API:steroids.view.setBackgroundColor("FF0000")
(和 steroids.view.setBackgroundImage
)获得。 Supersonic API 实现正在等待 Android 对此的支持。
API参考:
http://docs.appgyver.com/en/stable/steroids_Steroids%20Views_steroids.view_view.setBackgroundColor.md.html#steroids.view.setBackgroundColor
http://docs.appgyver.com/en/stable/steroids_Steroids%20Views_steroids.view_view.setBackgroundImage.md.html#steroids.view.setBackgroundImage
我找不到任何关于如何在 AppGyver Supersonic 应用程序中更改 "real" 背景颜色的文档。我可以使用 CSS 设置 body
元素的颜色,但用户在向上或向下拖动屏幕时(在 iOS 中)仍然可以在反弹效果中看到默认的白色。列表组件的背景颜色也是如此,有什么办法可以改变它吗?为列表 div
元素设置 background-color
没有任何作用。
这里是 AppGyver 开发者!在 iOS 上,它可以通过旧版类固醇 API:steroids.view.setBackgroundColor("FF0000")
(和 steroids.view.setBackgroundImage
)获得。 Supersonic API 实现正在等待 Android 对此的支持。
API参考: http://docs.appgyver.com/en/stable/steroids_Steroids%20Views_steroids.view_view.setBackgroundColor.md.html#steroids.view.setBackgroundColor http://docs.appgyver.com/en/stable/steroids_Steroids%20Views_steroids.view_view.setBackgroundImage.md.html#steroids.view.setBackgroundImage