android - Material Design FloatingActionButton global styling -
creating app api21+ devices, using meterial design theme:
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <!-- base application theme. --> <style name="apptheme" parent="android:theme.material.light.darkactionbar"> <!-- custom theme --> <item name="android:colorprimary">@color/colorprimary</item> <item name="android:colorprimarydark">@color/colorprimarydark</item> <item name="android:coloraccent">@color/coloraccent</item> ...
i want overwrite floatingactionbutton style:
<item name="android:actionbuttonstyle">@style/appfloatingactionbutton</item> ... <!-- floatingactionbutton --> <style name="appfloatingactionbutton" parent="android:widget.material.actionbutton"> <item name="ripplecolor">@color/coloraccent</item> </style>
but nothing happens.
also difference between:
widget.design.floatingactionbutton
android:widget.material.actionbutton
Comments
Post a Comment