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; // w ww. java 2s . c o m import java.util.ArrayList; import TabAdapterPackage.ListContactAdapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import com.example.t_danbubbletea.R; import it.gmariotti.cardslib.library.internal.Card; import it.gmariotti.cardslib.library.internal.CardHeader; public class ContactListCard extends Card{ public ContactListCard(Context context){ this(context, R.layout.card_inner_content_contact_card); } public ContactListCard(Context context, int innerLayout){ super(context, innerLayout); } public void SetUpContactCard(){ //Card header CardHeader cardHeader = new CardHeader(getContext()); cardHeader.setTitle("Contact Information"); addCardHeader(cardHeader); } @Override public void setupInnerViewElements(ViewGroup parent, View view){ ContactListLayout contactListLayout = (ContactListLayout) view.findViewById(R.id.inner_list_layout); ListContactAdapter adapter = new ListContactAdapter(super.getContext(), ContactObjectBuilder()); contactListLayout.setAdapter(adapter); } public ArrayList<ContactListObject> ContactObjectBuilder(){ ContactListObject obj1 = new ContactListObject("(541) 777-0528", "Corvallis"); // use list so the card inner content can be expandable once client // have found a place to situate his store permanently ArrayList<ContactListObject> objList = new ArrayList<ContactListObject>(); //add list objList.add(obj1); return objList; } }