Android: ListView, problem with rounded corners?

Well, if you need this background for the items in the list, you should attach the background to the item layout, and not to the list view.

It doesn't help. Still first and last items graphic hide rounded corners. Is there only solution to set different graphics for first and last item?

– Adrian Jul 11 at 8:43 Well, it should work. Can you post some more code of the layout for your items? – Kumar Bibek Jul 11 at 9:37.

I have ListView with rounded corners implemented like bellow. This give me rounded corners. The problem is that each items are RelativeLayout with TextView on the left side and ImageButton on the right side.

Both views have custom graphic on pressed, foucused and default state. Something like this. The problem is that custom graphic cover ListView background and thus rounded corners on first and last item.

Everything is okay when scrolling. I've written custom adapter and in getView method I set proper bg for items.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions