码迷,mamicode.com
首页 > 移动开发 > 详细

Basic4android中使用透明按钮

时间:2014-07-17 18:24:46      阅读:326      评论:0      收藏:0      [点我收藏+]

标签:android   des   blog   http   color   使用   

#Region  Project Attributes 
	#ApplicationLabel: B4ATransparentButton
	#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.

	Private Button1 As Button
	Dim cd As ColorDrawable 
	Dim bmp As Bitmap 
	
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")
	bmp.Initialize(File.DirAssets,"1.jpg")
	Activity.SetBackgroundImage(bmp)
	cd.Initialize (Colors.ARGB (100,0,0,0),5)
	Button1.Initialize("Button1")
	Button1.Background =cd
	
		
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

bubuko.com,布布扣

Basic4android中使用透明按钮,布布扣,bubuko.com

Basic4android中使用透明按钮

标签:android   des   blog   http   color   使用   

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

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