[Flex] ButtonBar系列——flex3 ButtonBar样式之颜色的填充
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
- layout="vertical"
- verticalAlign="middle"
- backgroundColor="white">
- <mx:Style>
- .allButtons2 {
- /* Creates a gradient from red/orange when button is in the
- "out" state. */
- fillColors: red, haloOrange;
- }
- .allButtons4 {
- /* Creates a gradient from red/orange when button is in the
- "out" state. Creates a gradient from green/blue when
- button is in the "over" state. */
- fillColors: red, haloOrange, haloGreen, haloBlue;
- }
- .allButtonsSolid {
- fillColors: red, red;
- }
- .allButtonsSolidOpaque {
- fillAlphas: 1.0, 1.0;
- fillColors: red, red;
- }
- </mx:Style>
- <mx:ViewStack id="viewStack"
- visible="false"
- includeInLayout="false">
- <mx:VBox label="One">
- <mx:Label text="One" />
- </mx:VBox>
- <mx:VBox label="Two">
- <mx:Label text="Two" />
- </mx:VBox>
- <mx:VBox label="Three">
- <mx:Label text="Three" />
- </mx:VBox>
- </mx:ViewStack>
- <mx:Form>
- <mx:FormItem label="2 fill colors defined:">
- <mx:ButtonBar id="buttonBar2"
- buttonStyleName="allButtons2"
- dataProvider="{viewStack}" />
- </mx:FormItem>
- <mx:FormItem label="4 fill colors defined:">
- <mx:ButtonBar id="buttonBar4"
- buttonStyleName="allButtons4"
- dataProvider="{viewStack}" />
- </mx:FormItem>
- <mx:FormItem label="solid fill:">
- <mx:ButtonBar id="buttonBarSolid"
- buttonStyleName="allButtonsSolid"
- dataProvider="{viewStack}" />
- </mx:FormItem>
- <mx:FormItem label="solid opaque fill:">
- <mx:ButtonBar id="buttonBarSolidOpaque"
- buttonStyleName="allButtonsSolidOpaque"
- dataProvider="{viewStack}" />
- </mx:FormItem>
- </mx:Form>
- </mx:Application>
[Flex] ButtonBar系列——flex3 ButtonBar样式之颜色的填充的更多相关文章
- [Flex] ButtonBar系列——flex3 ButtonBar属性labelPlacement标签相对于指定图标的方向
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...
- [Flex] ButtonBar系列——flex3 ButtonBar各项之间的间距调整
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...
- [Flex] ButtonBar系列——flex3 ButtonBar圆角菜单的运用
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...
- [Flex] ButtonBar系列——flex3 皮肤和外观设置
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...
- [Flex] ButtonBar系列——flex3 labelFunction用户提供的函数,在每个项目上运行以确定其标签
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...
- [Flex] ButtonBar系列——控制ButtonBar菜单是否可用
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="ht ...
- CSS系列——浏览器默认样式
了解HTML标签在各浏览器当中的默认样式,可以让我们了解,为什么会要写Reset.css,Reset.css当中要怎么写样式最合理.试着思考下面的问题: 为什么会有默认样式? 每个浏览器的默认样式有什 ...
- UITabBarController 、TabBar背景颜色设置,UITabBarItem的文字样式(颜色和大小)UITabBarItem的位置调整
改变UITabBarController的颜色 UIView*mView=[[UIView alloc]initWithFrame:CGRectMake(0,0,320,48)];//这是部分tabb ...
- [Flex] PopUpButton系列 —— 弹出菜单的行高设置
<?xml version="1.0" encoding="utf-8"?> <!--Flex中如何通过variableRowHeight样式 ...
随机推荐
- 使用JavaScript 实现注册表单的校验
说明:在点击提交时进行表单校验,具体要求如下: 1)用户名为3~16个字符,且不能包含”@”和”#”字符: 2)密码和校验密码必须一致,且长度在8个字符到16个字符: 3)兴趣爱好至少选择一项: 4) ...
- 【转】图解CSS的padding,margin,border属性(详细介绍及举例说明)
W3C组织建议把所有网页上的对像都放在一个盒(box)中,设计师可以通过创建定义来控制这个盒的属性,这些对像包括段落.列表.标题.图片以及层.盒模型主要定义四个区域:内容(content).边框距(p ...
- HtmlEncode、HtmlDecode、UrlEncode、UrlDecode
HtmlEncode: 将 Html 源文件中不允许出现的字符进行编码.例如:"<".">"."&" 等. HtmlDe ...
- AngularJS 的安全Apply
$scope.safeApply = function(fn) { var phase = this.$root.$$phase; if (phase == ‘$apply‘ || p ...
- Oracle中的不等于号
今天碰到一个Oracle不等于的问题,最后搜索了一下,发现下面资料,拿来跟大家分享一下 关于Oracle中的不等于号: 在Oracle中, <> != ~= ^= 都是不等于号的意思. ...
- winrar 5.21去广告
http://www.rarlab.com/ 把下面的数据复制到“记事本”中,用文件名“rarreg.key搜索”命名该文件,保存到winrar安装文件夹即完成注册 RAR registration ...
- ASP.NET MVC 程序 报错“CS0012: 类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义”的解决办法
运行MVC程序,具体报错信息如下: 解决方法: 打开Web.config在assemblies下加入<add assembly="System.Data.Entity, Version ...
- 深入理解ThreadLocal
ThreadLocal是什么 早在JDK 1.2的版本中就提供java.lang.ThreadLocal,ThreadLocal为解决多线程程序的并发问题提供了一种新的思路.使用这个工具类可以很简洁地 ...
- R提高篇(四): 数据管理二
目录: 数学函数 统计函数 应用示例 控制流 数学函数 ceiling(x): 大于等于 x 的最小整数, 如: ceiling(3.213) --> 4 floor(x): 小 ...
- android ANR
下面有两篇关于Android ANR的文章,感觉不错,分享一下! [Android实例] [Sundy系列]网上绝无仅有的Log分析教程及例子!android ANRhttp://blog.csdn. ...