Exemplo n.º 1
0
 @Test
 public void shouldGetTabWidget() throws Exception {
   TabActivity activity = new TabActivity();
   activity.setContentView(R.layout.tab_activity);
   assertThat(activity.getTabWidget(), instanceOf(TabWidget.class));
 }
 public void setContentView(View view) {
   super.setContentView(view);
   JActivityManager.getInstance().getInjector().injectView(this);
 }
 public void setContentView(int layoutResID) {
   super.setContentView(layoutResID);
   JActivityManager.getInstance().getInjector().injectView(this);
 }
 public void setContentView(View view, ViewGroup.LayoutParams params) {
   super.setContentView(view, params);
   JActivityManager.getInstance().getInjector().injectView(this);
 }