<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="BSP_NumberPadTimePicker">
        <!-- Indicates how the NumberPadTimePicker should be laid out. -->
        <attr name="bsp_numberPadTimePickerLayout" format="enum">
            <enum name="alert" value="1" />
            <enum name="bottomSheet" value="2" />
        </attr>

        <!-- The background color of the floating action button in the time picker.
             This attribute is only applied if the time picker is using the bottom
             sheet layout.

             This should be a color state list where the enabled state will be used
             when the button is enabled. -->
        <attr name="bsp_fabBackgroundColor" format="color" />

        <!-- Indicates whether the floating action button should animate onto the
             screen when the time picker is shown. This attribute is only applied
             if the time picker is using the bottom sheet layout. -->
        <attr name="bsp_animateFabIn" format="boolean" />
    </declare-styleable>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="BSP_NumberPadTimePicker">
        <!-- Indicates how the NumberPadTimePicker should be laid out. -->
        <attr name="bsp_numberPadTimePickerLayout" format="enum">
            <enum name="alert" value="1" />
            <enum name="bottomSheet" value="2" />
        </attr>

        <!-- The background color of the floating action button in the time picker.
             This attribute is only applied if the time picker is using the bottom
             sheet layout.

             This should be a color state list where the enabled state will be used
             when the button is enabled. -->
        <attr name="bsp_fabBackgroundColor" format="color" />

        <!-- Indicates when the floating action button should be shown. This attribute is
             only applied if the time picker is using the bottom sheet layout.

             If set to "always", then either value for attribute 'bsp_animateFabIn' will
             be honored. If set to "validTime", a value of "true" for 'bsp_animateFabIn'
             will not be honored. -->
        <attr name="bsp_showFab" format="enum">
            <enum name="always" value="1" />
            <enum name="validTime" value="2" />
        </attr>

        <!-- Indicates whether the floating action button should animate onto the
             screen when the time picker is shown. This attribute is only applied
             if the time picker is using the bottom sheet layout. -->
        <attr name="bsp_animateFabIn" format="boolean" />
    </declare-styleable>
</resources>
Create custom attribute 'bsp_showFab' to control when the FAB should be shown.
Create custom attribute 'bsp_showFab' to control when the FAB should be shown.
