Rohit Mishra
Rohit Mishra

Reputation: 281

Opening layout on Floating action button click

I want that when an item is added to cart the flaoting action button show open this layout. Does anyone have an idea how to do this..

This is the floating action button at the bottom right corner

aa

This is how the layout must open on fab click

aa

Please help me do this..

Upvotes: 1

Views: 3381

Answers (1)

Aawaz Gyawali
Aawaz Gyawali

Reputation: 3364

You have 3 options,

Option 1

On clicking fab just hide it and show a custom dialog box to the exact same position you want.

Option 2

Use a custom SnackBar and display it , example link here

Option 3

Use this library FABRevealLayout to expand FAB to a layout.

Upvotes: 1

Related Questions