Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to use MaterialToolbar and androidx Toolbar and the difference between both?

When i switched to AndroidX i found that the Toolbar has moved to androidx.appcompat.widget.Toolbar also there is a new MaterialToolbar introduced as com.google.android.material.appbar.MaterialToolbar What is the difference between these two and when to use these?

like image 484
Manoj Perumarath Avatar asked Nov 28 '19 06:11

Manoj Perumarath


1 Answers

The biggest difference is the use of a MaterialShapeDrawable as background implementing some Material features, such as shaping and elevation overlays for Dark Themes.

like image 58
Gabriele Mariotti Avatar answered Oct 02 '22 01:10

Gabriele Mariotti