Get Width and Height of one row in RecycleView - Android Get Width and Height of one row in RecycleView - Android android android

Get Width and Height of one row in RecycleView - Android


@Overridepublic void onBindViewHolder(final MyAdapter.MyViewHolder holder, int position) { .....    holder.itemView.post(new Runnable()    {        @Override        public void run()        {            int cellWidth = holder.itemView.getWidth();// this will give you cell width dynamically            int cellHeight = holder.itemView.getHeight();// this will give you cell height dynamically        }    });  .....}

I hope this will help you!!