Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12584] BlackBerry: Introduce Cascade's ImageButton.

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-13T22:18:01.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.3, Release 3.2.0
ComponentsBlackBerry
Labelsblackberry, qe-testadded
ReporterJosh Roesslein
AssigneePedro Enrique
Created2013-02-05T03:30:04.000+0000
Updated2014-06-19T12:43:34.000+0000

Description

Cascades offers another AbstractButton type that supports visual states similar to what we support with the background image states on Android. This control isn't exactly compatible with Titanium's standard Button since it does not allow for text. We should look into introducing a new view type for this control that's specific to Blackberry.

Comments

  1. Pedro Enrique 2013-06-11

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/96
  2. Pedro Enrique 2013-06-11

    Test code
       var win = Ti.UI.createWindow();
       
       var imageButton = Ti.UI.createImageButton({
       	image: 'images/play_button.png',
       	imagePressed: 'images/play_button_pressed.png',
       	imageDisabled: 'images/appcelerator_small.png'
       });
       
       imageButton.addEventListener('click', function(){
       	alert('ImageButton Clicked')
       });
       
       var btn = Ti.UI.createButton({
       	bottom: 10,
       	title: 'disable image button'
       });
       
       var enabled = true;
       btn.addEventListener('click', function(){
       	imageButton.enabled = enabled;
       	enabled = !enabled;
       });
       
       win.add(btn);
       
       win.add(imageButton);
       win.open();
       
  3. Priya Agarwal 2013-10-25

    Verified fix with: Appcelerator Studio: 3.2.0.201310230601 SDK:3.2.0.v20131024120843 alloy: 1.2.2 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.0.3 Device:Blackberry Z10(v 10.0) OS: OSX 10.9 Image Button being created and seen on window. Working fine.

JSON Source