Skip to content

Adding custom animations to FAB xml #215

@JeremyPacker

Description

@JeremyPacker

Hi There,

I'm trying to implement custom animation behaviours for the show/hide animation attributes in the XML. My code is as followed and animations are there. Am I Missing something or is this an issue?

<com.melnykov.fab.FloatingActionButton
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:id="@+id/studioFABFeed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_mic_white_24dp"
android:layout_marginRight="22dp"
android:layout_marginBottom="25dp"
android:elevation="10dp"
android:layout_gravity="end|bottom"
android:visibility="visible"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
fab:fab_colorNormal="@color/gold"
fab:fab_colorPressed="@color/white"
fab:fab_progress_showBackground="false"
fab:fab_showAnimation="@anim/fab_scale_up"
fab:fab_hideAnimation="@anim/fab_scale_down"
android:clickable="true" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions