Back to project page android_app.
The source code is released under:
Apache License
If you think the Android project android_app 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 models; //from w w w. j ava 2 s .c o m import TabAdapterPackage.ListContactAdapter; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; public class ContactListLayout extends LinearLayout { private ListContactAdapter list; private View view; public ContactListLayout(Context context){ super(context); } public ContactListLayout(Context context, AttributeSet attrs){ super(context, attrs); } public void setAdapter(ListContactAdapter listOfItems){ this.list = listOfItems; //setOrientation(VERTICAL); // populate list top down // add items to list if(list !=null){ for(int i = 0; i < listOfItems.getCount(); i++){ view = list.getView(i, null, null); this.addView(view); } } } }