Package 

Class ViewExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit protectViewFromInsets(View $self) protectViewFromInsets adds safe padding to the view so it doesn't clash with the phone’s status bar or navigation bar.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • protectViewFromInsets

         final static Unit protectViewFromInsets(View $self)

        protectViewFromInsets adds safe padding to the view so it doesn't clash with the phone’s status bar or navigation bar. This helps make sure content isn’t hidden under system UI like the top or bottom bars. It also adds a small extra space (3dp) at the top for better visual breathing room.