Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9962] Android: Tab icon property change not updating icon image shown in tab

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-07-16T20:08:38.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, parity
ReporterCarter Lathrop
AssigneeJosh Roesslein
Created2012-07-13T09:54:42.000+0000
Updated2017-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

FileDateSize
app.js2012-07-13T09:54:42.000+00001384
smileyicon.png2012-07-13T09:54:42.000+00003751

Comments

  1. Josh Roesslein 2012-07-16

    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.
  2. Josh Roesslein 2012-07-16

    Closing as we can't provide this feature in Android. Created a new feature to allow custom tab views (TIMOB-9978).
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source