Skip to content

Instantly share code, notes, and snippets.

@javikin
Created December 1, 2017 01:16
Show Gist options
  • Save javikin/9dce15b3c5b2da013a5acacbc991a164 to your computer and use it in GitHub Desktop.
Save javikin/9dce15b3c5b2da013a5acacbc991a164 to your computer and use it in GitHub Desktop.
public class MainActivity extends Activity implements MyAdapter.CallBackItemList{
...
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
mAdapter = new MyAdapter(myDataset, this);
...
}
@Override
public void onClickActionItemList() {
Toast.makeText(this, "Yellow Item", Toast.LENGTH_SHORT).show();
}
@Override
public void onClickActionButtonItemList() {
Toast.makeText(this, "Yellow Button", Toast.LENGTH_SHORT).show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment