B4A Library CodeView

This is a wrap for this github project.

It requires B4A 6+ as it is using an aar file...

The building of the used aar file i showed in this tutorial.


CodeView
Author:
DonManfred (wrapper)
Version: 1
  • CodeView
    Fields:
    • EXAMPLECODE As String
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • fillColor As CodeViewWrapper
    • setEncode (encode As String) As CodeViewWrapper
    • setTheme (theme As CodeViewTheme) As CodeViewWrapper
    • showCode2 (code As String)
    • showCode3 (code As String)
    • showCodeHtmlByClass (localHtml As String, codeClass As String)
    • showCodeHtmlByCssSelect (localHtml As String, cssSelect As String)
    Properties:
    • Background As Drawable
    • BaseUrl As String [write only]
    • CodeBackgroundColor As Int [read only]
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • HistoryUrl As String [write only]
    • Left As Int
    • Parent As Object [read only]
    • Tag As Object
    • ThemeAGATE As CodeViewTheme [read only]
    • ThemeANDROIDSTUDIO As CodeViewTheme [read only]
    • ThemeARDUINO_LIGHT As CodeViewTheme [read only]
    • ThemeARTA As CodeViewTheme [read only]
    • ThemeATELIER_CAVE_DARK As CodeViewTheme [read only]
    • ThemeATELIER_CAVE_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_DUNE_DARK As CodeViewTheme [read only]
    • ThemeATELIER_DUNE_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_ESTUARY_DARK As CodeViewTheme [read only]
    • ThemeATELIER_ESTUARY_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_FOREST_DARK As CodeViewTheme [read only]
    • ThemeATELIER_FOREST_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_HEATH_DARK As CodeViewTheme [read only]
    • ThemeATELIER_HEATH_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_LAKESIDE_DARK As CodeViewTheme [read only]
    • ThemeATELIER_LAKESIDE_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_PLATEAU_DARK As CodeViewTheme [read only]
    • ThemeATELIER_PLATEAU_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_SAVANNA_DARK As CodeViewTheme [read only]
    • ThemeATELIER_SAVANNA_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_SEASIDE_DARK As CodeViewTheme [read only]
    • ThemeATELIER_SEASIDE_LIGHT As CodeViewTheme [read only]
    • ThemeATELIER_SULPHURPOOL_DARK As CodeViewTheme [read only]
    • ThemeATELIER_SULPHURPOOL_LIGHT As CodeViewTheme [read only]
    • ThemeCODEPEN_EMBED As CodeViewTheme [read only]
    • ThemeCOLOR_BREWER As CodeViewTheme [read only]
    • ThemeDARK As CodeViewTheme [read only]
    • ThemeDARKULA As CodeViewTheme [read only]
    • ThemeDEFAULT As CodeViewTheme [read only]
    • ThemeDOCCO As CodeViewTheme [read only]
    • ThemeDRACULA As CodeViewTheme [read only]
    • ThemeFAR As CodeViewTheme [read only]
    • ThemeFOUNDATION As CodeViewTheme [read only]
    • ThemeGITHUB As CodeViewTheme [read only]
    • ThemeGRAYSCALE As CodeViewTheme [read only]
    • ThemeGRUVBOX_DARK As CodeViewTheme [read only]
    • ThemeGRUVBOX_LIGHT As CodeViewTheme [read only]
    • ThemeHOPSCOTCH As CodeViewTheme [read only]
    • ThemeHYBRID As CodeViewTheme [read only]
    • ThemeIDEA As CodeViewTheme [read only]
    • ThemeIR_BLACK As CodeViewTheme [read only]
    • ThemeMONOKAI As CodeViewTheme [read only]
    • ThemeMONOKAI_SUBLIME As CodeViewTheme [read only]
    • ThemeMONO_BLUE As CodeViewTheme [read only]
    • ThemeOBSIDIAN As CodeViewTheme [read only]
    • ThemePARAISO_DARK As CodeViewTheme [read only]
    • ThemePARAISO_LIGHT As CodeViewTheme [read only]
    • ThemePOJOAQUE As CodeViewTheme [read only]
    • ThemePUREBASIC As CodeViewTheme [read only]
    • ThemeQTCREATOR_DARK As CodeViewTheme [read only]
    • ThemeQTCREATOR_LIGHT As CodeViewTheme [read only]
    • ThemeRAILSCASTS As CodeViewTheme [read only]
    • ThemeRAINBOW As CodeViewTheme [read only]
    • ThemeSOLARIZED_DARK As CodeViewTheme [read only]
    • ThemeSOLARIZED_LIGHT As CodeViewTheme [read only]
    • ThemeSUNBURST As CodeViewTheme [read only]
    • ThemeTOMORROW_NIGHT As CodeViewTheme [read only]
    • ThemeTOMORROW_NIGHT_BLUE As CodeViewTheme [read only]
    • ThemeTOMORROW_NIGHT_EIGHTIES As CodeViewTheme [read only]
    • ThemeXCODE As CodeViewTheme [read only]
    • ThemeXT256 As CodeViewTheme [read only]
    • ThemeZENBURN As CodeViewTheme [read only]
    • Top As Int
    • Visible As Boolean
    • Width As Int
 

Attachments

  • CodeViewEx.zip
    7.6 KB · Views: 415
  • CodeViewSRC.zip
    296 KB · Views: 402
  • CodeViewV1.0.zip
    439.4 KB · Views: 427
Last edited:

mshafiee110

Active Member
Licensed User
Longtime User
@DonManfred
Untitled.png
 

tpakis

Active Member
Licensed User
Longtime User
I had a problem with the jsoup jar included in the library, so i deleted it and included this jsoup library for my app to work.
 
Top