-1

How can i apply collapsing toolbar/Appbar functionality to an imageview or to a layout...???

I know this is possible for Toolbar/Appbar using com.android.support:design library but how to apply this to a layout/Custom view..???

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Aravinth thiyagarajan
  • 2,193
  • 3
  • 12
  • 10

1 Answers1

0

You can put anything inside an AppBarLayout and set the appropiate flags to make it scroll up and down like a toolbar would. Also, remeber that the Toolbar is a subclass of ViewGroup so you can puts views inside it.

GSala
  • 946
  • 7
  • 15