Created
June 22, 2018 15:14
-
-
Save manojbhadane/43e966db7be14a429a7e226d7aa012e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SampleAdapter extends GenericAdapter<Model, ListitemGenericAdapterBinding> { | |
public SampleAdapter(Context context, ArrayList<Model> arrayList) { | |
super(context, arrayList); | |
} | |
@Override | |
public int getLayoutResId() { | |
return R.layout.listitem_generic_adapter; | |
} | |
@Override | |
public void onBindData(Model model, int position, ListitemGenericAdapterBinding dataBinding) { | |
dataBinding.txtName.setText("Model " + position); | |
} | |
@Override | |
public void onItemClick(Model model, int position) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment