android - Display view defined inside activity -


I have an activity 'A' which is called main activity until the timer runs out.

A is said to attract pulses until the timer is over

  public class A extended activity {* some code * public class NestedView expands {public View {canvas canvas} on the zero {* Drag the pulses}}} I want to display the "pulse view" in the main "XML", which already has some buttons and scrollers, text boxes and so on. How can I reserve a part of the screen to display the pulses? I can not recreate the XML file because the above pulses are dynamic and in the image there is a red line entering the X axis for the user defined time. 

You can not have "A" activity and main activity at the same time.

Instead, create a new view and add it to the layout in main.xml. See the documentation for an example It seems that section titled shape diagram can meet your needs.

Edit: You can view the view from within your activity by calling (MyView) findViewById (R.id.my_view) From there, you can configure your view Must be able to share priorities, etc.

Also, it can be useful when updating the UI on the timer.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -