Answers for "how to set adapter in recyclerview in android"

0

how to set adapter in recyclerview in android

mAppAdapter = new AppAdapter(mModel); // or whatever constructor you want
recyclerView.setAdapter(mAppAdapter);
Posted by: Guest on June-19-2021
-1

recyclerview layout oncreatw

@Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_listitem,parent,false);
        ViewHolder Holder = new ViewHolder(view);
        return Holder;
    }
Posted by: Guest on May-23-2020

Code answers related to "how to set adapter in recyclerview in android"

Browse Popular Code Answers by Language