title: how to give margin of layout in adapter of list in android?
body: <p>I want to set the margin of the layout in adapter when I call list view. my condition is, when image set in my layout then the text margin is 15dp and when my image visibility gone then text margin will be 180 dp,how is it possible? can i do this work in xml? if yes then reply me.</p>