Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9853] Android: hintText doesn't show in a TextField when textAlign is 'right'

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-02-21T14:02:04.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, exalture, look1
ReporterDavide Cassenti
AssigneeSunila
Created2012-06-21T07:20:39.000+0000
Updated2017-03-29T16:09:25.000+0000

Description

Problem description

The hintText property of TextField doesn't display the hint text at all if the textAlign property is set to 'right'. - Broken on Android v2.3.3 - Works on Android ICS - Works on Android if the textAlign property is not specified or set to 'left'.

Steps to reproduce

In the following example, the left TextField shows the hintText properly. The right TextField should also show hintText of "Hinted", but does not. {panel:title=app.js}{noformat} var TheWindow=Ti.UI.createWindow({ layout:'horizontal', backgroundColor:'gray', exitOnClose:true, navBarHidden:true }); var LeftEdit=Ti.UI.createTextField({textAlign:'left', left:30, hintText:'Hinted'}); TheWindow.add(LeftEdit); var RightEdit=Ti.UI.createTextField({textAlign:'right', left:100, hintText:'Hinted'}); TheWindow.add(RightEdit); TheWindow.open(); {noformat}{panel}

Comments

  1. Davide Cassenti 2012-07-02

    The issue is not present using Android ICS (tested on 4.0.3). The hint text is displayed correctly on that device, while it is missing with Android 2.3.x
  2. Shawn Lipscomb 2012-07-02

    Notes to myself for testing: the problem does not exist in iOS; SimpleProject is the name of the test project on my machine.
  3. Sunila 2013-02-20

    This looks like an Android SDK bug. http://code.google.com/p/android/issues/detail?id=13895
  4. Sunila 2013-02-21

    This is an Android SDK Bug. See the notes
  5. Lee Morris 2017-03-29

    Closing with reference to the above comments.

JSON Source