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:

enter image description here

click on few times toggle between 3 modes:

spread (the default one)

spread_inside

packed

let's see examples

centering views connected using chain

  1. drag , drop 3 buttons android studio's 'layout editor'

  2. select buttons dragging mouse

  3. pack them vertically using 'pack' button in 'layout editor'

  1. align them center horizontally using 'align-center horizontally' button

  1. 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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -