int widhtInterior = 0;
for (int i = 0; i < prl_listview.getCount(); i++)
{
View mView = adapter.getView(i, null, prl_listview);
mView.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
int width = mView.getMeasuredWidth();
if (width > widhtInterior)
{
widhtInterior = width;
}
}
获取adapter子控件的宽度。
有些时候动态计算子控件高度的时候使用