RecyclerViews listItem x,y coordinates android -
how x , y coordinates of recyclerview listitem . have tried below methods returning 0 .any appreciated
@override public void onbindviewholder(viewholder holder, int position) { int x,y; int arr[] =new int[2]; holder.imageview.getlocationonscreen(arr); log.d(tag,"x axis:"+arr[0]+",arr[1]:"+arr[1]); float d = holder.imageview.getwidth(); log.d(tag,"diameter 3:"+holder.itemview.getheight()); log.d(tag,"right:"+holder.itemview.getmeasuredwidth()); }
Comments
Post a Comment