Question

I created a app with the CardUI libary, but I can't do the things I want to do with the libary. So I decided to recreate it in my own layout. I'm using a listview, with a CustomCursorAdapter which gets a XML layout to put it in the listview. I've seen these cards:

enter image description here

I want that layout of a card to put in a XML file (listview and single_item), but I can't seem to do it. I have a lot of problems with creating this layout in a XML file.

Was it helpful?

Solution

To reduce the overdrawing which would (highly probable) result when implementing this as xml, I just took such a screenshot and created a 9.png file for this. Added the 9.png as a background and got the fine looking result I was hoping for.

As long as you don't want some fanzy hanzy special stuff like changing shadows or similar, this is the way I recommend.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top