Skip to content

Releases: getnativelayout/nativelayout

Nativelayout v1.3.0

Choose a tag to compare

@adilson889 adilson889 released this 25 Oct 17:49
pad: rebuild nlweb.js [skip ci]

Nativelayout-kotlinCore v1.2.1

Choose a tag to compare

@adilson889 adilson889 released this 25 Oct 02:52
278ffae
Atualizar o kivy_host.py

Python-v1.2.4

Choose a tag to compare

@adilson889 adilson889 released this 24 Oct 22:19
8f307bc
python-v1.2.5

Atualizar o apk.yml

Python v1.2.3

Choose a tag to compare

@adilson889 adilson889 released this 24 Oct 20:31
python-v1.2.4

Te atualizar os md

Python-v1.2.2

Choose a tag to compare

@adilson889 adilson889 released this 24 Oct 08:53
0ddb099
python-v1.2.3

Update pyproject.toml

Python-v1.2.1

Choose a tag to compare

@adilson889 adilson889 released this 24 Oct 08:17
cdf40ad
python-v1.2.2

Atualizar o pyproject.toml

Python v1.2.1

Choose a tag to compare

@adilson889 adilson889 released this 24 Oct 00:41
350b924
python-v1.2.1

Atualizar o README.md

Python v1.2.0.

Choose a tag to compare

@adilson889 adilson889 released this 23 Oct 23:29
e59aca1
python-v1.2.0

Atualizar o draw.py

v1.2.0 - Absolute position and background images

Choose a tag to compare

@adilson889 adilson889 released this 21 Oct 23:37
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")

nativelayout v1.1.0: Adds <footer> with dock, for bottom bars and floating controls, and a real rubber-band overscroll before Android 12.

Choose a tag to compare

@adilson889 adilson889 released this 21 Oct 10:12
3d28242

nativelayout v1.1.0

A new <footer> tag and a better overscroll on older Android. Nothing from v1.0.0 changes.

Install

dependencies {
    implementation("com.github.getnativelayout.nativelayout:nativelayout-android:v1.1.0")
    implementation("com.github.getnativelayout.nativelayout:nativelayout-core:v1.1.0")
}

New: <footer>

A region fixed outside the scroll, like the <header> but at the bottom. Use it for a tab bar, an action bar or a message field.

<body>
    <header>...</header>

    ...

    <footer>
        <button id="tab-list" class="tab on">List</button>
        <button id="tab-summary" class="tab">Summary</button>
    </footer>
</body>
  • Direct child of the root, one per screen.
  • By default: a row, centered, at the bottom and full width. The scroll ends where the footer starts, so nothing is hidden behind it.
  • dock places it: bottom (default), top, left, right or center. Only bottom takes space; the others float over the screen.
  • All the CSS applies: width, height, margin, border-radius, background, box-shadow, align-self. A full bar, a narrow bar and a floating pill are all the same tag.
  • It covers bottom navigation, action bars, chat input bars and floating buttons.

Improved: overscroll before Android 12

The old effect moved the whole content, which looked like sliding. It now stretches the content from the pulled edge and springs back, like the Android 12 stretch. From Android 12 on, the system effect is still used.

Not in this version

  • The footer does not hide when the keyboard opens.
  • The footer does not add space for the system navigation bar.

Docs