帖子
帖子
用户
博客
课程
显示全部楼层
5
帖子
0
勋章
43
Y币

[BUG] Android平台,NVNavigationBar中的font->colorSelected无效 Bug

[复制链接]
发表于 2017-1-18 16:24:29
NVNavigationBar的font-》colorSelected在android平台怎么设置都是无效的。IOS是可以的

var NVNavigationBar = api.require('NVNavigationBar');
                NVNavigationBar.open({
                        rect: {
                                x: h,
                                y: 0,
                                w: api.frameWidth - h,
                                h: h
                        },
                        styles: {
                                orientation: 'horizontal',
                                bg: '#ffffff',
                                bgAlpha: 1,
                                font: {
                                        size: 14,
                                        sizeSelected: 18,
                                        color: 'rgb(60,60,60)',
                                        colorSelected: '#ff6a32',
                                        alpha: 1
                                },
                                itemSize: {
                                        w: 55,
                                        h: h
                                }
                        },
                        items: navbars,
                        selectedIndex: 1,
                        fixedOn: api.frameName,
                        id: 'navigationBar'
                }, function(ret, err) {
                        if (ret.eventType == "click") {
                                action.openCatalogByIndex(ret.index);
                        } else {
                                action.openCatalogByIndex(1);
                        }
                });

5
帖子
0
勋章
43
Y币
android版首页问题, navigationbar选中不显示的问题需要重新编译自定义loader即可解决
您需要登录后才可以回帖 登录

本版积分规则