今、私は円であるImgeViewを持っていて、その円の中心点を見つけたいので、次のコードを試しましたが、機能していないようです
int[] location = new int[2];
imageView.getLocationOnScreen(location);
int radius=imageView.getHeight()/2;
int[] center=new int[2];
center[0]=location[0]+radius;
center[1]=location[1]+radius;
それで、私が「場所」によって得た座標は、imageviewのトップポイントであるかどうか?
イメージビューの中心点を取得する方法を教えてください。