Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16095] Android: borderColor is not behaving the same in 3.2.0 and 3.1.3 (Label & Textfield)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-01-31T22:57:22.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2014 Sprint 02, 2014 Sprint 02 API
ComponentsAndroid
LabelsSupportTeam, triage
ReporterMauro Parra-Miranda
AssigneeSunila
Created2013-12-27T20:21:11.000+0000
Updated2017-03-22T00:20:24.000+0000

Description

Problem Description

If you compile the same code with 3.2.0 and 3.1.3, the borderColor will differ between one and the other (with 3.1.3 you will be able to see the border and with 3.2.0.GA the borderColor won't be present at all).

Testcase

var win = Ti.UI.createWindow({backgroundColor:'white'});
var label = Ti.UI.createLabel({
	borderColor:"pink",
	top:"40",
	left:"40",
	borderRadius:"4",
	text:'Test',
});
var tf = Ti.UI.createTextField({
	borderColor:"pink",
	top:"80",
	left:"40",
	borderRadius:"4",
	width:'40',
});
win.add(label);
win.add(tf);
win.open();

Instructions to reproduce

1. CReate a new mobile project classic titanium in 3.2.0 2. Paste the testcase in app.js 3. Run in device 4. Change the Mobile SDK to 3.1.3.GA 5. Run it again in device 6. You will see different outputs in the same screen.

Extra info

Related Q&A: http://developer.appcelerator.com/question/160915/bordercolor-is-not-working-on-android-for-labels-and-text-fields

Comments

  1. Muhammad Adnan 2013-12-28

    by setting borderWidth=1 it works fine in Android.
  2. Sunila 2014-01-02

    If borderWidth is not set and borderColor is set, set borderWidth to 1 as in IOS. Both 'processProperties' and 'propertyChanged' fixed. Also fixed the bug with customBackground. https://github.com/appcelerator/titanium_mobile/pull/5177
  3. Lee Morris 2017-03-22

    Closing ticket as fixed.

JSON Source