tags:

views:

1408

answers:

2

Anyone help me to modify the layout params of a child in a ListView in Android.Please give some code snippets if you can.

A: 

Write your own Adapter class and overwrite the getView method. The getView method is called for each position in the list.

You'll have to overwrite some other methods too as given here

You can create custom views and return them from the getView method. Remember to use the older view passed down to the method if its possible for optimum memory usage

Prashast
+3  A: 

Here is a long series of blog posts that I found really useful when I started to create my first custom ListView.

NOTE: every word is a separate link ;)

JaanusSiim