Android Question TabHost Background

Douglas Farias

Expert
Licensed User
Longtime User
Hi all
how can i change the tabhost background *-* ?

i m trying this

B4X:
    Dim bmp1 As Bitmap
    Dim bmp As BitmapDrawable
    bmp1.Initialize(File.DirAssets, "bg_login_background.png")
    bmp.Initialize(bmp1)
    TabHost1.Background(bmp)

but dont work

B4X:
TabHost1.Background(bmp1)

dont work too =(

when i try debug give me error array expected on
B4X:
TabHost1.Background(bmp)

how to load a background *-*
 

sorex

Expert
Licensed User
Longtime User
I'm not sure if that is possible, you can change the background color but then it all looks kind of strange.

why not just add the background in each panel as imageview?
 
Upvote 0
Top