Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27071] Ti SDK 8: Android TabBar and Tab, no way to preserve icon color

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reporteramdolan
AssigneeEric Merriman
Created2019-03-08T17:09:50.000+0000
Updated2021-02-03T21:27:43.000+0000

Description

The following settings don't work on Android, using TabBar style bottom, new in Ti 8.0 This is problematic when the background is white, then you can't see the tabs, because the color of the png isn't being preserved. Also, for some reason it doesn't load the "activeIcon" when it's selected.

'TabGroup[platform=android]': {
	style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION,
//	tabsBackgroundColor: "transparent" // -doesn't work-  Update: it works.
	tabsBackgroundColor: "#fff" // does work, but stinks because icons are white
}

'Tab': {
	activeTitleColor: "#164660",
	activeIconIsMask: false,  // doesn't work on android
	iconIsMask: false,           // doesn't work on android
}

Attachments

FileDateSize
app.zip2019-03-21T18:06:11.000+00007964391
Screen Shot 2019-03-08 at 11.08.00 AM.png2019-03-08T17:09:37.000+0000127152
Screen Shot 2019-03-22 at 10.08.57 AM.png2019-03-22T15:10:34.000+000052516

Comments

  1. amdolan 2019-03-08

    I want to also point out, in the screenshots, that on Android, the activeIcon setting is not being applied.
  2. amdolan 2019-03-14

    I think this might be a new feature request, and not a bug, given that the bottom tab bar is new in 8.0.
  3. Rakhi Mitro 2019-03-21

    [~amdolan], Thanks for raising this. Can you please explain more? It would be great if you can share a sample test issue to reproduce the problematic issue on our end.
  4. amdolan 2019-03-21

    Sure thing - see attached project - I created an alloy project and this is the entire zip of the app/ I created this project with Ti 8.0.0GA Quick correction: I have updated the issue description regarding transparent background color. Still, the icon masks seem to be a pretty big issue for my use case. You can see in action if you change over to transparent from white in app/styles/app.tss
       tabsBackgroundColor: "transparent" // Update: this does work!
       
    So I'm still having issues with activeIcon on android - and activeIconIsMask and iconIsMask. Thanks! [^app.zip]
  5. amdolan 2019-03-21

    I just want to reiterate; the docs describe the correct behaviors, that these settings are not implemented for Android. No bugs here, just lack of feature parity, if that makes sense.
  6. Sharif AbuDarda 2019-03-21

    Hello [~amdolan], Can you share the native Android guide link of how this it is handled in there? Thanks.
  7. amdolan 2019-03-21

  8. Rakhi Mitro 2019-03-22

    [~amdolan], Can you please test this issue on sdk 8.0.0.v20190104153150 and let us know how it goes? To install this SDK open terminal and execute the following:
       appc ti sdk install 8.0.0.v20190104153150
       
  9. amdolan 2019-03-22

  10. amdolan 2019-03-28

    Thought I should link these two issues somehow., Edit: I don't see any relationship added, I tried to link this issue: TIMOB-26734
  11. Sergey Volkov 2021-02-03

JSON Source