Android 钛安卓没有为我的观点显示透明的颜色
我有以下index.xmlAndroid 钛安卓没有为我的观点显示透明的颜色,android,titanium,Android,Titanium,我有以下index.xml <Alloy> <Window id="container" title="My App"> <View backgroundImage="/myBackground.jpg"> <Label backgroundColor='rgba(0,0,0,0.5)' text="Hello world!"></Label> </View>
<Alloy>
<Window id="container" title="My App">
<View backgroundImage="/myBackground.jpg">
<Label backgroundColor='rgba(0,0,0,0.5)' text="Hello world!"></Label>
</View>
</Window>
</Alloy>
正如文档所说,这应该为我提供一个半透明黑色背景的Hello World文本。在iOS中运行良好,但在Android上显示完全透明的背景
我试着把它放在一个单独的tss文件中,但仍然是同一个问题。有什么想法吗 由于某些原因,Tianium版本的android编译无法与颜色的rgba()语法配合使用。请尝试十六进制版本:
<Alloy>
<Window id="container" title="My App">
<View backgroundImage="/myBackground.jpg">
<Label backgroundColor='#50000000' text="Hello world!"></Label>
</View>
</Window>
</Alloy>