how to change the layout margin for an Android ListView Programmatically

Posted by ganesh on Stack Overflow See other posts from Stack Overflow or by ganesh
Published on 2010-06-17T12:29:31Z Indexed on 2010/06/17 12:33 UTC
Read the original article Hit count: 888

Filed under:

Hi,
I have defined an List View in xml as below

     <ListView android:id="@+id/mylist" 
           android:layout_width="fill_parent" 
           android:layout_height="wrap_content"
            android:cacheColorHint="#00000000"
           android:layout_weight="1"
           android:layout_marginTop="95dip"/>

And i need to re-define the layout margin upon some result in my programe ,how i can achieve this

© Stack Overflow or respective owner

Related posts about android-listview