 Thread Author
# 4

05-20-2011, 11:30 AM
|
| | CrackBerry Abuser Device(s): 9800 (Torch) Carrier: AT&T/Cingular | | Join Date: Aug 2008 Posts: 121 Likes Received: 0
Thanked 6 Times in 1 Post
| |
Quote:
Originally Posted by russnash Here's the problem: Code: <image
id="BannerTime-home"
x="115"
y="83"
width="130"
height="40"
xlink:href="x-object:/CurrentDateTime?clocktype=time&width=130&height=40&font-family=theme_Untitled_2-0&font-style=plain&font-size=40&fill=fefefe&align=center&altFont=BBMillbank&ampmSize=40"/>
<set
xlink:href="#BannerTime-home"
attributeName="display"
to="none"
begin="custom(oc_to_landscape)"
end="custom(oc_to_portrait)"/>
<image
id="BannerTime-homescreen__Landscape"
x="176"
y="74"
width="130"
height="40"
display="none"
xlink:href="x-object:/CurrentDateTime?clocktype=time&width=130&height=40&font-family=theme_Untitled_2-0&font-style=plain&font-size=40&fill=fefefe&align=center&altFont=BBMillbank&ampmSize=40"/>
<set
xlink:href="#BannerTime-homescreen__Landscape"
attributeName="display"
to="inline"
begin="custom(oc_to_landscape)"
end="custom(oc_to_portrait)"/> The ID's you are using are correct, however, in the homescreen.svg the theme is setting the display attribute to inline/none depending on the orientation used. In other words, even though you're hiding the time on the landscape screen, the theme builder generated svg is re-displaying it when it picks up on the orientation changing.
One way you are going to get around this is by using my method for compiling the theme by hand and changing the homescreen.svg directly. Another method would be to add your own code for responding to the orientation change events and adding a time delay, i.e. "begin(oc_to_landscape)+1".
Can I ask why you didn't just turn the clock off in theme builder?
Russ. | Thanks Russ. This makes sense. The reason I have chosen to use this method and not just turn off the clock is because I was using [the artist formerly known as] Vince the Prince's Big Clock method. This method needs both clocks present, which you then override with code, in order to use a custom font.
Last edited by JTekt; 05-20-2011 at 11:33 AM.
Reason: misspelling, better clarification in explanation
|