Set tab tint color also

This commit is contained in:
vakrilov
2015-10-29 18:08:12 +02:00
parent 4b9ae4f058
commit c41e15faf0
3 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<Page>
<TabView selectedColor="green">
<TabView tabsBackgroundColor="blue">
<TabView.items>
<TabViewItem title="First">
<TabViewItem.view>

View File

@ -766,6 +766,7 @@ export class ActionBarStyler implements definition.stylers.Styler {
private static setColorProperty(view: view.View, newValue: any) {
var toolbar = (<android.support.v7.widget.Toolbar>view._nativeView);
toolbar.setTitleTextColor(newValue);
}
private static resetColorProperty(view: view.View, nativeValue: any) {

View File

@ -324,6 +324,8 @@ export class TabView extends common.TabView {
}
var tabBar = this.ios.tabBar;
tabBar.tintColor = this.color ? this.color.ios : null;
var states = getTitleAttributesForStates(this);
for (var i = 0; i < this.items.length; i++) {