摘要: Linux Apache Mysql PHP source install CentOS6.5 Minimal setup *可选 更换yum源 yum install gcc gcc-c++ setuptool ntsysv iptables vim system-config-securityl 阅读全文
posted @ 2017-08-15 14:16 莲花味精 阅读(185) 评论(0) 推荐(0) 编辑
摘要: getview新建线程回造成thread太多程序崩溃在主线程里新建一个线程来每隔一秒维护数据数组,然后去刷新listview,notifidatachanged 阅读全文
posted @ 2014-01-10 13:51 莲花味精 阅读(243) 评论(0) 推荐(0) 编辑
摘要: int indexs=(int)(_v+0.5); 阅读全文
posted @ 2014-01-10 00:28 莲花味精 阅读(124) 评论(0) 推荐(0) 编辑
摘要: textview的settext方法不能设置int值,否则会出错 阅读全文
posted @ 2013-12-24 15:34 莲花味精 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1 public class MyGridView extends GridView { 2 public MyGridView(Context context, AttributeSet attrs) { 3 super(context, attrs); 4 } 5 6 public MyGridView(Context context) { 7 super(context); 8 } 9 10 public MyGridView(Context context, A... 阅读全文
posted @ 2013-12-17 14:07 莲花味精 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1 new CountDownTimer(30000, 1000) { 2 3 @Override 4 public void onTick(long millisUntilFinished) { 5 // TODO Auto-generated method stub 6 7 // System.out.println(millisUntilFinished / 1000 % 60 + "秒"); 8 // System.out.println... 阅读全文
posted @ 2013-12-16 19:52 莲花味精 阅读(283) 评论(0) 推荐(0) 编辑
摘要: java中,String类的split方法原型:public String[] split(String regex)根据给定的正则表达式的匹配来拆分此字符串。而 . 在正则表达式中指任何字符.这样写当然是有问题的.如果你需要用 . 来做分割符,请做一个转义,与成\\. 阅读全文
posted @ 2013-12-16 17:35 莲花味精 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 9patch图片要设置右侧和下侧像素点,负责做bankground时内容显示不正常 阅读全文
posted @ 2013-12-04 13:16 莲花味精 阅读(181) 评论(0) 推荐(0) 编辑
摘要: putExtra的时候,对象中所有属性都要实现Serializable接口 阅读全文
posted @ 2013-12-02 19:13 莲花味精 阅读(154) 评论(0) 推荐(0) 编辑
摘要: DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);screenWidth = dm.widthPixels; 阅读全文
posted @ 2013-11-28 15:32 莲花味精 阅读(147) 评论(0) 推荐(0) 编辑