下面是自定义Activity半透明的效果例子:res/values/styles.xml
res/values/color.xml #50000000注意:color.xml的#5000000前两位是透明的效果参数从00 到
ff(透明--不么透明),后6位是颜色的设置manifest.xmljav...
分类:
移动开发 时间:
2014-05-27 00:43:37
阅读次数:
340
总共分为4个部分:string值,Layout布局设计,MainActivity代码编写,给项目添加使用授权。1. string值
Phone-->res-->values-->strings.xml,代码如下: 手机拨号器 Hello world! Settings
请输...
分类:
移动开发 时间:
2014-05-24 00:49:54
阅读次数:
508
mask一定是PNG格式的图像,去掉背景 .jpg格式图片没有alpha
values遮罩是通过图片透明度的信息实现与颜色无关UIImage*_maskingImage =[UIImage
imageNamed:@"mask"];CALayer*_maskingLayer =[CALayer lay...
分类:
移动开发 时间:
2014-05-20 00:07:25
阅读次数:
474
1.异常提示:"image_content" is not translated in
zh-rCN,
zh-rTW2.错误原因:根据报错提示,是说我没有对string文件做国际化翻译操作,但是我报错的项目并没有做国际化,所以并没有values-zh-rCN和values-zh-rTW两个文件夹,最...
分类:
其他好文 时间:
2014-05-19 22:04:44
阅读次数:
317
【题目】
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.
You may not alter the values in the nodes, only n...
分类:
其他好文 时间:
2014-05-18 10:22:34
阅读次数:
367
Binary Tree Level Order Traversal
Total Accepted: 12441 Total
Submissions: 40879My Submissions
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left t...
分类:
其他好文 时间:
2014-05-18 10:11:13
阅读次数:
337
【题目】
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes it...
分类:
其他好文 时间:
2014-05-18 08:37:57
阅读次数:
370
1、
??
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 given sum.
For example:
Given the below...
分类:
其他好文 时间:
2014-05-18 03:25:06
阅读次数:
301
jvm性能优化及内存分区2012-09-17 15:51:37分类:JavaSome of the
default values for Sun JVMs are listed below.JDK 1.3.1_06 Initial Size Maximum
SizeClient JVM 1MB 32...
分类:
其他好文 时间:
2014-05-18 02:46:12
阅读次数:
311
You need to override onSaveInstanceState(Bundle
savedInstanceState) and write the application state values you want to change to
the Bundle parameter ...
分类:
移动开发 时间:
2014-05-17 14:49:13
阅读次数:
292