Back to project page AndroidAdvancedDemos.
The source code is released under:
MIT License
If you think the Android project AndroidAdvancedDemos 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.krieger.training.androidadvanceddemos.interfaces; /* w ww . j a v a 2 s.c om*/ import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.essentailab.training.androidadvanceddemos.R; import com.krieger.training.androidadvanceddemos.entities.ListElementCookie; public class AsyncListInflationAction implements AdapterCommand{ @Override public View execute(Object data, View v) { ((TextView) v.findViewById(R.id.listview_txt_top)). setText(((ListElementCookie) data).getTitle()); ((TextView) v.findViewById(R.id.listview_txt_bottom)). setText(((ListElementCookie) data).getDescription()); ((ImageView) v.findViewById(R.id.listview_img)). setImageDrawable(((ListElementCookie) data).getThumb()); return v; } }