I am trying to create a simple horizontal divider ...
# compose
y
I am trying to create a simple horizontal divider on a Row but I cannot make it properly match the height of the parent. I can make it fully take the height by fillMaxHeight but I just want it to take the height of the Row.
Copy code
Box(
    Modifier
        .background(color = colorResource(id = R.color.divider))
        .fillMaxHeight()
        .width(divider)
)
z
y
I had tried this
Copy code
IntrinsicSize.Min
thingy but I just realized I was using it wrong 😕
thanks 😄
h
learning something new about layouts everyday 😄
c
@YASAN got any pictures of how this looks? Can't picture what you're trying to do.
z
Yea it’s not exactly intuitive imo. I always think it works like the alignment line stuff (between siblings) and have to be reminded it’s different