Basic4android中使用透明按钮
#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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。