Android Question How to set Text Size in BCTextEngine via code?

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I have codes like these
B4X:
Sub Globals
    Private BBHelp As BBCodeView
    Private TextEngine As BCTextEngine
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("lyHelp")
    TextEngine.Initialize(Activity)
    BBHelp.mBase.TextSize = 18
End Sub

Got an error :
java.lang.RuntimeException: Type does not match (class anywheresoftware.b4a.BALayout)

How to set BBHelp text size via code?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…