By using the right coordinates (and a clip rectangle, if necessary). And if you made the font small enough, you could just use a dotted line for the list item divider instead :)
And speaking of list item dividers: this could be a problem. Worst case, tell the list view to not use any, and put them in your item layout, so you can draw over them. -- Kostya Vasilyev 17.06.2011 2:17 пользователь "Zsolt Vasvari" <[email protected]> написал: > Thanks, How can I make sure that the font is cut at the right place so > that it looks whole? > > On Jun 16, 10:22 pm, Kostya Vasilyev <[email protected]> wrote: >> Paint half the text on one item, and the other half on the other, by using a >> special view that would offset the text's position before drawing (so it's >> clipped). >> >> Other than that, use a special view type, just for the text, and have your >> adapter inject them as necessary. You might put the standard list item >> separator halfway down this special view. >> >> -- Kostya >> 2011/6/16 Zsolt Vasvari <[email protected]> >> >> >> >> > I would like to put a small-font text between 2 line items of a >> > ListView. Basically, I would like the top half of the text to be over >> > one list item and the bottom half to be over the other item. >> >> > I cannot think of a simple way of doing this, but can anyone even >> > think of a difficult way? >> >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Android Developers" group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> >http://groups.google.com/group/android-developers?hl=en- Hide quoted text - >> >> - Show quoted text - > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

