-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextCrumbs.b4a
61 lines (54 loc) · 1.55 KB
/
TextCrumbs.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
Build1=Default,LongText.LongText
File1=LongText.bal
FileGroup1=Default Group
Group=Default Group
Library1=core
Library2=xui
ManifestCode=
Module1=TextCrumbs
NumberOfFiles=1
NumberOfLibraries=2
NumberOfModules=1
Version=12.2
@EndOfDesignText@
#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: TextCrumbs
#VersionCode: 1
#VersionName: epiCode
#SupportedOrientations: unspecified
#End Region
'Activity module
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 lblText As B4XView
Dim tc1 As TextCrumbs
Dim tc2 As TextCrumbs
Dim tc3 As TextCrumbs
Dim tc4 As TextCrumbs
Dim crumblist As List
Private hsv1 As HorizontalScrollView
Private Label1 As B4XView
Private Label2 As B4XView
Private Label3 As B4XView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("LongText")
lblText.RemoveViewFromParent
hsv1.Panel.AddView(lblText,0,0,lblText.Width,lblText.Height)
crumblist.Initialize
crumblist.AddAll(Array As String("Home","Android","Settings","Display","Brightness","Auto update"))
tc1.Initialize(Me,"crumbs",crumblist,lblText," > ")
tc2.Initialize(Me,"crumbs",crumblist,Label1," | ")
tc3.Initialize(Me,"crumbs",crumblist,Label2," ][ ")
tc4.Initialize(Me,"crumbs",crumblist,Label3,"\")
End Sub
Sub crumbs_Clicked ( Position As Int)
Log(Position)
End Sub