上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 贴一下主要代码: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 5 阅读全文
posted @ 2016-04-13 13:36 gentspy 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 在android中提供了一种异步回调机制Handler,使用它,我们可以在完成一个很长时间的任务后做出相应的通知 handler基本使用: 在主线程中,使用handler很简单,new一个Handler对象实现其handleMessage方法,在handleMessage中提供收到消息后相应的处理方 阅读全文
posted @ 2016-04-08 16:36 gentspy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Android常用控件总结 Android常用控件总结 标签: Android布局 2013-07-10 20:48 610人阅读 评论(0) 收藏 举报 标签: Android布局 2013-07-10 20:48 610人阅读 评论(0) 收藏 举报 分类: android(79) 分类: an 阅读全文
posted @ 2016-04-08 09:46 gentspy 阅读(241) 评论(0) 推荐(0) 编辑
摘要: public class PlanView extends View{ public float currentX; public float currenty; Bitmap plan; public PlanView(Context context) { super(context); plan 阅读全文
posted @ 2016-03-31 22:10 gentspy 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 用线程 public class Test extends Activity {private final int SPLASH_DISPLAY_LENGHT = 10000; // 延迟10秒@Overridepublic void onCreate(Bundle savedInstanceSta 阅读全文
posted @ 2016-03-31 13:17 gentspy 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ImageButton 是带图标的Button控件,有src的属性,也就是设置他的图标,也有一个所有控件公有的属性background, 这个也可以设置它的“图标”。 其实,src才是设置图标,而background只是设置背景。 如果控件的大小是100*100 图片资源是80*80的话,那么用sr 阅读全文
posted @ 2016-03-26 12:47 gentspy 阅读(192) 评论(0) 推荐(0) 编辑
摘要: when your AS show this infro: Error running app:Instant Run requires 'Tools|Android|Enable ADB integration' to be enable a Method is: 菜单栏,Tools -> Adn 阅读全文
posted @ 2016-03-23 21:03 gentspy 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 景演示 : 切换到该Fragment 11-29 14:26:35.095: D/AppListFragment(7649): onAttach11-29 14:26:35.095: D/AppListFragment(7649): onCreate11-29 14:26:35.095: D/App 阅读全文
posted @ 2016-03-19 10:39 gentspy 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1,首先要申明广播private BroadCastReceiver mBroadcastReceiver=new BroadcastReciver(){public void onReceive(Context context,Intent intent//onReceive不能做好事操作){Lo 阅读全文
posted @ 2016-03-08 09:16 gentspy 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 使用场景1,通过startService开启的服务,一旦服务开启,这个服务和开启他的调用者之间就没有任何关系了,调用者不可以访问Service里面的方法,调用者被系统回收或调用了onDestroy方法,Service还会继续存在2,通过bindService开启服务,Service和调用者之间还存在 阅读全文
posted @ 2016-03-07 17:45 gentspy 阅读(649) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页