Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15332] Android: View flickers if a textfield is added to a scrollableView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-02-25T21:23:49.000+0000
Affected Version/sRelease 3.1.2, Release 3.1.3
Fix Version/s2014 Sprint 04, 2014 Sprint 04 API, Release 3.3.0
ComponentsAndroid
LabelssupportTeam
ReporterMeenakshi Pathak
AssigneeHieu Pham
Created2013-09-24T11:48:43.000+0000
Updated2017-03-21T22:00:23.000+0000

Description

In a scrollableView, a view flickers when a text field is added to that view. *Steps To Reproduce* : 1. Copy and paste the below code in app.'s of a newly created project in Titanium.
var win = Ti.UI.createWindow();

var view0 = Ti.UI.createView({
	backgroundColor : 'green'
});
var view1 = Ti.UI.createView({
	backgroundColor : 'blue'
});
var view2 = Ti.UI.createView({
	backgroundColor : 'red'
});

var textfield1 = Ti.UI.createTextField({
	backgroundColor : 'green',
	width : 300,
	height : 80,
	left : 250
});

var button = Ti.UI.createButton({

	title : 'Click me!',
	top : 10,
	width : 300,
	height : 200
});

view1.add(button);

view1.add(textfield1);
var dataArray1 = [];

var scrollableView = Ti.UI.createScrollableView({
	views : [view0, view1, view2],
	showPagingControl : true,
	

});
win.add(scrollableView);
win.open();
2. Run it on Android device and scroll the views. 3. In the second view of a scrollable view, click on the textField. 4. View get distorted and Appcelerator splash screen is displayed for a second. Note : This issue is seen with SDK 3.1.2 also.

Comments

  1. Hieu Pham 2014-02-25

    I can reproduce this on 3.1.3.GA but works fine on master and 3.2.0.GA. Closing as unable to reproduce.
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source