#Region Project Attributes
#ApplicationLabel: b4aShelfView
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#AdditionalRes: ..\LibRes
#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.
Private sv1 As ShelfView
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")
Dim url() As String = Array As String("http://eurodroid.com/pics/beginning_android_book.jpg", _
"http://eurodroid.com/wp3/wp-content/uploads/2014/10/samsung-galaxy-a5.jpg", _
"http://3.bp.blogspot.com/-aDUhP55KerE/UGbxmCkyKOI/AAAAAAAAKM8/Ms7Hs6Ln524/s1600/cover.png", _
"https://raw.githubusercontent.com/emmby/android-For-dummies-v3/master/assets/book-cover.png", _
"http://devproconnections.com/site-files/devproconnections.com/files/uploads/2014/06/Riley%20DCM1061%20Pro_Android_book_cover.jpg", _
"http://whatpixel.com/images/2016/08/android-programming-pushing-the-limits.jpg", _
"http://www.lopez-manas.com/wp-content/uploads/2015/07/cover-Kopie-212x300.png", _
"https://www.packtpub.com/sites/default/files/9781785883262.png")
Dim index() As String = Array As String("1", "2", "3", "4", "5", "6", "7", "8")
Dim bookname() As String = Array As String("Beginning Android", _
"Samsung", _
"Smashing Android UI", _
"Android For Dummies V3", _
"Professional Android Programming", _
"Pushing The Limits", _
"100 Questions and Answers", _
"Android Programming for Beginners")
sv1.loadFromURL(url, index, bookname)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub sv1_book_clicked(position As Int, bookId As String, bookTitle As String)
Log("position = " & position)
Log("book ID = " & bookId)
Log("book Title = " & bookTitle)
End Sub