码迷,mamicode.com
首页 > 其他好文 > 详细

利用RemoveAllView实现切换窗口

时间:2014-06-19 07:55:52      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:des   class   blog   code   tar   ext   

#Region  Project Attributes 
	#ApplicationLabel: SwitchingWindow
	#VersionCode: 20140615
	#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.

	Private Button1 As Button
	Private Button2 As Button
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("Layout1")
	Activity.LoadLayout("1") ‘ 加载布局文件(BAL),返回已加载的布局的LayoutValues??

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub Button1_Click
	Dim i As LayoutValues
	
	Activity.RemoveAllViews ‘ 移除全部试图
	i = Activity.LoadLayout("2") 
	Log("button1 " & i)
	‘ button1 320 x 480, scale = 1.0 (160 dpi)

End Sub
Sub Button2_Click
	Dim i As LayoutValues 
	
	Activity.RemoveAllViews ‘ 移除全部试图
	i = Activity.LoadLayout("1")
	Log("button2 " & i)
	‘ button2 320 x 480, scale = 1.0 (160 dpi)

End Sub

 

利用RemoveAllView实现切换窗口,布布扣,bubuko.com

利用RemoveAllView实现切换窗口

标签:des   class   blog   code   tar   ext   

原文地址:http://www.cnblogs.com/moodsky/p/3789437.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!