\ app \ build \ intermediates \ incremental \ mergeDebugResources \ merged.dir \ values \ values.xml:8297:AAPT:错误:找不到资源attr / foregroundGravity(aka com.kewzz.movies:attr / foregroundGravity)。< / p> 无法通过在values文件夹上添加attr.xml文件来解决
问题。
<resources>
<declare-styleable name="ForegroundView">
<attr name="foreground" format="color"/>
<attr name="foregroundGravity" format="integer" />
<attr name="foregroundInsidePadding" format="boolean"/>
</declare-styleable>
</resources>