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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -