NativeScript ConstraintLayout
---
{N} ConstraintLayout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints (relations) placed on those views.
---
- Based on existing native concepts (ConstraintLayout for Android and Auto Layout for iOS)
- Both are specifically meant to be operated via design time surface.
- Android provides more constraint options for you to configure, while iOS provides limited but automatic constraint decision making.
- Hence we restricted our implementation to size and location constraints.
---
Why use {N} ConstraintLayout?
- Performance (ConstraintLayout is flat, no nested view hierarchies)
- Best choice for complex, dynamic, and responsive views
- Ease of use ({N} Unity cross-platform designer surface)
---
Demo
---
Limitations and future work
- Smarter designer focused on user intent :)
{"metaMigratedAt":"2023-06-15T01:24:23.671Z","metaMigratedFrom":"Content","title":"Untitled","breaks":true,"contributors":"[{\"id\":\"765cd592-230b-4007-8037-219007d6e013\",\"add\":948,\"del\":39}]"}