Skip to content

Instantly share code, notes, and snippets.

@bperin
Created December 20, 2014 00:17
Show Gist options
  • Save bperin/4febf3b16f78157c2a0e to your computer and use it in GitHub Desktop.
Save bperin/4febf3b16f78157c2a0e to your computer and use it in GitHub Desktop.
@EViewGroup(R.layout.viewholder)
public class FeedViewHolder extends RelativeLayout{
@ViewById(R.id.tvName)
TextView tvName;
public FeedViewHolder(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
// TODO Auto-generated constructor stub
}
public FeedViewHolder(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
}
public FeedViewHolder(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
public void bind(Snap snap){
tvName.setText(snap.getVideo());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment