B4A Library LicenseView V1.0.0

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.

68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f2d7236644c32316b67567a6f2f556c38636f7a4b6b4752492f41414141414141414179382f51383959584457346f346b2f2f53637265656e73686f745f323031332d31302d31372d30302d32322d33395f6672616d65642e706e67


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

  • libLicenseViewV1.0.0.zip
    8.2 KB · Views: 349
  • LicenseViewEx.zip
    9.9 KB · Views: 390
Last edited:

DonManfred

Expert
Licensed User
Longtime 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
Longtime 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:

jahswant

Well-Known Member
Licensed User
Longtime User
Sure you are trying to help.But i don't understand a snippet will be easily understood.
 

bluedude

Well-Known Member
Licensed User
Longtime 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