摘要: 项目要求,比较好的实现是使用TabHost,因为TabHost可以缓存界面数据。但在这里我使用了点击生成新的Activity的形式,所以导致每次都刷新界面,重新创建Activity。在onCreate方法里需要自动刷新界面,所以每次都自动刷新界面。如果在manifest文件中给要打开的Activity配置启动模式为singleTask,这样就不会每次都启动新的Activity了,但是问题又出来了,就是当跳转到另一个Activity的时候,退出的是退到上一个Activity中去,用户体验很不好,所以需要在每个有必要的Activity中设置keyback键监听下,自定义一个Application, 阅读全文
posted @ 2013-12-07 15:07 fancychendong 阅读(369) 评论(0) 推荐(0) 编辑
摘要: Gradient basically represents the variation in space(in a direction) of any quantity. With color it represents the variation of color intensity in a direction represented by angle. Here are some diagrams to represent this concept:Here the figure shows the color variation in horizontal direction(angl 阅读全文
posted @ 2013-06-25 08:50 fancychendong 阅读(385) 评论(0) 推荐(0) 编辑
摘要: TCP一点东东packageorg.upeng.mail.net.server;importjava.io.BufferedReader;importjava.io.BufferedWriter;importjava.io.IOException;importjava.io.InputStreamReader;importjava.io.OutputStreamWriter;importjava.net.Socket;importorg.upeng.mail.net.util.AESUtil;importorg.upeng.mail.net.util.NetConfit;importorg.u 阅读全文
posted @ 2012-12-03 17:20 fancychendong 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 一、Android开发图书推荐:http://book.apkbus.com/二、Android开发精选源码推荐:http://demo.apkbus.com/三、Android 开发 UI设计http://www.apkbus.com/design/四、 Android开发系列教程合集http://dev.apkbus.com/五、Android开发入门到精通http://android.apkbus.com/ 阅读全文
posted @ 2012-09-14 22:59 fancychendong 阅读(444) 评论(0) 推荐(1) 编辑