Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12860] Android: Hint Text not displayed when the language is arabic and textAlign is set to right

GitHub Issuen/a
TypeBug
Priorityn/a
StatusReopened
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, arabic, hintText, textfield
ReporterCarter Lathrop
AssigneeUnknown
Created2013-02-23T09:19:32.000+0000
Updated2018-02-28T20:04:20.000+0000

Description

*Problem* Hint Text in a textField is not displayed on android when the language is arabic and textAlign is set to right. When textAlign is set to left the text is displayed correctly. This problem is non existing on iPhone. *Steps to reproduce* 1. Copy and paste code into app.js 2. if have test device: run on android 2.2 or 2.3, 3. if not device, Run-configurations-> change to api 2.2 or 2.3, run on android emulator 4. notice one textField has visible text, the other does not *Test Case*
var win = Ti.UI.createWindow({
	height : Ti.UI.FILL,
	width : Ti.UI.FILL,
	backgroundColor : '#000',
        layout: 'vertical'
});

var name = Ti.UI.createTextField({
	top : 50,
	height : Ti.UI.SIZE,
	width : Ti.UI.FILL,
	hintText : 'الاسم',
	textAlign : 'right'
});

var name1 = Ti.UI.createTextField({
	top : 50,
	height : Ti.UI.SIZE,
	width : Ti.UI.FILL,
	hintText : 'الاسم',
	textAlign : 'left'
});

win.add(name);
win.add(name1);
win.open();

Attachments

FileDateSize
hintText_arabic.png2013-02-26T01:03:07.000+000025220

Comments

  1. Carter Lathrop 2013-02-26

    Tested on TiSDK 3.0.0GA and 3.0.2GA on Galaxy S3 (android os: 4.1.1) and could not reproduce. Attaching screenshot showing right aligned hintText in arabic. Resolving issue until more information is provided.
  2. Hani Hamadeh 2013-02-26

    It seems to be working fine with android 4. The problems was reproduced with Android 2.2 emulator and on my Galaxy Tab (Android 2.2)

JSON Source