Android Question Floating windows class backgroud

juniorteacher

Member
Licensed User
Longtime User
how to set background in floating windows class?

B4X:
Sub Globals
dim drag1 As ClsFloatingWindow
dim panel1 as panel
end sub

Sub Activity_Create(FirstTime As Boolean)
  Activity.LoadLayout("game3")
   drag1.Initialize(Panel1, 5%x, 40%y, 30%x, 10%y, Me)
   drag1.EnableTitleBar(False)
   drag1.SetBackground(LoadBitmap(File.DirAssets,"g3 soal1 0.png")) ' getting error in here
end sub
 

juniorteacher

Member
Licensed User
Longtime User
thanks for the answer...
getting error because i don't know what meaning this :
Background = a valid drawable
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…