Reputation: 165
I have tried this code,
float blackCenterX = blackX +black.getWidth() / 2;
but what formula should I use if I am looking for the bottom center coordinates of the image?
Upvotes: 0
Views: 483
Reputation: 2140
Here's how to get the Center|Bottom position of a View:
+-------+
| View |
+---X---+
|
|___ (X = view.width / 2, Y = view.height)
Upvotes: 1