Floating Action Button and CardView



  • How do you attach Floating Action Button from the CardView support library so that, with ScrollView, the button went up with the card?



  • Place. CardView and FAB inside. FrameLayoutThe coy will be inside. ScrollView - so you can put FAB over CardView any way you want. layout_gravity And since they'll both be inside ScrollView, both of them will be together.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2