A (partly) wrap for this Github project.
Sure you will know what to do with the attached files (eg jar's and xml's). Also posting the Java code for whoever wants to do anything else with it.
Sample Code:
Sure you will know what to do with the attached files (eg jar's and xml's). Also posting the Java code for whoever wants to do anything else with it.
Sample Code:
B4X:
#Region Project Attributes
#ApplicationLabel: b4aAwesomeQRCode_1
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
'#AdditionalRes: ..\DemoRes
#AdditionalRes: ..\LibRes
#AdditionalRes: ..\resource
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim aqrc As AwesomeQRCode_1
Dim bm, bm1 As Bitmap
Private ImageView1 As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("main")
bm.Initialize(File.DirAssets, "1.jpg")
bm1.Initialize(File.DirAssets, "b4a.png")
aqrc.Initialize("")
aqrc.autoColor(False)
aqrc.contents("https://www.b4x.com/android/forum/")
aqrc.background(bm)
aqrc.dotScale(0.8)
aqrc.logoScale(0.35)
aqrc.logoMargin(20)
aqrc.logoRadius(10)
' aqrc.logo(bm1)
aqrc.binarizeThreshold(128)
aqrc.binarize(False)
aqrc.colorDark(Colors.Black)
aqrc.colorLight(Colors.Transparent)
aqrc.margin(30)
aqrc.roundedDots(False)
aqrc.whiteMargin(True)
ImageView1.Bitmap = aqrc.render
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub