2

I am using Cardslib and marked in the red rectangle, some cards in the grid overflow and joins the next card below. How can i prevent this?

cardslib

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Murat
  • 3,084
  • 37
  • 55

2 Answers2

1

I have to check this case to find a real solution.

I am pretty sure that it depends by the different height of the title in CardHeader.

A possible and quick workaround is to use a fixed height in the header.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • i used a fixed height as following: The problem is not resolved. The problem is that some cards overflow but some not. Both cards are similar style and content. – Murat Sep 22 '14 at 19:49
  • Is this explain the problem? http://stackoverflow.com/questions/7545915/gridview-rows-overlapping-how-to-make-row-height-fit-the-tallest-item/7568226#7568226. Fixed height for the CardView may solve the problem, but this looks bad. – Murat Sep 25 '14 at 22:42
  • Yes, this is the reason. You should choose to fix the header with only 1 line and a smaller text size. – Gabriele Mariotti Sep 26 '14 at 05:27
0

Here is the blog post that explains and solves overlap problem: www.ottodroid.net/?p=330

Murat
  • 3,084
  • 37
  • 55