Getting component name by coordinates on android automation

Getting component name by coordinates on android automation

I want to automate my android application UI using coordinates. Because of measuring perfect position of the component.
I need the result like, If i send X and Y value the code should return component name(button or text field etc) which is located in the place of coordinates.

Whether it is possible to get component name or whole attributes using ordinates?
Possible means please provide one good example. Please anyone help me on this.