Android Question how to plot a textlabel over a graphic plot

Discussion in 'Android Questions' started by MbedAndroid, Jun 23, 2015.

  1. MbedAndroid

    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
  2. Cableguy

    Cableguy Expert Licensed User

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

    For each v as label in activity.getviewsrecursive
    to front
    *this is just an example and may not work as is, start by searching "getviewsrecursive"
  3. MbedAndroid

    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)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice