项目中经常使用style和Theme,但却从来没有考虑过它们的区别,只会copy来copy去的,有时候还有些迷茫,为了彻底告别迷茫,现把这两者的区别和使用总结出来,供自己和大伙参考
一.作用域
Theme是针对窗体级别的,改变窗体样式。
Style是针对窗体元素级别的,改变指定控件或者Layout的样式
二.使用方式
Theme
1. 在res\values\ 下创建themes....
分类:
移动开发 时间:
2014-06-16 12:12:19
阅读次数:
371
begindeclare x int(11);declare r int(11);set r= (select Rule from qn_huiyuan_grade g where g.MId=NEW.MId and g.mpOrgId=NEW.mpOrgId limit 1);if r=1then...
分类:
数据库 时间:
2014-06-16 00:03:20
阅读次数:
286
Example syntax for Secure Copy (scp)What is Secure Copy?scpallows files to be copied to, from, or between different hosts. It usessshfor data transfer...
分类:
其他好文 时间:
2014-06-15 22:30:51
阅读次数:
290
【Basics】1、You can declare multiple constants or multiple variables on a single line, separated by commas: 2、You can use almost any character you like....
分类:
其他好文 时间:
2014-06-15 22:01:43
阅读次数:
330
1. 文件复制
bool copy (string $source , string $dest ) PHP 4, PHP 5)
header("content-type:text/html;charset=utf-8");
$source_path = "index.php";
$dest_path = "copy_content.php"...
分类:
Web程序 时间:
2014-06-15 14:32:14
阅读次数:
207
Delphi反汇编内部字符串处理函数/过程不完全列表 名称 参数 返回值 作用 等价形式 / 备注 _PStrCat EAX :目标字符串 EDX :源字符串 EAX 连接两个 Pascal 字符串 s:=copy(s+s1,1,255) _PStrNCat EAX :目标字符串 EDX :源字符串...
分类:
其他好文 时间:
2014-06-14 18:34:27
阅读次数:
252
昨天把DM8168的Timer设置给摸了一遍,为写PWM的底层驱动做好了准备,现在就要进入主题了。
dm8168_pwm.c:
#include
#include
#include
#include /* copy_to_user,copy_from_user */
#include
#include
#include
static struct class *pwm_cla...
分类:
其他好文 时间:
2014-06-14 06:06:27
阅读次数:
234
1.知识点:可以对照下面的录屏进行阅读
PL/SQL程序结构
declare
说明部分 (变量说明,光标申明,例外说明 〕
begin
语句序列 (DML语句〕…
exception
例外处理语句
End;
/
----------------------------------------------------------------...
分类:
数据库 时间:
2014-06-14 00:30:36
阅读次数:
372
【Enumeration and
Structures】1、使用toRaw、fromRaw方法可以在原始值之间。注意enum的定义中使用了case。另外要注意switch中的枚举值。
2、struct和class最大的区别在于,struct被传递时,使用的是使用的是copy。 3、枚举变量可以有.....
分类:
其他好文 时间:
2014-06-13 19:53:46
阅读次数:
343
由于NSUserDefaults
不支持保存自定类,保存的对象需要实现NSCoding协议,不过自定的类型就算实现了NSCoding也不可以保存,可以通过以下方法实现://h文件#import
@interface People : NSObject@property(nonatomic,copy)...
分类:
其他好文 时间:
2014-06-13 17:17:52
阅读次数:
177