Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Themes & Animated Graphics

Reply
New Developer
xRuhRohx
Posts: 11
Registered: ‎04-02-2010
My Device: BlackBerry Bold 9900, PlayBook, Dev Alpha

One button does two things, or hides and changes focus to another button?

[ Edited ]

What I am trying to figure out has turned into a rather difficult search for my answer.

BlackBerry6 default theme, has the today drop down if you click the notification area.

If you click it, it opens. 

If you click again, it closes.

Obviously we cannot set something to

 

attributeName="display" to="none"   begin="button.activate"

attributeName="display" to="inline"   begin="button.activate"

 

It just does not work.  

 

I also thought about 

attributeName="display" to="none"   begin="button.activate"

then somehow setting it to focus on say button 2.  

So when you activate button, it hides button and sets focus to button 2.

So when you click button2 (without having to scroll to it) it would hide button2 and 

set focus to button again.  

This would give the illusion of a single button doing two different things.  

 

The default theme loads a scene for this.  

And that makes a reference to the pme files.  

 

If anyone can give me a pointer, o rlead me in the right direction, it would be greatly appreciated.

Thank You. 

Owner - Applications Anonymous LLC
Please use plain text.
Developer
micjenks
Posts: 52
Registered: ‎11-30-2008
My Device: Samsung Galaxy S II/BlackBerry PlayBook

Re: One button does two things, or hides and changes focus to another button?

The only way I know how to do it, is just the way you suggest, 2 buttons in the exact same location.

 

Hide one button at begin="0" then on activate button 1 will hide itself then set button 2 to inline

 

Where this causes a small issue is with trackpad navigation, although it can be resolved by manually compiling your theme.

Please use plain text.
New Developer
dcburke789
Posts: 7
Registered: ‎10-08-2011
My Device: Torch 9850

Re: One button does two things, or hides and changes focus to another button?

I think I read somewhere in the svg documentation, that you can make a button behave differently after an animation has occured. I will read up on it and report back
Please use plain text.