看我写的这2个源码 把总结答出来 估计还行吧

1.7 :http://blog.csdn.net/carson_ho/article/details/79373026
1.8:http://blog.csdn.net/carson_ho/article/details/79373134