You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MATERIAL DESIGN: add a floating action button to create folders and upload files #983
Floating action button is the all-new all-different widget provided in Material Design to place the primary action available for the user in a screen. I think it fits nicely for adding files to OC, instead of having the icons in the top bar.
I can see it in Gmail right now, even in Android 4.x devices, so I expect it's included in the Android Support Library. In this case, we should use it for all the Android versions. If not, my take would be add it only for Android 5.0+.
I doubt about how many options should be shown when clicked. My first instinct is to group together 'create folder', 'upload file', 'upload from other apps'; but maybe it's too much, and 'create folder' could stay in the action bar. Opinions here, please!
On the technical side: the floating action button is not included in the support library. Neither it's a standard component in the SDK (even in 21). While there are third-party implementations, Google provides nothing (and its applications are not consistent at all in this regard).
I also think that these three should be accessible when clicking the FAB.
Is there some cool fancy overlay menu that we can use to present the three options?
Nothing new & fancy that I watched. But a dialog with the new style should do the work. I'd focus first in having the work done, and add cool visuals only if they are really easy to implement.
Activity
Kernald commentedon May 21, 2015
On the technical side: the floating action button is not included in the support library. Neither it's a standard component in the SDK (even in 21). While there are third-party implementations, Google provides nothing (and its applications are not consistent at all in this regard).
davivel commentedon May 21, 2015
Thank for the tips. We'll require some further research, then.
EDIT: something to start: https://developer.android.com/samples/FloatingActionButtonBasic/index.html
jancborchardt commentedon May 21, 2015
If we use the button:
I totally agree with that.
tobiasKaminsky commentedon May 21, 2015
I also think that these three should be accessible when clicking the FAB.
Is there some cool fancy overlay menu that we can use to present the three options?
davivel commentedon May 22, 2015
Nothing new & fancy that I watched. But a dialog with the new style should do the work. I'd focus first in having the work done, and add cool visuals only if they are really easy to implement.
tobiasKaminsky commentedon May 23, 2015
Yeah. This was also my intention. But I thought that there would be a new dialog type that could easily be updated and is from material design.
Kernald commentedon May 23, 2015
There is. Take a look at the Toolbar and Speed dial sections here: http://www.google.com/design/spec/components/buttons-floating-action-button.html
tobiasKaminsky commentedon May 23, 2015
@Kernald this is it!! :) :) 👍
@jancborchardt now we need some meaningful icons for
The first two already exist. The problem could be to distinguish between 2 and 3?
davivel commentedon May 25, 2015
@Kernald, sorry, I cannot find the Speed dials. Is there a more precise link to it? Thanks.
tobiasKaminsky commentedon May 25, 2015
@davivel Just search for "speed dial" or look at this video:
http://material-design.storage.googleapis.com/publish/material_v_3/material_ext_publish/0B6Okdz75tqQsVks0N1MxQ1JpOTg/components-buttons-fab-transition_speeddial_01_xhdpi_002.webm
davivel commentedon May 25, 2015
Thanks, @tobiasKaminsky . Seems pretty cool.
AndyScherzinger commentedon Aug 17, 2015
UNfortunately you have to implement it yourself. There is no google implementation for the speed dial...
AndyScherzinger commentedon Aug 17, 2015
Erm, I would (like) to work on this, but won't find the time to work on this before begining/mid September though...
AndyScherzinger commentedon Aug 17, 2015
I added a branch to work on it 😄 https://github.com/owncloud/android/tree/material_fab based on the material_button branch
AndyScherzinger commentedon Aug 17, 2015
Initial implementation can be found at #1100
davivel commentedon Mar 9, 2016
Ready to go in release 1.9.2.