Back to project page DEVIEW2014_AndroidApp_Demo.
The source code is released under:
Apache License
If you think the Android project DEVIEW2014_AndroidApp_Demo 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.nhn.android.deview.core.listview; /*ww w . j a va 2 s . co m*/ import com.nhn.android.deview.core.view.ViewMapper; import android.content.Context; import android.view.View; import android.widget.FrameLayout; public class ListCellView<T> extends FrameLayout { public T mData; public long mItemId = 0; public ListCellView(Context context) { super(context); View view = onCreateView(context); if (view != null) { this.addView(view); } } public View onCreateView(Context context) { return null; } public View inflateView(int layout) { View view = ViewMapper.inflateLayout(getContext(), this, layout); return view; } public void setData(int position,T t) { mData = t; mItemId = position; } }