The Android Material Design Specification says "Type aligns to a 4 dp baseline grid."(http://www.google.com/design/spec/layout/metrics-and-keylines.html#)
It also says in the example graphics that a row in a list should be 72dp high.
It also indicates different font styles and what size the font should be and what its leading should be (http://www.google.com/design/spec/style/typography.html#typography-standard-styles).
I am trying to apply all of these rules to my application to adjust the layout of a row in my listing however I do not know how to space out the text boxes in my row.
I have 3 lines of text to display in each of my row
Heading line one - size 14sp Details line two - size 12sp Details line three - size 12sp
How do I ensure that the baseline of the text in each of these text boxes align with the grid? I can not align the bottom of the text box as this is not the base line, the bottom of the text box is the baseline + descent isn't it?
I need to space out the 3 lines of text as evenly as possible but ensure their baselines align to the grid.
I don't believe I can simply use padding/margins as this will not ensure the baselines of each of the lines of text align with the grid.
Futhermore when I do all this calculations I need to ensure that the row height is 72dp (for an mdpi device with normal font size specified).
Finally how would i specify the leading? As from what I understand this is the space from the baseline of the text of the row above to the top of the highest text in the bottom row. Again i cant use padding/margin as this is not from the baseline.
Edit: The Material Specification for lists have a little more information on how the Tiles in the list should appear when you have 3 lines of text. http://www.google.co.uk/design/spec/components/lists.html#lists-keylines
But it still does not indicate how the 3 lines of text are actually placed vertically so that their baselines align on the 4dp grid.