mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
23 lines
573 B
Markdown
23 lines
573 B
Markdown
---
|
|
nav-title: "absolute-layout How-To"
|
|
title: "absolute-layout"
|
|
environment: nativescript
|
|
description: "Examples for using absolute-layout"
|
|
previous_url: /ApiReference/ui/layouts/absolute-layout/HOW-TO
|
|
---
|
|
# AbsoluteLayout
|
|
Using an AbsoluteLayout requires the AbsoluteLayout module.
|
|
{%snippet absolute-layout-require%}
|
|
|
|
### Declaring an AbsoluteLayout
|
|
``` XML
|
|
<Page>
|
|
<AbsoluteLayout>
|
|
<Label text="This is Label 1" left="30" top="70" />
|
|
</AbsoluteLayout>
|
|
</Page>
|
|
```
|
|
|
|
## Creating and populating a AbsoluteLayout with children
|
|
{%snippet absolute-layout-populating%}
|