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 a va2s .co m*/ import com.example.t_danbubbletea.R; import android.content.Context; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import it.gmariotti.cardslib.library.internal.Card; import it.gmariotti.cardslib.library.internal.CardHeader; public class AboutUsAndIngredientsCard extends Card { public AboutUsAndIngredientsCard(Context context) { super(context); } public AboutUsAndIngredientsCard(Context context, int i) { super(context); } public void SetUpCard(){ CardHeaderInfo cHeader = new CardHeaderInfo(getContext(), R.layout.about_us_ingredients_card); cHeader.name = "Daniel Chuang"; cHeader.subName = "Owner / Manager"; addCardHeader(cHeader); } @Override public void setupInnerViewElements(ViewGroup parent, View view) { } class CardHeaderInfo extends CardHeader { String name; String subName; public CardHeaderInfo(Context context, int innerLayout) { super(context, innerLayout); } @Override public void setupInnerViewElements(ViewGroup parent, View view) { TextView txName = (TextView) view.findViewById(R.id.text_extras_birth1); TextView txSubName = (TextView) view.findViewById(R.id.text_extras_birth2); txName.setText(name); txSubName.setText(subName); } } }