With Constraintlayout no more match_parent?

Asked

Viewed 37 times

0

With the Constraintlayout feature, match_parent is no longer used?

1 answer

2


Use/can use yes, because:

  • Constraintlayout inherits from Viewgroup, which is the base class for all layout types.
  • Any layout must have its dimensions defined.

  • The value of the dimensions can be an integer value or one of the constants MATCH_PARENT / WRAP_CONTENT. They represent the value ffffffff and fffffffe respectively.

As with any Viewgroup to Constraintlayout, it may be necessary to indicate, instead of defining a fixed dimension, that it adapts its dimensions to those of its container or to those of its contents.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.