我怎麼可以做這樣的事情在Android Studio中:在導航欄的Android圖標
我想有一個導航欄,你可以看到的名稱,圖標,也是oppurtinity到打開抽屜式導航:d
(圖片是在製作的figma)
我怎麼可以做這樣的事情在Android Studio中:在導航欄的Android圖標
我想有一個導航欄,你可以看到的名稱,圖標,也是oppurtinity到打開抽屜式導航:d
(圖片是在製作的figma)
集重力結束在你的NavigationView內DrawerLayout.And添加自定義視圖工具欄。
<DrawerLayout ...>
<Content>
<Toolbar>
<LinearLayout
android:orientation="horizontal">
<!-- Here goes the Image -->
<ImageView .../>
<!--Here goes the title -->
<TextView ...
android:gravity="center"/>
</LinearLayout>
</Toolbar>
<MainContent .../>
</Content>
<NavigationView
android:layout_gravity="end"
.../>
</DrawerLayout>
這應該讓你開始。
謝謝!但是,從什麼開始呢?創建一個新的導航抽屜活動性? – Ramin
你可以從那開始。 –
您也可以參考http://stackoverflow.com/a/6351736/5255006 –