如何在styles.xml中列出<item name="app:fabSize">[值]</item>?

How to list <item name="app:fabSize">[value]</item> in styles.xml?

我试图将 app:fabSize 包含在 styles.xml 中,但 android 工作室抛出错误

有什么方法可以在 styles.xml 中包含 app:fabSize 和其他 app: 属性吗?

Here is the code for the style tag

在 layout.xml 中添加 Compat 属性时,应使用先前定义的名称空间(实际上不必 app,但应通过 [=13 在 xml 中定义=] - 例如将 hello 作为命名空间也是可能的。无论如何 app 是某种标准)。

<android.support.design.widget.FloatingActionButton
    xmlns:hello="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    hello:fabSize="mini"/>

但在 styles.xml 中使用 Compat 属性时不应该输入任何内容,而是属性名称:

<style name="StyleName">
    <item name="fabSize">mini</item>
</style>