Android形状在LG设备上不起作用
我有这个可绘制的xmlAndroid形状在LG设备上不起作用,android,Android,我有这个可绘制的xml <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:bottomRightRadius="5dp" android:bottomLeftRadius="5dp" android:topLeftRadius="5dp" android:topR
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:bottomRightRadius="5dp"
android:bottomLeftRadius="5dp" android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
<solid android:color="#000000" />
<stroke android:width="1dip" android:color="#ffffff"/>
<gradient android:startColor="#00000000" android:endColor="#00000000"
android:angle="270" />
</shape>
我把这个抽屉放在线性布局上
<LinearLayout android:id="@+id/llTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/back_rounded"
android:paddingLeft="5dp"
android:paddingRight="2dp">
一切正常。除了在一些运行其库存ROM的LG设备上。形状应该是透明的,但在LG上,形状填充白色块颜色
怎么了?什么是替代方案
谢谢请尝试从以下位置设置
:
<solid android:color="#000000" />
致:
(在纯色上设置alpha值)
在LG Optimus LTE 2上测试。您好,您找到解决方案了吗?我也有这个问题,但是所有的事情都有很大的背景!
<solid android:color="#00000000" />