Stack OverflowListView items not displayed properly after setting padding in method onSizeChanged()
[0] [0] devyani
[2011-05-21 04:37:42]
[ android-layout ]

I want to set the padding for list items based on the width of list items. I have implemented this in onSizeChanged method and called forceLayout().

But this is not working for me... I tried by calling this.requestLayout() in the OnDraw() method, but because of this the list is refreshed continously and not able to scroll.

Where should I set padding for list items, and where should I call requestLayout();?