ANDROID: Error inflating class android.support.design.widget.AppBarLayout

You need to use <com.google.android.material.appbar.AppBarLayout <androidx.appcompat.widget.Toolbar Instead of <android.support.design.widget.AppBarLayout <android.support.v7.widget.Toolbar SAMPLE CODE <com.google.android.material.appbar.AppBarLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:id=”@+id/app_bar” android:theme=”@style/Theme.AppCompat.Light.DarkActionBar” android:layout_width=”match_parent” android:layout_height=”wrap_content”> <androidx.appcompat.widget.Toolbar …

Read more

Android Data Binding SetSupportActionBar

You can access the instance of the toolbar using views by id function <android.support.v7.widget.Toolbar android:id=”@+id/toolbar” android:layout_width=”match_parent” android:layout_height=”?attr/actionBarSize” android:background=”?attr/colorPrimary” app:layout_scrollFlags=”scroll|enterAlways” app:popupTheme=”@style/AppTheme.PopupOverlay” …

Read more