2006-05-19, 07:03 PM
Using a bit cut from the skin.xml in the Recordings skin...Looking at size following "ListViewNormalItem", it suggests the total item size is 500 x 30. The DrawRoundedRect location is (3,3) so, if this is relative to the top left corner of the item, it makes sense that the size of it should be (500-6) x (30 - 6) for the sake of symmetry and that the SkinHelper.getNamedImage method handles this offset. So far so good if I've got that right.
The problem is the text labels. Their location attributes both show (5,4). If this is relative to either the ListViewNormalItem OR to the RoundedRect, why don't they overwrite each other? If it's relative to each other (possibly then relative to the origin of the Item OR the RoundedRect) then their locations would be either (5,4) and (10,8) or (8,7) and (13,11) respectively. In either case, how can they both have a height of 25 without going beyond the bounds of either the RoundedRect (height 24) or the Item itself?
I've played with different settings in the XML file but I'm not always sure exactly what I'm seeing.
Yours sincerely,
Confused of Ashford :confused:
Code:
<CompositeImage name="ListViewNormalItem" size="500,30">
<DrawRoundedRect loc="3,3" size="494,24" radius="5" borderWidth="0" borderColor="Black" fillColor="Transparent"/>
<DrawText text="@title" loc="5,4" size="390,25" textStyle="ListViewItems" align="Left"/>
<DrawText text="@lastRecordingDate" loc="5,4" size="495,25" textStyle="ListViewItems" align="Right"/>
</CompositeImage>
The problem is the text labels. Their location attributes both show (5,4). If this is relative to either the ListViewNormalItem OR to the RoundedRect, why don't they overwrite each other? If it's relative to each other (possibly then relative to the origin of the Item OR the RoundedRect) then their locations would be either (5,4) and (10,8) or (8,7) and (13,11) respectively. In either case, how can they both have a height of 25 without going beyond the bounds of either the RoundedRect (height 24) or the Item itself?
I've played with different settings in the XML file but I'm not always sure exactly what I'm seeing.
Yours sincerely,
Confused of Ashford :confused: