- 浏览: 82749 次
- 性别:
- 来自: 福建
文章分类
- 全部博客 (64)
- android (28)
- androidApp (1)
- GphonePlay (0)
- [随笔分类][00]JavaScript (2)
- [随笔分类][01]Spring (3)
- [随笔分类][02]Hibernate (4)
- [随笔分类][03]EXT (4)
- [随笔分类][04]项目工程 (0)
- [随笔分类][06]数据库 (1)
- [随笔分类][07]软件使用 (5)
- [随笔分类][09]Ophone (1)
- [随笔分类][08]SSH整合 (3)
- [随笔分类][13]生活随笔 (1)
- [随笔分类][15]架构与设计 (2)
- [随笔分类][16]Weekly Updates (0)
- [随笔分类][17]自我提高 (2)
- [随笔分类][18]中间件 (1)
- [随笔分类][20]测试 Debug Junit (1)
- [随笔分类][21]软件工程 (1)
- [随笔分类][22]团队合作与管理 (1)
最新评论
-
lcyaiym:
不错 ,我正在研究这个问题了。
使用Intent Filter来响应隐式Intent -
qiaoweishu:
精辟深刻,很是受益!
软件开发的精益理念 -
qiaoweishu:
吟安一个字,捏断数径须!受教了!
怎样成为优秀的软件模型设计者 -
lnx1824:
先巩固现有的j2ee,过段时间再来学习!
android HelloWord -
gryphone:
似乎并不存在实际上的匿名 其实系统也是按照对应的string ...
Android如何解析Intent Filter
Styles和Themes
通过指定Views的特性值,Style资源能够让应用程序保持一致的外观和感受。Sytles和Themes最常用的用途是储存应用程序的颜色和字体。
你可以在manifest文件中,像theme一样,简单的指定不同的style来改变应用程序的外观。
为了创建style,使用<style/>标签,包含一个name特性以及若干个item标签。每一个item标签需要有一个name特性来指明属性(如字体大小或颜色)。item标签中应包含值,如下面的框架代码所示:
<?xml version=”1.0” encoding=”utf-8”?> <resources> <style name=”StyleName”> <item name=”attributeName”>value</item> </style> </resources>
Sytles支持继承,通过在style标签里使用parent特性。
接下来的例子给出了两个style,当然,也可以像theme一样使用。base style设置了文本的几个属性,而第二个style改变了base style中的字体大小。
<?xml version=”1.0” encoding=”utf-8”?> <resources> <style name=”BaseText”> <item name=”android:textSize”>14sp</item> <item name=”android:textColor”>#111</item> </style> <style name=”SmallText” parent=”BaseText”> <item name=”android:textSize”>8sp</item> </style> </resources>
发表评论
-
Android如何解析Intent Filter
2009-08-23 19:31 2181匿名性质的运行时绑定 ... -
使用Intent Filter来响应隐式Intent
2009-08-23 19:14 4006如果一个Intent请求在一片数据上执行一个动作,Androi ... -
Linkify介绍
2009-08-23 17:21 3339Linkify是一个辅助类,通过RegEx样式匹配,自动地在T ... -
动态更新菜单项与处理菜单选择
2009-08-23 15:55 1485public boolean onOptionsItemS ... -
菜单项选项
2009-08-23 15:35 1220正如你所熟悉的那样,Android支持大多数传统的菜单项选项, ... -
Android菜单系统介绍
2009-08-23 15:09 1533如果你曾经尝试用手写 ... -
Layouts介绍
2009-08-23 15:05 1304Layout管理器(一般称“layouts”)是ViewGro ... -
实时改变配置
2009-08-23 15:03 996Android通过终止、重启应用程序来重新加载资源文件,以做到 ... -
使用系统资源
2009-08-23 15:00 871Android本体应用程序具体 ... -
在资源中引用资源
2009-08-23 14:59 791在资源中引用资源 你可以在其他XML资源中通过特性来引 ... -
在代码中使用资源
2009-08-23 14:58 1172在代码中使用资源 你可以在代码中通过R静态类使用资源 ... -
Animations
2009-08-23 14:55 888Animations Android支持2种类型的动画 ... -
Layouts
2009-08-23 14:53 769Layouts Layout资源是通过在XML中设计U ... -
Drawables
2009-08-23 14:50 1033Drawables Drawable资源包括位 ... -
Values
2009-08-23 14:46 1304<?xml version=”1.0” encoding ... -
资源具体化
2009-08-23 14:44 735不管你使用什么开发环境,一个良好的习惯就是保存非代码的资源(像 ... -
理解应用程序优先级和进程状态
2009-08-23 14:43 996杀死哪个进程来回收资源由进程中的应用程序的优先级决定的。应用程 ... -
使用Manifest Editor
2009-08-23 14:42 994ADT插件程序包含了一个可视化的Manifest Editor ... -
应用程序Manifest介绍
2009-08-23 14:30 1439每一个 Androi ... -
android 组件之广播接收( Broadcast receiver )
2009-08-22 16:06 4135Broadcast receivers 广播接收? ...
相关推荐
包含 .NET Framework 3.5 - 4.5 及 Silverligth PresentationFramework.dll 中的样式资源。 xaml 文件列表预览 http://my.csdn.net/my/album/detail/1309912
您可以分享您的主题或安装VK的vk的现成主题,从VK点击功能vk样式的完整描述:添加VC主题设置: - 接口颜色 - 颜色和文本大小 - 颜色和透明度背景,块,帽 - 菜单的颜色和背景 - 块样式:标准,圆形,没有缩进 - 彩色...
* Modify the default templates and styles * Override the default templates with your own * Create dynamic styling which responds to the content or the user * Discover tools that make theming ...
资源中包括了.NET Framework 3.5、4.0、4.5 及 Silverlight 的控件样式。主要是包含在PresentationFramework程序及中的 xaml 文件,其中包括了最新的 Windows8 的主题样式 aero2.normalcolor.xaml,文件列表预览 ...
I based the development of this control on Vista start menu, but as you can see in the image above, it can be easily customized to support other styles, themes, etc. See demo project for more details...
关于组件中的样式定义(styles) 可以通过style 属性来更改Flex 组件的外观。这些样式属性能够定义Label 控件的字体大 小,或者Tree 控件的背景色。在Flex 中,一些样式从父...更多信息参见Using Styles and Themes.
simply add the fonts to your app, replace your views with their Font counterparts, and specify the fonts through attributes, styles and themes. All fonts are referenced into (subdirectories of) the ...
* Find and install new themes * Get the most from Drupal’s theme configuration system * Create a new theme from scratch * Master PHPTemplate * Modify the default templates and styles * Override the ...
* Includes a reference guide to WordPress 2.0's template hierarchy, markup, styles and template tags, as well as include and loop functions Approach: Theme design can be approached from two angles. ...
安装 npm install gulp-sass-themes gulp-sass --save-dev基本用法源文件 ├── styles ├── body.themed.scss └── themes ├── _red.scss └── _blue.scssGulp文件 'use strict' ;const gulp = require ...
visual studio主流的主题(monokai、son-of-obsidian等),都是笔者从网上搜集的。护眼主题、开发必备!
Xtreme ToolkitPro provides Windows developers with a sophisticated set of components to give applications a professional, modern appearance. Several popular visual styles and themes are included.
上传新版本的 ./libraries , ./modules 和 ./uploads 目录,注意备份修改过的文件,删除./styles/scripts 和 ./styles/themes目录。 移动配置文件 ./includes/profile/settings.php 到 ./includes/settings.php。 ...
Android is an open source and Linux-based operating system for mobile devices such as smartphones and tablet computers. Android was developed by the ... Styles and Themes Chapter 19. Custom Components
Visual C++ / MFC 包含Source code Xtreme ToolkitPro provides Windows developers with a sophisticated set of components to give applications a ... Several popular visual styles and themes are included.
Android Resource Navigator A Google Chrome Extension providing enhanced resource navigation...Quickly open the Android framework styles or themes XML via an always available browser action button. Frame
风格与主题Styles and Themes 27 资源和资产Resources and Assets 28 资源引用Resource Reference 43 国际化和本地化Internationalization and Localization 43 意图和意图过滤器Intents and Intent Filters 43 意图...
AvalonDock is a WPF controls library which can be used to ... It supports fly-out panes, floating windows, multiple docking manager in same window, styles and themes and it can host WinForms controls.
风格与主题Styles and Themes 27 资源和资产Resources and Assets 28 资源引用Resource Reference 43 国际化和本地化Internationalization and Localization 43 意图和意图过滤器Intents and Intent Filters 43 ...