Label with background drawable problem

BudiWang

Member
Licensed User
Longtime User
I have code:

Sub Globals
Dim Label4 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
Dim c As Canvas
Dim r As Rect
Dim cd As ColorDrawable
c.Initialize (Label4)
cd.Initialize(Colors.blue, 10dip)
r.Initialize(0, 0, Label4.width, Label4.height)
c.DrawDrawable(cd, r)
End Sub

but the result the text on label was missing and replace it my rectangle
can u help me to fix so my label text still there?

thanks
 

BudiWang

Member
Licensed User
Longtime User
i think if i use panel and label make memory use alot on device like example i use for chat balloon with background, with many line chat

so i prefer to use only label with backgound we can change, not need to use panel and label together on scrollview custom
just label.

(sorry for bad english)
 
Upvote 0

BudiWang

Member
Licensed User
Longtime User
Problem Solve

just revalue the label.text again ah stupid me
with this method i can made balloon with canvas drawing method, no need 9path or balloon image
 
Upvote 0
Top