Android Question Failure in changing color of title

novi1364

New Member
Hi, I am running Android programs in a real mobile phone using "b4a_bridge apk". I am using the code of "Activity.TitleColor= Colors.Red" to change the color of title but the color does not change. What's my mistake? the codes I have used are as follows:
******************************
Sub Globals
Dim i As Int

End Sub

Sub Activity_Create(FirstTime As Boolean)
i=multiNumber(2,4)
Activity.AddMenuItem("New","menuNew")
Activity.OpenMenu
'Activity.Color=Colors.Green
Activity.SetBackgroundImage(LoadBitmap(File.DirAssets,"Sunset.jpg"))
Activity.Title = "Shotorella"
Activity.TitleColor= Colors.Red
End Sub
***************************************************************************
Besides, "multiNumber" used in above code is a function defined as follows:

*************************************************************************
Sub multiNumber(num1 As Int,num2 As Int) As Int
Dim sum As Int
sum=num1 * num2

Return sum


End Sub
***********************************************************
Thanks in advance for your guidance
 
Top