Android Question [B4X] Light theme B4XDateTemplate

fbritop

Active Member
Licensed User
Longtime User
Regarding the post at:

It works with B4A, but not with B4I.
I have logged the getType(x) in B4I leading to UIButton. But there is no way, even treating it as a B4XView, that the text color can be changed. Am I missing something regarding B4I and the templates?

B4X:
    For Each x As B4XView In Array(dateTemplate.btnMonthLeft, dateTemplate.btnMonthRight, dateTemplate.btnYearLeft, dateTemplate.btnYearRight)
        x.Color = Colors.Gray
        x.TextColor=xui.Color_Cyan'Colors.Red 'col.clrBlack
        #if b4i
        'Dim btn As Button=x
        'btn.TintColor=col.clrBlack
        #End If
        Log(GetType(x))
    Next
 
Top