2015-03-31 64 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可能是一個很好的嘗試)。