Daniele B
Daniele B

Reputation: 20412

Android: material design's Floating Action Button (FAB) and shifting views

I would like to implement two Material Design elements in Android:

I cannot find any Android widget to implement FABs. Which is the best recommended solution? is it to use third party libraries?

With "shifting view", I mean a view that shifts up and down. For example if you have two views in a fragment: top view which is fixed, and the bottom view which is a list, by scrolling the list, you can actually make the list take some space of the top view. How do you implement that? is it part of the Android framework or you need to use some third party libraries again?

Upvotes: 1

Views: 1252

Answers (2)

appoll
appoll

Reputation: 2950

This one here might be pretty useful for any of the other material needed elements (widgets, dialogs, progress bars) and it also covers the FAB. As stated in the other answer, there is no default implementation so the solution would be to go for 3rd party libraries.

And here you can find different ways of implementing what you refer to as "shifting view". There is a demo app as well and it is easily customizable.

Upvotes: 1

Pasi Matalamäki
Pasi Matalamäki

Reputation: 1853

There's no stock Android implementation of FAB, but I've used this implementation of FAB's in couple of my projects and its working great and supports the material greatness!

so given the fact that there's no FAB implementation on Android, you should go for a 3rd party implementation

By shifting views do you mean like toolbar? Like similar to this or this? Its hard to say, now knowing exactly the use case or what do toy mean, but this is what your explanation reminds me of

Upvotes: 2

Related Questions