Android Question how to plot a textlabel over a graphic plot

MbedAndroid

Active Member
Licensed User
Might be a dump question, but couldnt find a topic about it

i got a graphic plot, where is want to put some textlabels in the corners.
Now the text ist overwritten by the plot, as it seems that the textlayer is under the plotlayer. How to solve this? The textlabels are made by the designer, the plot in the code itself
 

Cableguy

Expert
Licensed User
Place a loop for the labels and bring them to front, something like....

B4X:
For each v as label in activity.getviewsrecursive
V.bring to front
Next
*this is just an example and may not work as is, start by searching "getviewsrecursive"
 

MbedAndroid

Active Member
Licensed User
no, that wasnt it. just found the solution. Instead of declaring the label in the designer, you need to add the label to the imageplot, just by activity.addview(x,y,w,h)
 
Top