[TIMOB-12860] Android: Hint Text not displayed when the language is arabic and textAlign is set to right
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, arabic, hintText, textfield |
Reporter | Carter Lathrop |
Assignee | Unknown |
Created | 2013-02-23T09:19:32.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
hintText_arabic.png | 2013-02-26T01:03:07.000+0000 | 25220 |
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.
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)