How to place views in a specific location (x, y coordinates)
I have a problem with placing my views (my class extends View ) in a specific location. I have designed a game that treats the screen as a net of grids. I get from the user x and y coordinates of a specific view (I have different types of views). My first mission is to set the correct view in its place. How can I do it? I am using RelativeLayout for the screen. P.S. I don't want to use AbsoluteLayout params because it was truncated. wsgfz This is not the best way to achieve it, but it's a solution... Create a class that extends your parent ViewGroup , say RelativeLayout or some other ViewGroup