-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoading.b4a
75 lines (56 loc) · 1.98 KB
/
Loading.b4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Build1=Default,b4a.example
Group=Default Group
Library1=core
ManifestCode='This code will be applied to the manifest file during compilation.~\n~'You do not need to modify it in most cases.~\n~'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136~\n~AddManifestText(~\n~<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="30"/>~\n~<supports-screens android:largeScreens="true" ~\n~ android:normalScreens="true" ~\n~ android:smallScreens="true" ~\n~ android:anyDensity="true"/>)~\n~SetApplicationAttribute(android:icon, "@drawable/icon")~\n~SetApplicationAttribute(android:label, "$LABEL$")~\n~CreateResourceFromFile(Macro, Themes.LightTheme)~\n~'End of default text.~\n~
Module1=BMX_Loading
Module2=Starter
NumberOfFiles=0
NumberOfLibraries=1
NumberOfModules=2
Version=11.8
@EndOfDesignText@
#Region Project Attributes
#ApplicationLabel: Made By PuzzleTak
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
End Sub
Sub Globals
Dim loader As BMX_Loading
End Sub
Sub Activity_Create(FirstTime As Boolean)
loader.Initialize("loader")
Activity.AddView(loader.AsView,10%x,50%y - 10%x,80%x,2%x)
loader.initLib
loader.RadiusLoader = 10
Dim b As Button
b.Initialize("b")
Activity.AddView(b,10%x,100%y - 10%x,80%x,10%x)
b.Text = "start"
Dim bx As Button
bx.Initialize("bx")
Activity.AddView(bx,10%x,100%y - 20%x,80%x,10%x)
bx.Text = "chenge color"
End Sub
Sub bx_Click
loader.ColorLoader = Colors.RGB(Rnd(50,200),Rnd(50,200),Rnd(50,200))
End Sub
Sub b_Click
If loader.isRun Then
loader.stop
Else
loader.start
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub