Friday 15 August 2014

android - Migration to material design - Should we use Toolbar or ActionBar -



android - Migration to material design - Should we use Toolbar or ActionBar -

currently, i'm in process of migrating holo designed app material designed app.

i came across next article : http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html

in release, android introduces new toolbar widget. generalization of action bar pattern gives much more command , flexibility. toolbar view in hierarchy other, making easier interleave rest of views, animate it, , react scroll events. can set activity’s action bar, meaning standard options menu actions display within it.

the above text doesn't seem clear me. first impression that.

toolbar more powerful actionbar. can actionbar can do, yet provide other functionality. google seems want promote toolbar on actionbar

i wondering, how can decide, whether when should utilize actionbar, , when should utilize toolbar.

what want accomplish similar latest google play store app.

navigation drawer under action bar

there collapseactionview

i can specific menu as

<item android:id="@+id/menu_search" android:title="@string/menu_search" android:showasaction="always|collapseactionview" android:actionlayout="@layout/collapsible_searchtext" android:icon="?attr/actionbarsearchicon"/>

i came across latest google play newsstand

navigation drawer covers on action bar

if want feature navigation drawer covers on action bar, toolbar must? if want have feature navigation drawer under action bar , there collapseactionview, willl actionbar sufficient enough?

actionbars are toolbars (just created , added contentview you) difference little immaterial.

just reminder nav drawer on action bar material design guidelines per material design checklist , should model utilize (much give-and-take has occured on official android app design google+ community has confirmed fact , google apps moving standard).

android material-design

No comments:

Post a Comment