Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Add demo for ConstraintLayout feature for dimension constraints - WRAP_CONTENT #56

Open
noorejannat opened this issue May 27, 2018 · 0 comments
Labels
core Application core components enhancement New feature or request
Milestone

Comments

@noorejannat
Copy link
Collaborator

WRAP_CONTENT : enforcing constraints (Added in 1.1)

If a dimension is set to WRAP_CONTENT, in versions before 1.1 they will be treated as a literal dimension -- meaning, constraints will not limit the resulting dimension. While in general this is enough (and faster), in some situations, you might want to use WRAP_CONTENT, yet keep enforcing constraints to limit the resulting dimension. In that case, you can add one of the corresponding attribute:

  • app:layout_constrainedWidth=”true|false”
  • app:layout_constrainedHeight=”true|false”
@noorejannat noorejannat added enhancement New feature or request core Application core components labels May 27, 2018
@noorejannat noorejannat added this to the 1.0 milestone May 27, 2018
@hossain-khan hossain-khan modified the milestones: 1.0, 2.0 Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Application core components enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants