Skip to content

Instantly share code, notes, and snippets.

@pwittchen
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwittchen/9923557 to your computer and use it in GitHub Desktop.
Save pwittchen/9923557 to your computer and use it in GitHub Desktop.
public class SampleActivity extends Activity implements SampleView {
@InjectView(R.id.sample_textview)
private sampleTextView;
private SampleController controller;
@Override
public displayData(String data) {
sampleTextView.setText(data);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.controller = new SampleController(this);
}
@Override
protected void onResume() {
super.onResume();
controller.generateData();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment