C catyinwong Active Member Licensed User Longtime User May 17, 2022 #1 I am trying to add a view to the bbcodeview panel (such as a colored frame) B4X: Copy 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?
I am trying to add a view to the bbcodeview panel (such as a colored frame) B4X: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User May 18, 2022 #2 This is not the correct way to add views to BBCodeView. You should use the "view" tag. See the example: https://www.b4x.com/android/forum/t...t-engine-bbcode-parser-rich-text-view.106207/ Upvote 0
This is not the correct way to add views to BBCodeView. You should use the "view" tag. See the example: https://www.b4x.com/android/forum/t...t-engine-bbcode-parser-rich-text-view.106207/
C catyinwong Active Member Licensed User Longtime User May 18, 2022 #3 Erel said: This is not the correct way to add views to BBCodeView. You should use the "view" tag. See the example: https://www.b4x.com/android/forum/t...t-engine-bbcode-parser-rich-text-view.106207/ Click to expand... I know but views added in the view tag will be listed within the content, like the button in the example. But what i want to do is to add somthing like a background frame i.e. the text and conent appears at its fronter layer. Upvote 0
Erel said: This is not the correct way to add views to BBCodeView. You should use the "view" tag. See the example: https://www.b4x.com/android/forum/t...t-engine-bbcode-parser-rich-text-view.106207/ Click to expand... I know but views added in the view tag will be listed within the content, like the button in the example. But what i want to do is to add somthing like a background frame i.e. the text and conent appears at its fronter layer.
Erel B4X founder Staff member Licensed User Longtime User May 18, 2022 #4 Check this example: https://www.b4x.com/android/forum/t...o-a-piece-of-text-is-possible.120429/#content Make sure to disable lazy loading. Upvote 0
Check this example: https://www.b4x.com/android/forum/t...o-a-piece-of-text-is-possible.120429/#content Make sure to disable lazy loading.