Android Question why my TEXT on label become blur ?

hears

Active Member
Licensed User
Longtime User
i just change label .text in my code ,after many times change , it is became very blur

this is my app picture




this is my code :

B4X:
Sub showtotal 
 
    Private query3 As String
    Private curs3 As Cursor
    Private PNUM As String
    Private ptotal As String
    query3="SELECT SUM(bak) as 'ptotal' FROM cart WHERE bak > 0"  'READ
'HERE  get data from sqlit ,after give to label
    curs3 = SQL1.ExecQuery(query3)
    curs3.Position =0
    ptotal=curs3.GetString("ptotal")
    Log(PNUM)
  'HERE  get data from sqlit ,after give to label
    query3="SELECT SUM(number) as 'pnum' FROM cart WHERE number > 0"
    curs3 = SQL1.ExecQuery(query3)
    curs3.Position =0
    PNUM=curs3.GetString("pnum")
 
    pnumber.Text=PNUM  'here change the TEXT ON LABEL
    Pmoney.Text=ptotal
    curs3.Close
 
End Sub
 
Last edited:

hears

Active Member
Licensed User
Longtime User
added
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
You don't show how you are creating the pnumber label. It looks as though you may be creating a new labels giving you multiple labels at the same position. Without seeing the code, it's not possible to give you a definitive answer.
 
Upvote 0

hears

Active Member
Licensed User
Longtime User
it is same to HINT text ,how to disable it ?label cannot change hint text. i think this this is BUG of B4A
 
Last edited:
Upvote 0

hears

Active Member
Licensed User
Longtime User
pnumber label. I draw this label in Visual Dsigner. after in code send text data to PNUMBER.TEXT

here is my Visual Dsigner picture




'All variants script
AutoScaleAll
clv1.SetTopAndBottom(7%y, 41%y)
clv1.Width=100%x
clv1.SetLeftAndRight(0,100%x)
Panel1.Width=100%x
Panel1.Height=7%y
Panel1.Top=0

barcode.Width=35%x
barcode.Height=7%y
barcode.Left=0
barcode.top=0
Button1.Width=20%x
Button1.Height=7%y
Button1.Right=59%x
Button1.Top=0

ToggleButton1.Width=20%x
ToggleButton1.Height=7%y
ToggleButton1.Right=99%x
ToggleButton1.Top=0
Panel2.SetLeftAndRight(0,100%x)
Panel2.SetTopAndBottom(91%y,100%y)
pnumber.SetTopAndBottom(0,9%y)
Pmoney.SetTopAndBottom(0,9%y)
pnumber.SetLeftAndRight(0,39%x)
Pmoney.SetLeftAndRight(39%x,100%x)

wbvTable.SetLeftAndRight(0,100%x)
clv1.SetLeftAndRight(0,100%x)
wbvTable.SetTopAndBottom(60%y,91%y)
clv1.SetTopAndBottom(7%y,60%y)
 
Upvote 0

hears

Active Member
Licensed User
Longtime User
ok,when i write sample project, i have find reason


Activity.LoadLayout("1")

in my CODE ,i did not put inside
Sub Activity_Create(FirstTime As Boolean)

this is blur reason...after move back, no problem now ... THANKS FOR REPLAYS
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…