如何解决“错误:找不到符号类RecyclerAdapter”

时间:2019-02-08 05:41:29

标签: android android-studio

    if (apps.size() > 1) {
            mAdapter = new RecyclerAdapter(apps);
            mAdapter.notifyDataSetChanged();
        }

     recyclerView.setItemAnimator(new SlideInLeftAnimator());
//                RecyclerView recyclerView = (RecyclerView) findViewById(R.id.list);
//                recyclerView.setItemAnimator(new SlideInUpAnimator(new OvershootInterpolator(1f)));

                    recyclerView.getItemAnimator().setAddDuration(10000);

                    mAdapter = new RecyclerAdapter(apps);
                    RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity().getApplicationContext(), LinearLayoutManager.HORIZONTAL, false);
                    recyclerView.setLayoutManager(mLayoutManager);
                    recyclerView.setItemAnimator(new SlideInUpAnimator(new OvershootInterpolator(1f)));
                    recyclerView.computeHorizontalScrollExtent();
                    recyclerView.setAdapter(mAdapter);
                    getAllICONS();

我正在编辑一个Android应用程序的代码,并面对4个错误的问题,所有这4个错误都是相同的,以下是错误消息 错误:找不到符号类RecyclerAdapter

请检查并消除该问题。 谢谢

试图清理代码并重建,但是并不能解决问题

0 个答案:

没有答案