FAB transition animation that works below android L? - android

I read a lot topics on Material design and sawed lot of example on it. Recently I installed a calendar application that called Today Calendar which have a Material design and Requires Android 4.1 and up, also the animations and transitions are all working on 4.1 and later.
The FAB's transition is very nice along with other views. I want to implement it in my application that requires API Level 14+, when the user clicks on the FAB it will transition to buttom with nice animation.
My design looks like this:
How to implement this transition?

Related

Material Transitions in pre lollipop apps

I am trying to use the transitions which introduced in material design in pre - lollipop apps(Min API19). I was going through http://www.google.com/design/spec/animation/meaningful-transitions.html#meaningful-transitions-visual-continuity transitions. But couldn't find how to do these transition mainly the second one on click of list item it expands the details. Can anybody help me to do this.
Thanks
You cannot use the "Material transitions" (or shared content animations) in pre-Lollipop versions, whether you're using Appcompat or not.
Check this link Custom animations

Ripple effect on custom navigation drawer

I'm developing my first app providing to it the new material look. I'm a bit lost with this so I'm following some tutorials to implement things like Toolbar, Navigation Drawer, etc. I have to say that I'm doing it providing compatibility to pre-lollipop android versions, so I'm using support libraries.
What concers to my question, is that I have just implemented the Navigation Drawer following one of this tutorials and using the following libraries for compatibility:
support.v4.widget.DrawerLayout
support.v7.widget.RecyclerView
I think that the code implementation is too long to put it here, so I'll provide the link to this tutorial, I have done it exactly as is said here.
My problem is that, when I select one item from the navigation drawer's row, it perfectly opens it correspondant frament, but, it doesn't show any ripple effect, or simply any touch effect, when touching it. Something like this:
I have taken a look to some other tutorials, for example, to the one to which belongs the attached gif, to see if they use any method or implementation to provide that efect to the touch, but nothing is implemented to get that effect, just the onclick method.
So, what's wrong with this code, and how could I modify it, or what could I add to get that effect?
As you are using appcompat you can add this to the XML for your navigation drawer item android:background="?attr/selectableItemBackground".
This should provide the ripple effect on Lollipop devices and a fallback grey highlight for older devices.

Material design animation

I am developing an app that will have a very similar interface to this , my question is, all that animation is from material design, but do i have to program all that stuff or android have anitmation libraries for material design that do that?
Some of the design stuff and animations are only available in android 5.0 and above only, like the FAB button and reveal effect.
2 options
Either write the code for animations and layout yourself for pre 5.0 devices
or
Use libraries that do the same thing like fab button and reveal effect etc
There are a lot of open source libraries that you can use in your project for e.g FAB button, arc animation etc.. to support devices before 5.0 Also then you don't forget to read there licence.
So, in short you will get small components from here and there like
reveal effect, arc animation, fab etc use them to achieve the effect.

Material sidebar icon animation (e.g. Gmail)

I am investigating if there is a 15+ API to implement sidebar icon transitions as displayed on the video by google:
http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B0NGgBg38lWWRm5QODB0bk95SUE/patterns-loadingimages-loading-070901_Load_Add_Animation_xhdpi_002.mp4
If I use the classic ObjectAnimator.fromFloat() the code will be huge and cumbersome.
Is there a way to reposition the items with a reasonable length of code?
Use the following library with sample.
https://github.com/neokree/MaterialNavigationDrawer
You will get the perfect result as you want

Material Design Buttons and other components

Im trying to make an application Lollipop & Material Design compatible following the latest guidelines.
Anyhow I'm having troubles finding the appropriate documentation for the components for Lollipop on developer.android.com it kinda seems like the documentation is stuck with KitKat and appropriate documentation is missing.
I have the need to implement Flat Buttons like these (http://www.google.com/design/spec/components/buttons.html#buttons-flat-raised-buttons) and Icon Toggles like these (http://www.google.com/design/spec/components/buttons.html#buttons-other-buttons).
Besides that I'm also trying to implement big style App Bar/Toolbar - again can't find an appropriate documentation.
Any tips?
for the new tool bar api have a look at http://developer.android.com/reference/android/widget/Toolbar.html
http://android-developers.blogspot.co.il/2014/10/appcompat-v21-material-design-for-pre.html
for button styles you just need to use elevation
https://developer.android.com/training/material/shadows-clipping.html
for buttons togglers just use selectors / ripple effect
https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html
gl
Well it depends on what you are looking for and want to achieve for the material design look and feel.
The url's you have are more the design guidelines. About how everything should look. It's as important as the developers guidelines if you design too.
Material Activity transitions
But when you think about the material design transitions where they don't want those static transitions like "Go from this activity to another" But more like a dynamic transition you can look for examples and explanation here: https://developer.android.com/training/material/animations.html
Ripples
If you want to know more about the touchy ripple effects and things like how to get the 'hairline' color of components you can find more here: http://android-developers.blogspot.nl/2014/10/implementing-material-design-in-your.html
Elevation
Also Material design wants you to play more with the elevation of elements. Check that here: https://developer.android.com/training/material/shadows-clipping.html
And ofcourse there is more. Look in the left menu where you can find more best practice examples. Also the new Android 21.+ SDK offers new examples released a couple of weeks ago. Check those out to see how google implements Material design for api level 21.+

Categories

Resources