平板上的应用,使用“?android:attr/colorPrimary”属性问题,按理说应该根据系统主题颜色而改变,但是现实却总是黑色,求解
具体代码如下:
<ImageView
android:id="@+id/actionbar_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:background="?android:attr/colorPrimary"/>
现在的情况是actionbar的颜色是可以随着系统主题变色的,但是这个ImageVIew的颜色却一直不变,求解