Skip to content

Helper for apps with transparent status/navigation bars

Notifications You must be signed in to change notification settings

shaz01/EdgeToEdge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

EdgeToEdge

Utility object that allows you to fix padding/margin issues in your fragments.

Example:

EdgeToEdge.fixPadding(binding.navigationRailView, left = true, top = true) //called in onCreate of Activity
val bottomActive = requireContext().resources.getBoolean(R.bool.bottom_margin_active) //custom bool attribute, true if width > 600dp
EdgeToEdge.fixMargin(binding.deleteAllButton, right = true, bottom = bottomActive) //called in onCreateView of Fragment

About

Helper for apps with transparent status/navigation bars

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages