Can you please tell me how can I setHeight for a ViewGroup?
I see there is a layout(l,t,r,b);
But that is different form setHeight(), since I don’t know where should be the top/bottom of the viewGroup. I need to set the height of the ViewGroup and return that to ListAdapter.
Thank you.
You can try using
setLayoutParams()See here the descriptions of the parameters to LayoutParams