Home > Mobile >  Constraintlayout in use
Constraintlayout in use

Time:03-17


ConstraintLayout the two layout (common, common1) set match the parent why not coverage overlap?

CodePudding user response:

You should have a good look at the include the use of oh,
Common here, common1 layout and activity_main. The root of the XML root layout is the same, so you include in common, in common1 controls, to write directly in activity_main. XML makes no difference

CodePudding user response:

reference 1st floor can't write code monkey reply:
you should have a good look at the include the use of oh,
Common here, common1 layout and activity_main. The root of the XML root layout is the same, so you include in common, the controls in common1, to write directly in activity_main. XML is no different from
I put activity_main. The outermost layer of the XML layout into LinearLayout, covered include setting match_parent will take effect, why not ah, in the constarintLayout in constaintLayout how should change

CodePudding user response:

quoted Mrs Qing shan's reply: 3/f
I put activity_main. The outermost layer of the XML layout into LinearLayout, covered include setting match_parent will take effect, why not ah, in the constarintLayout to how change in constaintLayout

As long as the include the roots of the layout and the main XML layout of cable line,
  • Related