圆角TabNavigator:RoundTabNavigator
来源:互联网 发布:淘宝老兵蜜蜡是柯巴吗 编辑:程序博客网 时间:2024/05/17 03:30
源代码:纳米盘下载|download
RoundTabNavigator.as
package com.kelvinsworld
{
import mx.containers.TabNavigator;
[Style(name="borderAlpha", type="Number", inherit="no", defaultValue="1")]
publicclass RoundTabNavigatorextends TabNavigator
{
privatevar _showBorder:Boolean=true;
publicfunction RoundTabNavigator()
{
super();
}
[Inspectable(category="General", enumeration="true,false", defaultValue="true")]
publicfunctionset showBorder(value:Boolean):void
{
this._showBorder=value;
}
publicfunctionget showBorder():Boolean
{
returnthis._showBorder;
}
overrideprotectedfunction updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth,unscaledHeight);
this.drawOutline();
}
publicfunction drawOutline():void
{
var cornerRadius:Number=this.getStyle("cornerRadius");
if(cornerRadius>0)
{
this.setStyle("backgroundAlpha", 0);
this.setStyle("borderStyle","none");
var borderColor:uint=this.getStyle("borderColor");
var borderAlpha:Number=this.getStyle("borderAlpha");
var backgroundColor:uint=this.getStyle("backgroundColor");
graphics.clear();
if(showBorder)
graphics.lineStyle(1,borderColor,borderAlpha,true);
graphics.beginFill(backgroundColor,1);
graphics.drawRoundRectComplex(0,this.tabBar.height-2,this.width,this.height-this.tabBar.height+1,0,cornerRadius,cornerRadius,cornerRadius);
graphics.endFill();
}
}
}
}
- 圆角TabNavigator:RoundTabNavigator
- 圆角TabNavigator:RoundTabNavigator
- Flex TabNavigator
- reactnative tabnavigator
- Flex之TabNavigator
- Flex之TabNavigator
- TabNavigator自定义Tab
- TabNavigator动态加载Scroller
- TabNavigator 初始化标签问题
- Flex样式-TabNavigator篇
- flex TabNavigator样式
- Reactnative 使用React TabNavigator
- RN实现TabNavigator
- React Native TabNavigator导航
- TabNavigator自定义Tab
- 完美的Flex - TabNavigator 组件
- TabNavigator鼠标移动切换界面
- Accordion 、ViewStack、TabNavigator 导航组件
- imageView src与background区别
- Storm入门教程 第一章 前言
- 进程调度
- C语言位运算
- 内部上下拉电阻的作用
- 圆角TabNavigator:RoundTabNavigator
- android中跨项目的数据库操作ContentProvider的使用
- 使用Xcode和Instruments调试解决iOS内存泄露
- 解决ppt里面添加flash后在其他电脑上不能播放的问题
- jgghf
- Storm入门教程 第二章 构建Topology
- 【转】写给所有即将奔三的80后
- 织梦DEDECMS网站首页调用二级目录WordPress的文章
- poj3468 线段树成段更新