Skip to content

v1.2.0 - Absolute position and background images

Choose a tag to compare

@adilson889 adilson889 released this 21 Oct 23:37
· 235 commits to main since this release
03d3af0

Added

  • position: absolute with top, right, bottom, left and z-index.
    A box with absolute children becomes a frame; they are placed apart from the flow.
  • background-image: url(name) with background-size (cover, contain, 100% 100%)
    and background-position (center, top, bottom, left, right).
  • object-fit (cover, contain, fill) for <img>.
  • <footer> and its dock property.
  • Python port started in python/ (core, Kivy and Tkinter hosts in progress).

Changed

  • position: absolute inside a virtual container is an error.
  • LayoutDiffer replaces a box whose frame state changes.
  • Version of nativelayout-core and nativelayout-android is now 1.2.0.

Fixed

  • AbsoluteTest and CssFeaturesTest no longer fail on collapsed single-text boxes
    and on the now-supported position: absolute.

Install (JitPack)

implementation("com.github.getnativelayout.nativelayout:nativelayout-android:v1.2.0")
implementation("com.github.getnativelayout.nativelayout:nativelayout-core:v1.2.0")