Is there a way to add a custom font to the list of choices to select from in the designer. Am adding alot of labels and textviews in my app and is alot typing to set the font for each one at run time.
You cannot add a custom font in the designer. However you can do something like:
B4X:
For i = 0 To Activity.NumberOfViews - 1
If Activity.GetView(i) Is Label Then
'this will change the font to Labels, EditText, Buttons and other views with text.
Dim l As Label
l = Activity.GetView(i)
l.Typeface = ...
End If
Next
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.