java.lang.RuntimeException: A TaskDescription's primary color should be opaque
作者:互联网
android开发中,当theme的colorPrimary,colorPrimaryDark,colorAccent等涉及到颜色的属性使用了透明度,就会报错
java.lang.RuntimeException: A TaskDescription's primary color should be opaque
例,白色使用了透明度
<item name="colorPrimary">#00FFFFFF</item>
将其改成
<item name="colorPrimary">#FFFFFF</item>
设置属性
<item name="android:windowIsTranslucent">true</item>
标签:lang,java,opaque,color,RuntimeException,primary,should 来源: https://www.cnblogs.com/ice5/p/15855637.html