FragmentActivity:无法解析setContentView

时间:2015-09-01 18:23:22

标签: android-fragments resolve setcontentview

我遇到了以下活动的问题

public class MainActivity extends FragmentActivity implements UpdateActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tabbed_main_activity); <-- error here

我收到了以下错误:Cannot resolve method setContentView(int)

我做错了什么?

PS:我还与http://developer.android.com/training/basics/fragments/fragment-ui.html

进行了交叉核对

0 个答案:

没有答案