My application on a SAMA5 processor uses a small physical keypad next to the display and I would like to create several "softkeys" that appear on the screen next to the keypad which get controlled when the physical buttons are pressed.
Each softkey would have components such as :
- a beveled perimeter that would be controlled based on the button being pressed or released
- a text field within the softkey that is updated based on the button being pressed.
- a color fill that would by controlled based on certain conditions
How can I create a single "button" component that encompasses the above attributes, and can have several instances of?
How can I control a Key Handler object via an external state transition event (boolean variable) ?
Thank you