B4A Library LicenseView V1.0.0

Similar threads

B4A Library PDFium - Pdfview2
B4A Library msEmoji V1.0.0
B4A Library CreditsRollView V1.0.0
B4A Library IPCamView
B4A Tutorial [java] Custom View with Designer Support (Java library)
B4A Library SnakeView

DonManfred

Expert
Licensed User
This is a wrapper for this github project.

Lars Werkman on https://github.com/LarsWerkman/LicenseView
LicenseView

A quick little library I made, because I needed to add Licenses to my app. The only solutions I could find on the internet they used Webviews. I didn't want to make use of a webview so that's why I made this library, as a fun little side project.


LicenseView
Version:
1
  • LicenseView
    Fields:
    • ba As BA
    Methods:
    • AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
    • 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)
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int
 

Attachments

Last edited:

DonManfred

Expert
Licensed User
I dont have any good experiences with DIALOGS. Sorry, i cant... but you should be able to place the view in a dialog when there are libraries for dialogs where you can add own views on it... I dont know.

I would suggest using an activity for it
 

LucaMs

Expert
Licensed User
Create a "dialog" is very simple.

A parent panel - full screen, with transparent color, set to invisible.
A child panel with some views.
Intercept the click (or touch) of the parent (just write a routine click empty) [EDIT: touch event, better, with "Return True"]
Change the visibility of the parent when you want to display / hide the dialog (show/hide).
 
Last edited:

bluedude

Well-Known Member
Licensed User
WOuld be much better to create a Markdown library, that is a standard on the web to show rich info without the heavy load of HTML.
 
Top