[TIMOB-12670] Android: Parity of enabled property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-25T09:12:51.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 06 |
Components | iOS |
Labels | n/a |
Reporter | Benjamin Hatfield |
Assignee | jithinpv |
Created | 2013-02-12T01:41:21.000+0000 |
Updated | 2017-03-21T21:39:41.000+0000 |
Description
Run the following code on device:
var VIEW_STATE = false;
var win = Ti.UI.createWindow({backgroundColor: 'white', layout: 'vertical'});
var button = Ti.UI.createButton({title: 'Button', enabled: VIEW_STATE, top: '10dp'});
button.addEventListener('click', function(e){ Ti.API.info('button:' + e.type)});
win.add(button);
var switcher = Ti.UI.createSwitch({enabled: VIEW_STATE, top: '10dp'});
switcher.addEventListener('click', function(e){ Ti.API.info('switcher:' + e.type)});
win.add(switcher);
var slider = Ti.UI.createSlider({
top: '10dp',
min: 0,
max: 100,
width: '250dp',
value: 50,
enabled: VIEW_STATE,
focusable: true
});
slider.addEventListener('click', function(e){ Ti.API.info('slider:' + e.type)});
win.add(slider);
var textarea = Ti.UI.createTextArea({
value: 'TextArea',
enabled: VIEW_STATE,
top: '10dp'
});
textarea.addEventListener('click', function(e){ Ti.API.info('textarea:' + e.type)});
win.add(textarea);
var textfield = Ti.UI.createTextField({
width: '250',
height: '60',
enabled: VIEW_STATE,
top: '10dp',
borderWidth: 1
});
textfield.addEventListener('click', function(e){ Ti.API.info('textfield:' + e.type)});
win.add(textfield);
win.open();
Results:
On Android, when clicking on the TextArea, the software keyboard appears and I can change the text. I cannot reproduce this on the emulator. This only happens on device.
On iOS and MobileWeb, the software keyboard does not appear and the contents are not editable.
Expected Results:
Software keyboard should not appears and the contents should not be editable.
software keyboard does not appears in android and iOS. Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0 Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
Issue does not reproduces Tested with iOS SDK: 5.1 iOS iPhone Simulator: 5.1 Mac OS X Version 10.7.5 Titanium SDK version 3.1.1.v20130606121419 Titanium Studio, build: 3.0.1.201212181159
Closing ticket as the issue cannot be reproduced and due to the above comments.