I have an activity 'A' which is called from Main activity every second until timer ends.
A is called to draw pulses until timer ends
public class A extends Activity
{
*some code*
public class NestedView extends View
{
public void onDraw(Canvas canvas)
{
* draw pulses
}
}
}
I want to display the "pulses view" in main.xml which already has some buttons and scrollers, text boxes etc. How can I reserve a portion of screen for this pulses to be displayed. I cannot redo the xml file because the above pulses are dynamic and the image has a red line traversing across x axis for user defined time.