Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 钛安卓没有为我的观点显示透明的颜色_Android_Titanium - Fatal编程技术网

Android 钛安卓没有为我的观点显示透明的颜色

Android 钛安卓没有为我的观点显示透明的颜色,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>

我有以下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>
    </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>