Ashu
08/14/2021, 9:09 PMcreateVerticalChain(
toolbar, text1, text2,
chainStyle = ChainStyle.Packed
)
Now it works all fine but the issue is I don't know how to set margins in this scenario. How do I set top and bottom margin to text1?
Also, text1 has following constraints
constrain(text1) {
height = Dimension.preferredWrapContent
width = Dimension.preferredWrapContent
}
What I am trying to do here is to set text1 height as wrap content but not bigger than the layout. But if the text is large then the whole text is shown. How do I keep it as wrap content and fill constraint layout but not increase size of constraint layout and ellipsize the remaining text?Ashu
08/14/2021, 9:32 PMColton Idle
08/15/2021, 1:15 AMAshu
08/15/2021, 7:50 AM