Hai dichiarato "lb_Name" come Label e l' hai iniziallizzata?
Guarta questo esempio, così funziona:
B4X:
Dim lb_Name As Label
lb_Name.Initialize("")
lb_Name.Typeface =Typeface.CreateNew(Typeface.DEFAULT ,Typeface.STYLE_ITALIC)
lb_Name.TextSize=30
lb_Name.Text="Test Test Test"
Activity.AddView(lb_Name,0,0,100%x,50%y)
Hai dichiarato "lb_Name" come Label e l' hai iniziallizzata?
Guarta questo esempio, così funziona:
B4X:
Dim lb_Name As Label
lb_Name.Initialize("")
lb_Name.Typeface =Typeface.CreateNew(Typeface.DEFAULT ,Typeface.STYLE_ITALIC)
lb_Name.TextSize=30
lb_Name.Text="Test Test Test"
Activity.AddView(lb_Name,0,0,100%x,50%y)
Ciao Filippo, grazie per la risposta
si ho dichiarato e inizializzato la label, TextSize e bold lo prende
non prende lo style ITALIC!
testato su emulatore 2.3.3 e samsung galaxy s2 2.3.5
da desingner funziona
emulatore 4.2.1 FUNZIONA!!!
sono nuovo in questo UNIVERSO... sai mica darmi una spigazione?
Grazie ancora
saluti Dey
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.