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] Light theme B4XDateTemplate
Many more options: https://www.b4x.com/android/forum/threads/b4x-share-your-b4xdialog-templates-theming-code.131243 Example of customizing B4XDialog and B4XDateTemplate. Sub SetLightTheme Dialog.TitleBarColor = 0xFFFF7505 Dialog.TitleBarHeight = 80dip Dim TextColor As Int =...
www.b4x.com
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