2015-03-31 63 views
0

在我的应用程序中,我想实施一个看起来像在Google Play或Google地图中找到的操作栏,即具有汉堡菜单的搜索栏。独立的搜索栏作为操作栏?

与此类似:

A screenshot from Google Maps which demonstrates what I'm trying to achieve http://i1-news.softpedia-static.com/images/news2/Google-Rolls-Out-Maps-9-0-for-Android-with-Materials-Design-UI-Screenshot-Tour-464402-5.jpg

注意顶部的搜索栏。我将如何能够复制这个?

+0

您可以使用工具栏,或者你可以用这个布局的设计使。 – 2015-03-31 16:23:50

回答

0

我想你可以只使用一个Toolbar与属性:

android:layout_marginLeft 
android:layout_marginRight 
android:layout_marginTop 
android:layout_marginBottom 

设置一些dp(8或12可能是一个很好的尝试)。