Floating Toolbar with Appcompat
问题 How to create a floating toolbar like the following image as proposed in the material design guidelines and in the Google Map application. 回答1: I've worked with the Toolbar before and all the comments from CommonsWare are absolutely correct. The Toolbar widget (https://developer.android.com/reference/android/support/v7/widget/Toolbar.html) have absolutely nothing special or different than any other Viewgroup and does not behave differently than any other ViewGroup. Put it inside a FrameLayout