0

我真的想从选项卡视图中的一个活动移动到同一选项卡中的另一个活动。

public void onClick (View view) {
    // This creates an intent to call the 'Called' activity             
    i1 = new Intent(this.getBaseContext(),Called.class);

    // calls the method to replace View.    
    replaceContentView("Called", i1);
}
4

1 回答 1

0

尝试这个...

TabSpec spec=...//our tabSpec
Intent intent = new Intent(this.getBaseContext(), Called.class);
spec.setContent(videosIntent);
于 2012-09-11T12:33:48.940 回答