注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

你想快速掌握安卓编程吗

 
 
 

日志

 
 

[类]空白闪屏(一)  

2015-09-30 12:21:09|  分类: B.图形 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |


Main活动视图

#Region  Project Attributes 
#ApplicationLabel: B4A Example
#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
'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 BlankScreen As SLBlankScreen
Dim CoverPnl As Panel
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("1") 'Main Layout
'Maximise the cover panel. A touch will pass through the blank screen so needs to be dealt with in the app
'Here we just turn off the blank screen
CoverPnl.SetLayout(0,0,100%x,100%y)
'Turn off the cover panel for normal app running
CoverPnl.Visible = False
'Initialize the blank screen
BlankScreen.Initialize(Activity,Null)
ShowBlankScreen
End Sub
Sub ShowBlankScreen
BlankScreen.Show
CoverPnl.Visible = True
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
Sub CoverPnl_Click
Log("TestPnl Clicked...")
BlankScreen.Hide
CoverPnl.Visible=False
End Sub

  评论这张
 
阅读(128)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017