Alberto Michelis Well-Known Member Licensed User Longtime User Apr 24, 2021 #1 Hi, I have an activity with some drops, etc to draw a graph, the graph is drawn when the user clicks on a button. When the graph appears the button stays over the graph, other views stays in the background but this button no. Why? please see pics. Attachments 1.png 258 KB · Views: 378 2.png 309.9 KB · Views: 369
Hi, I have an activity with some drops, etc to draw a graph, the graph is drawn when the user clicks on a button. When the graph appears the button stays over the graph, other views stays in the background but this button no. Why? please see pics.
LucaMs Expert Licensed User Longtime User Apr 24, 2021 #2 Designer - Move the button to the bottom of the "Views tree". Upvote 0
Alberto Michelis Well-Known Member Licensed User Longtime User Apr 24, 2021 #3 Its just moved to the last position. The graph is not a view in the designer. Upvote 0
LucaMs Expert Licensed User Longtime User Apr 24, 2021 #4 Alberto Michelis said: The graph is not a view in the designer. Click to expand... B4X: Copy Sub SetElevation(v As View, e As Float) Dim jo As JavaObject Dim p As Phone If p.SdkVersion >= 21 Then jo = v jo.RunMethod("setElevation", Array As Object(e)) End If End Sub Try passing to it 4 (e) or more (and your button, of course) Upvote 0
Alberto Michelis said: The graph is not a view in the designer. Click to expand... B4X: Copy Sub SetElevation(v As View, e As Float) Dim jo As JavaObject Dim p As Phone If p.SdkVersion >= 21 Then jo = v jo.RunMethod("setElevation", Array As Object(e)) End If End Sub Try passing to it 4 (e) or more (and your button, of course)
LucaMs Expert Licensed User Longtime User Apr 24, 2021 #6 Alberto Michelis said: same problem Click to expand... Probably the button is not placed directly on the Activity; use that SetElevation passing to it the "top level parent" of the button. OR INCREASE the "e" parameter, pass 10 to the routine. Upvote 0
Alberto Michelis said: same problem Click to expand... Probably the button is not placed directly on the Activity; use that SetElevation passing to it the "top level parent" of the button. OR INCREASE the "e" parameter, pass 10 to the routine.
LucaMs Expert Licensed User Longtime User Apr 24, 2021 #7 Sorry, I was doing too much things. You have the opposite problem!!! If other views disappear, you should check where they are etc. Anyway, you can increase the elevation of the graph, using that routine. Upvote 0
Sorry, I was doing too much things. You have the opposite problem!!! If other views disappear, you should check where they are etc. Anyway, you can increase the elevation of the graph, using that routine.
Alberto Michelis Well-Known Member Licensed User Longtime User Apr 24, 2021 #8 it works elevating the graph. Thanks! Upvote 0