我需要创建一个带白色边框的FAB,并填充纯色(蓝色或灰色)。FloatingActionButton的白色边框
XML
<android.support.design.widget.FloatingActionButton
android:id="@+id/myFab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"/>
我试图接受的解决方案中How to change android design support library FAB Button border color?建议。但没有工作(没有添加边框)。
任何帮助将非常感激。
你可以编辑你的问题,包括你的意思是“它没有工作” –
@ AjilO.What我的意思是,它没有添加边框。请参阅我通过此更改创建的项目 - https://drive.google.com/open?id=0BxEa4zO6gm2FT1hkemtfUC1vSW8 – coder