摘要: 小结: receiver是不存在于任务栈中的,在receiver里面启动一个Activity必须要指定flag:Intent.FLAG_ACTIVITY_NEW_TASK 写了一个外拨电话拦截的广播,当拨打一个号码的时候去启动一个Activity。 示例Demo 1 public class PhoneReceiver extends BroadcastReceiver { 2 3 @Override 4 public void onReceive(Context context, Intent intent) { 5 // TODO Auto-ge... 阅读全文
posted @ 2013-02-16 17:11 My_苦行僧 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 设置距离的属性:margin:外边距 指定的范围不属于控件本身padding:内边距 指定的范围属于控件本身示例图: 阅读全文
posted @ 2013-02-16 00:03 My_苦行僧 阅读(154) 评论(0) 推荐(0) 编辑