Fixed: Clear FAB in bottom sheet is hidden under navigation bar

This commit is contained in:
Akash Yadav
2022-10-30 12:48:16 +05:30
parent ef08c800ad
commit 4302b8b077
4 changed files with 6 additions and 0 deletions
+2
View File
@@ -35,6 +35,8 @@
<module name="AndroidIDE.build-tools.project" target="11" />
<module name="AndroidIDE.build-tools.tooling-api-plugin" target="11" />
<module name="AndroidIDE.build-tools.tools-common" target="11" />
<module name="AndroidIDE.colorschemes" target="11" />
<module name="AndroidIDE.colorschemes.main" target="11" />
<module name="AndroidIDE.google-java-format" target="1.8" />
<module name="AndroidIDE.gradle-tooling" target="1.8" />
<module name="AndroidIDE.gradle-tooling.plugin" target="1.8" />
Binary file not shown.
@@ -30,6 +30,8 @@ import android.widget.RelativeLayout
import androidx.annotation.GravityInt
import androidx.appcompat.widget.TooltipCompat
import androidx.core.view.updateLayoutParams
import androidx.core.view.updateMargins
import androidx.core.view.updatePadding
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.transition.Slide
@@ -198,6 +200,8 @@ constructor(
sheet.peekHeight = binding.headerContainer.height
sheet.expandedOffset = offset
view.viewTreeObserver.removeOnGlobalLayoutListener(this)
binding.root.updatePadding(bottom = offset + SizeUtils.dp2px(16f))
}
}
view.viewTreeObserver.addOnGlobalLayoutListener(listener)
Binary file not shown.