INNER CODE UNIT · Java

buildFor

florent37/ShapeOfView · app/src/main/java/io/github/florent37/shapeofview/sample/ErrorActivity.java:84

        public static MyViewHolder buildFor(ViewGroup viewGroup) {
            return new MyViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(LAYOUT, viewGroup, false));
        }

        ImageView img_flyer_list;
        TextView tv_cell_title;
        TextView tv_cell_description;

        public void bind(Object o){
            img_flyer_list.setImageDrawable(ContextCompat.getDrawable(itemView.getContext(), R.drawable.shape_of_view_shoes));
            tv_cell_title.setText("My event");
            tv_cell_description.setText("My desc");
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…