Android Question Addview to bbcodeview

catyinwong

Active Member
Licensed User
Longtime User
I am trying to add a view to the bbcodeview panel (such as a colored frame)

B4X:
Bbcodeview1.text = $"testing"$

Dim pnl as b4xview = xui.createpanel("")
Bbcodeview1.sv.Scrollviewinnerpanel.addview(pnl,0,0,100%x,30dip)
pnl.color = xui.color_lightgtay
pnl.sendtoback

It came out with something as I wanted at the beginninf, the pnl acting like a gray-coloured background frame. But when the bbcodeview is once scrolled down and back to the top, the pnl will be sent to the front and thus blocking the bbcodeview content. Any way to solve it or a better way to draw a background frame here?
 

catyinwong

Active Member
Licensed User
Longtime User
Upvote 0
Top