Android Question load font and changing some views typeface at runtime

Hello everyone.
I have an EditText in my app and I want to change its typeface at runtime.
How can I do that?
This is my code
B4X:
Sub changeFont
    'FileDialog
    Dim fd As FileDialog
    fd.FilePath = File.DirRootExternal
    Dim sf As Object = fd.ShowAsync("Select file", "Yes", "Cancel", "", Null, False)
    Wait For (sf) Dialog_Result(Result As Int)
    If Result = DialogResponse.POSITIVE Then
        File.Copy(fd.FilePath,fd.ChosenName,File.DirInternal,"Font.ttf")
        EditText1.Typeface = ????
    End If
End Sub
 
Top