Android Question How to add views at runtime (Heat Map)

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Hi,
Im trying to reproduce a Heat Map routine. (see image)
I need to create rectangles in a panel of the activity.
May be 20 or 50 or... I dont know how much.
How can I do it?
Which view type to use? and how to create it at runtime?
Thanks
 

Attachments

  • 2015-08-07_0821.png
    2015-08-07_0821.png
    6.3 KB · Views: 220

LucaMs

Expert
Licensed User
Longtime User
What is the question, exactly? It seems a simple activity (or panel) with some panels + labels.

If you have a panel as container, as usual you should use pnlContainer.AddView...


[If the colors is the question, you can set some different values of Red - using RGB or ARGB]
 
Upvote 0
Top