[TIMOB-9962] Android: Tab icon property change not updating icon image shown in tab
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-16T20:08:38.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, parity |
Reporter | Carter Lathrop |
Assignee | Josh Roesslein |
Created | 2012-07-13T09:54:42.000+0000 |
Updated | 2017-03-24T18:08:32.000+0000 |
Description
Problem
If you change the icon property of a tab on Android, the icon should change, but it doesn't. This works on iOS but not on Android.
Sample Code
(attached)
Steps to reproduce bug
1. Download and add "smileyicon.png" (attached) to your resources folder
2. Launch app on android emulator (or on device)
3. navigate to window 1
4. click "toggle tab icon" button in window 1
5. observe that icon does not change
6. repeat steps on iOS to observe correct behaviour
Attachments
Once the tab has been added we can't really change it anymore (the "spec" is only used at creation). Android does allow creating custom tab views, so it may be possible to build your own view (ex: horizontal view w/ label & image view) then just update that view directly. We could make assumptions about the layout of the built-in tab view, but this could always change on us in future version of Android so it might not be something we provide in platform.
Closing as we can't provide this feature in Android. Created a new feature to allow custom tab views (TIMOB-9978).
Closing ticket as invalid with reference to the above comments.