Android - create TextView (or EditText) programmatically and set it in a specific place on the screen giving coordinates
问题 I am building an android app where the user paints some objects in the screen. One type of object is a Text object. The user creates the object by dragging his finger and the object is shown as a rectangle that can be moved/reshaped. When user taps the text object, I launch a new activity where user enters text which I return on the onActivityResult method. Now I want to show the text in the object. I can have access to stuff as the coordinates of the Rectangle etc from my text class. What I