[TIMOB-14410] TiAPI: Add hintTextid to all views
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-20T02:58:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.2.0 |
Components | Core |
Labels | hinttext, i18n, internationalization |
Reporter | Fokke Zandbergen |
Assignee | Hans Knöchel |
Created | 2013-06-27T09:12:56.000+0000 |
Updated | 2017-08-21T22:04:50.000+0000 |
Description
Currently, only
Ti.UI.SearchBar
has an hintTextid
property. All other views that have hintText
properties (e.g. Ti.UI.TextField
) should have this property as well.
Just ran into this issue and would like to fix it. I will expose (all lowercase to match current style): -
Ti.UI.TextField.hinttextid
-Ti.UI.AlertDialog.hinttextid
-Ti.UI.AlertDialog.loginhinttextid
-Ti.UI.AlertDialog.passwordhinttextid
PR: https://github.com/appcelerator/titanium_mobile/pull/8224 Demo:
Create a new project (
appc new
)Create the file
app/i18n/en/strings.xml
and copy the following into it:After that, copy the following into the app/controllers/index.js
[~mchen] What exactly did not work? Did you ensure to include the localized file in your project before? And make sure your device is running the same locale as you specify in the i18n folders.
For Windows: First, implement hintText for SearchBar (TIMOB-24795) Then add hinttexid to TextField and SearchBar. We should do this for the 6.2.0 timeframe also
Windows PR: https://github.com/appcelerator/titanium_mobile_windows/pull/1013
*(Windows)* Fix verified in SDK Version:
7.0.0.v20170816113226
and SDK Version6.2.0.v20170816173122
Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1013 *(Android and iOS)* Fix verified in SDK Version6.2.0.v20170821080324
and SDK Version 7.0.0.v20170818115004 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/8224