Skip to content

feat: add css for tabstripitem for bottom navigation android#7458

Merged
manoldonev merged 11 commits into
releasefrom
myankov/tabstripitem-css
Jul 9, 2019
Merged

feat: add css for tabstripitem for bottom navigation android#7458
manoldonev merged 11 commits into
releasefrom
myankov/tabstripitem-css

Conversation

@MartoYankov

Copy link
Copy Markdown
Contributor

No description provided.

@MartoYankov MartoYankov self-assigned this Jul 4, 2019
@cla-bot cla-bot Bot added the cla: yes label Jul 4, 2019
@MartoYankov

Copy link
Copy Markdown
Contributor Author

test package_version#rc

@MartoYankov MartoYankov force-pushed the myankov/tabstripitem-css branch from a6f863b to b514665 Compare July 4, 2019 07:19
@MartoYankov

Copy link
Copy Markdown
Contributor Author

test package_version#rc

Comment thread e2e/ui-tests-app/app/bottom-navigation/background-color-page.css
Comment thread e2e/ui-tests-app/app/bottom-navigation/text-transform-page.css
Comment thread tns-core-modules/ui/bottom-navigation/bottom-navigation.android.ts Outdated
if (this.tabStrip && this.tabStrip.items) {
const tabItems = new Array<org.nativescript.widgets.TabItemSpec>();
this.tabStrip.items.forEach((item, i, arr) => {
(<any>item).index = i;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's at least define it on TabStripItem as public index: number; (like on TabContentItem)


public setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: android.graphics.drawable.Drawable | Color): void {
// TODO: Should figure out a way to do it directly with the the nativeView
const tabStripItemIndex = this.tabStrip.items.indexOf(tabStripItem);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are now setting index on tabStripItem (line 385) -- can't we use it instead?

@manoldonev

Copy link
Copy Markdown
Contributor

test package_version#rc

@manoldonev manoldonev force-pushed the myankov/tabstripitem-css branch from 24e34b9 to 8cf8f70 Compare July 8, 2019 13:53
@manoldonev manoldonev merged commit fab9c90 into release Jul 9, 2019
@manoldonev manoldonev deleted the myankov/tabstripitem-css branch July 9, 2019 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants