3

私はアプリ含めることを試みた:fabSizeと他のアプリ::のstyles.xmlの属性アプリを含めるどのような方法がありますのstyles.xmlにfabSizeをしかしアンドロイドスタジオはエラーstyles.xmlに<item name = "app:fabSize"> [value]</item>を表示するにはどうすればいいですか?

enter image description here

を投げましたか?

Here is the code for the style tag

+2

<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"/> 

しかしcompatの一つが何かを置くべきではない属性を使用しますが、属性名にするのstyles.xmlで

'。 – Blackbelt

答えて

3

COMPATを加えること一つは(それが実際appである必要はないが、xmlns:介してXMLで定義されるべきで以前に定義された名前空間を使用する必要がlayout.xmlの属性 - 名前空間としてhelloを有する、例えばとにかくappはある種の標準です)。アプリ `なし

<style name="StyleName"> 
    <item name="fabSize">mini</item> 
</style> 
関連する問題