Below is the code of my coordinator layout. It works well.
Please refer below code, for me its working fine..