Closed ghost closed 3 years ago
Margin seems not working for Insetter Builder and InsetterConstraintHelper but Padding is totally fine
Both of that code not working
binding.textView.applyInsetter { type(statusBars = true) { margin() } }
InsetterConstraintHelper
<dev.chrisbanes.insetter.widgets.constraintlayout.InsetterConstraintHelper android:layout_width="wrap_content" android:layout_height="wrap_content" app:constraint_referenced_ids="textView" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_marginSystemWindowInsets="top" />
I also tried InsetterConstraintLayout but not work either I'm using version 0.5.0
just change
dataBinding { enabled = true }
to
buildFeatures { dataBinding true }
Margin seems not working for Insetter Builder and InsetterConstraintHelper but Padding is totally fine
Both of that code not working
binding.textView.applyInsetter { type(statusBars = true) { margin() } }
InsetterConstraintHelper
<dev.chrisbanes.insetter.widgets.constraintlayout.InsetterConstraintHelper android:layout_width="wrap_content" android:layout_height="wrap_content" app:constraint_referenced_ids="textView" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_marginSystemWindowInsets="top" />
I also tried InsetterConstraintLayout but not work either I'm using version 0.5.0