Answers for "dynamically create textview and add it in linearlayout in recyclerview adapter android"

0

dynamically create textview and add it in linearlayout in recyclerview adapter android

// Inside myViewHolder
LinearLayout linearLayout = itemView.findViewById(R.id.notebody);
// Inside onBindViewHolder
TextView txt = new TextView(holder.linearLayout.getContext());
holder.linearLayout.addView(imageView);
Posted by: Guest on March-02-2022

Code answers related to "dynamically create textview and add it in linearlayout in recyclerview adapter android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language