[TIMOB-11552] Android: Conflict between actionBar and Textfield/Switch appearance Android ICS and Jellybean
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-26T00:03:53.000+0000 |
Affected Version/s | Release 2.1.3, Release 3.0.1 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 22 API, 2012 Sprint 22 |
Components | Android |
Labels | SupportTeam, api, triage |
Reporter | Varun Joshi |
Assignee | Hieu Pham |
Created | 2012-10-20T16:05:48.000+0000 |
Updated | 2012-12-18T19:24:01.000+0000 |
Description
Issue
If compiled on Android with android:targetSdkVersion="16" specified in tiapp.xml, the textField component background/border and cursor are invisible. This happens on the KitchenSink too(TextField -> Soft Input Foxus).Steps to Reproduce
1. In the KitchenSink app, specify the targetSDKVersion property in tiapp.xml to 16. 2. Run the Kitchen Sink app and navigate to TextField -> Soft Input Focus Also, switch UI component looks as its bottom was cutoff and its "on" indicator looks very thin.Attachments
File | Date | Size |
---|---|---|
Screen Shot 2012-10-20 at 10.05.31 AM.png | 2012-10-20T17:07:24.000+0000 | 21941 |
This is by design: http://stackoverflow.com/questions/13038137/why-does-edititext-control-not-show-border-of-box. Modifications will be made to KS to make the text fields more visible, i.e setting the "hint" property.
PR https://github.com/appcelerator-developer-relations/KitchenSink/pull/66
Is this also the case with the switch appearance?
Yes, I believe so. http://developer.android.com/guide/topics/ui/controls/togglebutton.html
3_0_X PR: https://github.com/appcelerator-developer-relations/KitchenSink/pull/67
Closing as fixed. Tested and verified on: Titanium Studio, build: 3.0.0.201212131639 Titanium SDK, build: 3.0.0.v20121212184921 Devices: LG Nexus 4 (4.2); HTC Evo (4.0.3)