Hello, How can I draw an dynamic view on top of mainscreen in android.
For example I display the main screen using setContentView(R.layout.main); This draws many widgets and includes an image defined in main.xml this way :
<ImageView
android:id="@+id/myImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sinewave"/>
Now if I would like to draw rectangle on this image, how can I do it? Thank you for your time.