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

Web and WebWorks Development

Regular Contributor
Posts: 50
Registered: ‎03-27-2014
My Device: Z10
My Carrier: Docomo
Accepted Solution

How to change button if clicked on other button?

 I want to change button on same button click how i can do that in blackberry. i used frame layout in android for overlay two field one after above so how i can change field on same click in blackberry?

like e.g i want to kept two buttons on same position when i click btn1 btn2 should display and when i click btn2 btn1 should display

BlackBerry Development Advisor
Posts: 767
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: How to change button if clicked on other button?

I'm sure there are a few ways to do this, but here's one way.


Here's a snippet I threw together: http://codepen.io/anon/pen/aBrnk/?editors=111