unfortunately not everything is possible to set programmatically. It depenends on the view and if its programmer is a good guy. You can see in the FAB constructor that mBorderWidth is private property set only from AttributeSet and its not possible to set it