Back to project page GreenGear.
The source code is released under:
MIT License
If you think the Android project GreenGear listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bradleycurran.greengear.util; /*from w w w . jav a2 s. c o m*/ import android.view.ViewGroup; import android.widget.Adapter; public class ViewUtil { public static void populateView(ViewGroup viewGroup, Adapter adapter) { for (int position = 0; position < adapter.getCount(); position++) { viewGroup.addView(adapter.getView(position, null, viewGroup)); } } }