Android Question Activity.Title

TrevG

Member
Licensed User
Longtime User
Hi,

I have a program that I wrote some time ago that does the following:

Activity.Title = "SetCourse"
Activity.TitleColor = Colors.RGB(0, 255, 0) 'Lime

This program displays "SetCourse" in a lime green color, in a small font, with no icon at the front.

I have a new program where I do exactly the same but I get different results e.g.

1. Android icon at front
2. The text is much larger than the original program
3. The color does not change to what I have specified

Note: If I make change to the original program it still works as expected.

Any idea why these programs are behaving differently ?

Regards.... Trev
 
Thanks for the quick reply. You are spot on re the SDK version.

My old program that had no icon, small font and the color I wanted had this line:

<uses-sdk android:minSdkVersion="4" />

My new program had:

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
I changed this line to be the same as my new program and both programs now behave the same.

Am I going to have issues not having android:targetSdkVersion="14" ? Does it default the target version ?


Regards.... Trev
 
Upvote 0
Hi guys,

I'm trying to change Activity.TitleColor = Colors.RGB(0, 128, 0) or just any color but the color doesn't change, when i change the text it works, i tried color.black but that doesn't work either.
Any ideas what can cause this ?

# If i can hide the title bat it would work as well, but changing it in the designer to not show doesn't hide the title bar.
Regards
Schalk
 
Upvote 0
Back
Top