いつもお世話になっております。
質問なんですが
lang
1 <LinearLayout 2 android:layout_width="fill_parent" 3 android:layout_height="wrap_content" 4 android:orientation="vertical"> 5 <ImageView 6 android:id="@+id/imageView" 7 android:contentDescription="desc" 8 android:layout_width="match_parent" 9 android:layout_height="400dp" 10 android:layout_marginTop="80dp" 11 android:layout_marginLeft="20dp" 12 android:layout_marginRight="20dp" 13 android:scaleType="fitCenter" 14 /> 15 </LinearLayout>
と定義したimageviewに画像を貼り付けているのですが、画像のx座標と、y座標の取得の仕方がわかりません。
imageView.getX()とやってしまうとimageView自体のx座標が取得されてしまって、表示されている画像の座標がわからず困っております。
取得する方法はあるのでしょうか?
よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/02/26 04:51