I have a button that create a text view at a coordinate in a relative layout, what I want to do is check to see if a text view is already created at that position so that i can create the text view somewhere else.
To sum it up, my question is how to check to see if another view is at location x and y? Here is the creation code:
@Override
public void onClick(View v) {
DragTextView textview = MainActivity.createTextView(context);
textview.setX(getX()+getWidth()+30);
textview.setY(getY()+getHeight()+30);
}