本人自己在做一个launcher,所以需要处理icon,加阴影和边框等。这只是一种处理方法,其他的处理方法类似。
源代码:
https://github.com/com314159/LauncherIconMaskEffect
效果图:
核心思想:
1. 绘制边框时,先取原图片的颜色,再根据颜色绘制边框,加上了渐变效果
2.添加阴影其...
分类:
移动开发 时间:
2014-05-18 18:46:59
阅读次数:
429
从github上down下来一个项目,springMVC-chat。作者全是用的注解,也就是零配置。
这可苦了我,经过千辛万苦,最终集成到现在的项目中有一点样子了,结果报出来下面的错误。红色部分。解决方法为,在web.xml中也就是springMVC的总配置文件中加上一句话:
true
这句话的位置一定要放正确,否则,一切都是徒劳。至于配置spring异步支持(其实是配置servlet异...
分类:
编程语言 时间:
2014-05-18 18:32:49
阅读次数:
499
用jquery实现的一个超级简单的下拉菜单。
效果图
初始效果
鼠标悬浮效果
代码
nav a {
text-decoration: none;
}
nav > ul > li {
float: left;
text-align: center;
padding: 0 0.5em;
}
nav li ul.sub-menu {
...
分类:
Web程序 时间:
2014-05-18 10:48:11
阅读次数:
522
GitHub and Git basic command tips...
分类:
其他好文 时间:
2014-05-18 09:03:35
阅读次数:
255
【题目】
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
原文出自:方杰|http://fangjie.sinaapp.com/?p=183 转载请注明出处
最终效果演示:http://fangjie.sinaapp.com/?page_id=54
该项目代码已经放到github:https://github.com/JayFang1993/SinaWeibo
一.TabHost的实现
之前的一篇文章讲的就是TabHost,但是那...
分类:
移动开发 时间:
2014-05-18 08:22:30
阅读次数:
374
原文出自:方杰|http://fangjie.sinaapp.com/?p=141 转载请注明出处
学习Android也有一段时间了,感觉大部分的Android应用都有很多类似的组件,所以就打算做了这样一个开源项目,目的是整合一些Android开发常用的组件Demo,方便以后项目中直接拿来用。git地址:https://github.com/JayFang1993/AndroidUtil
...
分类:
移动开发 时间:
2014-05-18 06:06:04
阅读次数:
395
https://github.com/xsmart/onvifcpplib
这个库支持ProfileS 和ProfileG,目前还在开发当中,现在已经支持Event
下面是一个客户端的例子
int _tmain(int argc, _TCHAR* argv[])
{
int ret;
/* 192.168.1.1 is the NVT, 192.168.1.234 is the N...
分类:
编程语言 时间:
2014-05-18 05:26:01
阅读次数:
384
Redis是一个用的比较广泛的Key/Value的内存数据库,新浪微博、Github、StackOverflow等大型应用中都用其作为缓存,Redis的官网为http://redis.io/。最近项目中需要使用Redis,这里简单记录一下Redis的安装,以及如何在.NET中使用Redis。Redi...
分类:
Web程序 时间:
2014-05-17 23:28:11
阅读次数:
473
目录[-]必备软件:环境配置:【open-jdk-6.0】 【android-sdk】
【ant】 【github】【node.js】 【rvm】(ruby-1.9.3 rails-4.0.0 gemfile)
必备概念:关于自动化部署我推荐大家参谋一下Fortune Zhang的一篇文章:andr...
分类:
移动开发 时间:
2014-05-17 23:17:03
阅读次数:
647