Programming Tips - Android: Material actionbar overlays and doesn't leave space

Date: 2024aug19 Platform: Android Language: xml Q. Android: Material actionbar overlays and doesn't leave space A. In file content_main.xml add a top margin:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ... android:layout_marginTop="?attr/actionBarSize" ... >