在执行主细节流程中我得到2个错误1 - 错误:(77,24)错误:找不到符号类ItemListActivity

Sha*_*ani 5 android-studio

public static class SimpleItemRecyclerViewAdapter
        extends RecyclerView.Adapter<SimpleItemRecyclerViewAdapter.ViewHolder> {

    private final  ItemListActivity mParentActivity;
    private final List<DummyContent.DummyItem> mValues;
    private final boolean mTwoPane;
    private final View.OnClickListener mOnClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            DummyContent.DummyItem item = (DummyContent.DummyItem) view.getTag();
            if (mTwoPane) {
                Bundle arguments = new Bundle();
                arguments.putString(WebpageDetailFragment.ARG_ITEM_ID, item.id);
                WebpageDetailFragment fragment = new WebpageDetailFragment();
                fragment.setArguments(arguments);

                mParentActivity.getSupportFragmentManager().beginTransaction()
                        .replace(R.id.webpage_detail_container, fragment)
                        .commit();
Run Code Online (Sandbox Code Playgroud)

小智 14

在创建活动的向导期间更改默认项名称时会发生这种情况.只需重命名ItemListActivity 为您的活动名称.(具有该代码错误的文件的名称).使用重构重命名在任何地方改变它.