How to add Chains feature of constraint layout with design in android studio -
i have 2 images in constraint layout. want use chains feature design page in android studio can't find icon or menu represent chains feature.
how add chains feature of
constraintlayout
android studio's 'layout editor'?
the chain style can controlled "chain" button right below view:
click on few times toggle between 3 modes:
spread (the default one)
spread_inside
packed
let's see examples
centering views connected using chain
drag , drop 3 buttons android studio's 'layout editor'
select buttons dragging mouse
pack them vertically using 'pack' button in 'layout editor'
- align them center horizontally using 'align-center horizontally' button
- align them center vertically using 'align-center vertically' button
here used pack
option
. similar this, can try spread
, spread inside
options of chain
see difference. cheers :)
Comments
Post a Comment