B Bill Norris Active Member Licensed User Longtime User Feb 22, 2012 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2012 #3 You cannot add a custom font in the designer. However you can do something like: Code: Copy 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
You cannot add a custom font in the designer. However you can do something like: Code: Copy 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