Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.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_Android Drawable_Android Shape - Fatal编程技术网

Android中形状的可绘制资源中实体的默认颜色是什么?

Android中形状的可绘制资源中实体的默认颜色是什么?,android,android-drawable,android-shape,Android,Android Drawable,Android Shape,形状的可绘制资源中实体的默认颜色是什么 #1 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1dp" android:color="@android:colo

形状的可绘制资源中实体的默认颜色是什么

#1

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <stroke
        android:width="1dp"
        android:color="@android:color/black" />
</shape>

#2

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <stroke
        android:width="1dp"
        android:color="@android:color/black" />
    <solid
        android:color="@android:color/transparent" />
</shape>

如果我像#1那样编码,那么实体属性的默认颜色是什么

我认为默认颜色是#00000000(这是透明颜色)

#1#2之间有什么区别吗