Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23713] Android: TextField cursor before hintText when textAlign is RIGHT

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-09-19T21:20:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, hintText, textfield
ReporterMichael Gangolf
AssigneeUnknown
Created2016-07-26T07:10:42.000+0000
Updated2019-09-19T21:20:26.000+0000

Description

When creating a TextField with alignment right and a hintText the cursor is placed on the left side of the text, which looks like it is actual text the user has to clear
var win = Ti.UI.createWindow({backgroundColor:"#fff"});
var tf = Ti.UI.createTextField({
    textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT,
	width:200,
	height:40,
	borderColor: "red",
	hintText: "TestTest",
    hintTextColor:"#888",
    color:"#000"
});
win.add(tf);
win.open();
on iOS the cursor is on the right side which looks better for the user. Android 6 SDK 5.3.1.GA (and 5.4.0.v20160720201924)

Comments

  1. Alan Hutton 2019-09-19

    Unable to reproduce on 8.1.1.GA SDK. Axway Appcelerator Studio, build: 5.1.4.201909061933  macOS : 10.14.6 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.1 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.1.1.GA Android API 29

JSON Source