Back to project page android-bossweather.
The source code is released under:
Apache License
If you think the Android project android-bossweather 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.michael.feng.tools; /*from www . ja v a2 s . com*/ import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.fima.cardsui.objects.Card; import com.michael.feng.bossweather.R; public class MyCard extends Card { public MyCard(String title, String desc, int image){ super(title, desc, image); } @Override public View getCardContent(Context context) { View view = LayoutInflater.from(context).inflate(R.layout.card_picture, null); ((TextView) view.findViewById(R.id.title)).setText(title); ((TextView) view.findViewById(R.id.description)).setText(desc); ((ImageView) view.findViewById(R.id.imageView1)).setImageResource(image); return view; } }