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();
?