Android Question [Solved] Can I translate the MadeWithLove and have a link in B4X word?

asales

Well-Known Member
Licensed User
I think that to my language is more understandable using this phrase:
Feito comusando B4X

and have a highlight clickable in the "B4X" word redirect to B4X site.
 

DonManfred

Expert
Licensed User
Isn´t it a b4xlib?
you can extract the source and change it
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
B4A_YBb3K2ineo.png


B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Main")
    ChangeTextAndMakeClickable(MadeWithLove1)
End Sub

Sub ChangeTextAndMakeClickable (love As MadeWithLove)
    Dim cs As CSBuilder
    cs.Initialize.Append("Feito com ").Typeface(Typeface.FONTAWESOME).Color(xui.Color_Red).Append(Chr(0xF004)).Pop.Pop _
        .Append(" usando ").Clickable("cs", "").Underline.Color(xui.Color_Blue).Append("B4X").PopAll
    Dim lbl As Label = love.mBase.GetView(0)
    cs.EnableClickEvents(lbl)
    lbl.Text = cs
End Sub

Sub cs_Click (Tag As Object)
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, "https://www.b4x.com")
    StartActivity(i)
End Sub
 
Upvote 0
Top