[TIMOB-24639] Android: Support TextInputLayout
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-15T04:32:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.0 |
Components | Android |
Labels | merge-6.2.0 |
Reporter | Lokesh Choudhary |
Assignee | Gary Mathews |
Created | 2017-04-28T01:55:22.000+0000 |
Updated | 2017-11-15T06:35:38.000+0000 |
Description
Support TextInputLayout : https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html
Attachments
File | Date | Size |
---|---|---|
TextAreaTest.js | 2017-08-09T22:12:41.000+0000 | 1783 |
master: https://github.com/appcelerator/titanium_mobile/pull/9114
FR Passed for 6.2.0 branch.
[~gmathews], We will need a backport for this to 6.2.0.
6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9267
The attached [^TextAreaTest.js] file can help test for the issues I've mentioned above.
Reopening due to the above issues.
master: https://github.com/appcelerator/titanium_mobile/pull/9361
There's a couple of invalid issues: 1. You cannot control the alignment of animated hints, this is by Android design. 2. Animated hints ignore spannable string formating, again by Android design. 6. Animated hints can only have their text color set by a style and not programmatically. This is probably down to Google wanting the TextInputLayout component to be consistent in design. I've updated the documentation to note these limitations. Also, the
hintType
has always defaulted toTi.UI.HINT_TYPE_STATIC
so there shouldn't be any backward-compatibility issues.HintType animated is reflected in public documentation. Can a change be pushed to revert that as this was moved out of the release? http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TextField-property-hintType Doc PR that actually was merged: https://github.com/appcelerator/titanium_mobile/pull/9284
FR Passed. Waiting for merge to get enabled.
Changes are seen in SDK 7.0.0.v20171114202841.