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?
The biggest difference is the use of a MaterialShapeDrawable
as background implementing some Material features, such as shaping and elevation overlays for Dark Themes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With