Closed jaumard closed 7 years ago
Could you upload a sample somewhere so I can have all the involved dimens and styles? Thanks.
Sure I'll try to upload a sample asap :)
Ok I just made a test you can reproduce easily by modifying your GridItemView
on your sample app and set on init
:
title.gravity = Gravity.RIGHT or Gravity.CENTER_VERTICAL
addView(title, FrameLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT))
You'll see the number disappear
I also put span to 2 and here is what it look like:
It seems like I did count decoration insets to layout the items, but not to measure their contents. I'm testing a new commit and uploading soon if everything is fine.
Should be fixed in version 2.0.1
.
Thanks a lot :)
All good now @Arasthel ! :D
I have this layout:
And it look like this in the preview:
But once on the emulator I get this:
Can't manage to find why my content is trunked as I don't have any fixed sizes. So maybe there a problem with the size of the element itself ?