コード例 #1
0
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   // getLoaderManager is actually needed to be called here or the loaders magically
   // won't work, wtf is this bullshit
   getLoaderManager();
   view = (DemoView) View.inflate(this, R.layout.demo, null);
   view.setViewListener(viewListener);
   setCalendarModel(new DemoModel());
   setContentView(view);
 }
コード例 #2
0
 public DemoController setCalendarModel(DemoModel model) {
   this.model = model;
   view.setModel(model);
   return this;
 }