项目中经常使用style和Theme,但却从来没有考虑过它们的区别,只会copy来copy去的,有时候还有些迷茫,为了彻底告别迷茫,现把这两者的区别和使用总结出来,供自己和大伙参考
一.作用域
Theme是针对窗体级别的,改变窗体样式。
Style是针对窗体元素级别的,改变指定控件或者Layout的样式
二.使用方式
Theme
1. 在res\values\ 下创建themes....
分类:
移动开发 时间:
2014-06-16 12:12:19
阅读次数:
371
原题地址:https://oj.leetcode.com/problems/gray-code/题意:The
gray code is a binary numeral system where two successive values differ in only
one bit.Given a...
分类:
编程语言 时间:
2014-06-16 07:42:27
阅读次数:
242
Swift 初见本页内容包括:简单值(Simple Values)控制流(Control
Flow)函数和闭包(Functions and Closures)对象和类(Objects and Classes)枚举和结构体(Enumerations
and Structures)接口和扩展(Proto...
分类:
其他好文 时间:
2014-06-16 06:21:56
阅读次数:
294
public void testInsert() { ContentValues values =
new ContentValues();/* *
首先向RawContacts.CONTENT_URI执行一个空值插入,目的是获得系统返回的rawContactId */ Uri rawContact...
分类:
移动开发 时间:
2014-06-16 00:40:11
阅读次数:
356
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: Recursive solut...
分类:
其他好文 时间:
2014-06-15 19:06:52
阅读次数:
166
1、
??
Unique Binary Search Trees II
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-06-15 09:09:00
阅读次数:
256
Path Sum:Given a binary tree and a sum, determine
if the tree has a root-to-leaf path such that adding up all the values along the
path equals the giv...
分类:
其他好文 时间:
2014-06-13 16:09:02
阅读次数:
237
Update July 2011:This list has been reviewed and
made current with the most recent Eclipse 3.7 release.If you are a Java
developer and use the new @Su...
分类:
其他好文 时间:
2014-06-12 17:10:17
阅读次数:
278
Dalvik opcodesAuthor:Gabor PallerVx values in
the table denote a Dalvik register. Depending on the instruction, 16, 256 or 64k
registers can be access...
分类:
其他好文 时间:
2014-06-12 16:41:36
阅读次数:
307