Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

Allow aligning of a view to a group of views #27

@carranca

Description

@carranca

This is something accomplished using Barrier in ConstraintLayout, but I think we can make it more straightforward.

Given views A, B, C:

Scenarios

  1. Aligning a view A to at any given time be to the left of both B and C
  2. Aligning a view A to at any given time be to the right of both B and C
  3. Aligning a view A to at any given time be horizontally centered to the middle point between B and C
  4. Aligning a view A to at any given time be above both B and C
  5. Aligning a view A to at any given time be below both B and C
  6. Aligning a view A to at any given time be vertically centered to the middle point between B and C

When the layout of B or C is updated, the positioning of A must be updated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions