小编Sha*_*ani的帖子

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

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)

android-studio

5
推荐指数
1
解决办法
1196
查看次数

标签 统计

android-studio ×1