摘要:
package com.travelsky.bluesky.utils;import android.content.Context;import android.graphics.Rect;import android.text.TextUtils;import android.util.AttributeSet;import android.widget.TextView;/** * 跑马灯效果 textview * @author zbtu * @date 2013-4-22 上午8:55:44 ... 阅读全文
摘要:
java.long.NoClassDefFoundError: sun.misc.BASE64Encoder 阅读全文
摘要:
02-20 16:28:22.920: E/AndroidRuntime(8523): java.lang.ClassCastException: android.widget.GridView cannot be cast to android.widget.TextView02-20 16:28:22.920: E/AndroidRuntime(8523): at android.widget.SimpleExpandableListAdapter.bindView(SimpleExpandableListAdapter.java:247)由于SimpleExpandableListAd. 阅读全文
摘要:
在quartz中一个作业实例必须实现org.quartz.Job接口package com.unicom.gdnum.jobs;import java.util.*;import org.apache.commons.logging.*;import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException;public class HelloworldJob implements Job{ static Log log=LogFactory.getLog(Hell. 阅读全文
摘要:
REFERENCES:MQTThttp://www.cnblogs.com/glony/articles/2308165.htmlhttp://hi.baidu.com/zhu410289616/blog/item/c11aea5daa12c25ffbf2c01d.htmlhttp://blog.csdn.net/joshua_yu/article/details/6563587iphone pushhttp://w54653520.iteye.com/blog/1319595http://code.google.com/p/javapns/ 阅读全文
摘要:
使用系统设置中的API会改变系统的语言,在onpause等去改变语言,效果不是太好。另外下面的方法只有在新启动的activity中才能生效。 public void switchLanguage(Locale locale) { Resources resources = getResources();// 获得res资源对象 Configuration config = resources.getConfiguration();// 获得设置对象 DisplayMetrics dm = resources.getDisplayMetrics()... 阅读全文
摘要:
REFERENCES:http://www.raywenderlich.com/zh-hans/20855/ios-5-arc-%E5%85%A5%E9%97%A8-13 阅读全文
摘要:
xcode的debug只有在定义variable时可以查看其值 阅读全文
摘要:
Action Sheet和Alert是2种特殊的控件(暂且称之为控件吧,其实不是控件真正的控件,而是ios中的2个类,这2个类定义了2种不同类型的用于和用户交互的弹出框),Action Sheet是从底部弹出,上面有2个或者2个以上的选项供用户选择,Alert就是一个警告框,上面有1个或者1个以上的按钮供用户进行选择。在继续这一篇的内容之前,稍微花点时间说一下ios中用到的Delegate Pattern(委托\代理模式)。ios中有很多已经定义好的类可以供我们在编写程序时直接使用,例如UIActionSheet、UIAlertView等,这些类定义了很多method,我们可以调用这些meth 阅读全文
摘要:
将view的class改成ViewController,ViewContrlloer继承于View,拥有View的所有属性且多了对于事件的处理,所以可以在事件中处理。-(IBAction)backgroundTap:(id)sender{ [nameField resignFirstResponder]; [numberField resignFirstResponder];}REFERENCES:http://www.cnblogs.com/minglz/archive/2012/11/17/2770848.html 阅读全文