из-за fitssystemwindows android studio не показывает дизайн экрана, не показывает макет кто нибудь встречался с такой проблемой
1.
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="data"
type="ru.starsmile.referral.android.ui.list.RefListViewModel" />
<import type="android.view.View"/>
</data>
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".ui.MainActivity">
<include
android:id="@+id/toolbar_layout"
layout="@layout/layout_toolbar"
app:data="@{data}"/>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize"
app:refreshing="@{data.refreshing}"
app:onRefreshListener="@{data::refreshItems}">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="64dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingLeft="16dp"
android:paddingEnd="16dp"
android:paddingRight="16dp"
android:weightSum="1">
<TextView
android:id="@+id/doctorName"
style="@style/TextAppearance.MaterialComponents.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="16dp"
android:layout_weight="1"
android:maxLines="2"
android:text="@{data.doctorName}"
tools:text="Иванов Иван Иванович" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btnLogOut"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/btn_log_out"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:onClick="@{data::onLogoutClicked}"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="63dp"
android:background="@color/colorDivider"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="64dp"
android:clipToPadding="false"
android:paddingBottom="16dp" />
<TextView
android:id="@+id/empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/empty_list"
android:visibility="@{data.refListSize == 0 ? View.VISIBLE : View.GONE, default=gone}"
style="@style/TextAppearance.MaterialComponents.Headline4"/>
</FrameLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/btnNewRef"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="32dp"
app:fabSize="normal"
app:srcCompat="@drawable/ic_add"
app:layout_anchor="@id/swipeRefreshLayout"
app:layout_anchorGravity="bottom|end|right"
app:layout_behavior="com.google.android.material.floatingactionbutton.FloatingActionButton$Behavior"
android:onClick="@{data::onNewRefClicked}"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>
