Back to project page sres.
The source code is released under:
Apache License
If you think the Android project sres 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 me.tatarka.sres.sample; /*from w w w . j av a2s .c o m*/ import android.content.Context; import android.util.AttributeSet; import android.view.View; import layout.ListItem; /** * Created by evan on 3/22/14. */ public class MyListItemView extends ListItem { public MyListItemView(Context context) { super(context); } public MyListItemView(Context context, AttributeSet attrs) { super(context, attrs); } public MyListItemView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void bind(final MyListItem model) { super.bind(model); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { model.remove(); } }); } }