摘要: 摘自http://www.cnblogs.com/plokmju/p/android_handler.html注意:对于UI组件,不能再其他线程内操作它(如调用它的方法) 比如 Button bt1=(Button)findViewById(R.id.start); ... 阅读全文
posted @ 2015-03-13 23:38 beyondbycyx 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1.Resource类 Resources getResources():contextwrapper,获取当前Resources类 可以操作res/文件夹下的任意资源文件。 目录:res/anim/ Animation对象的xml文件 目录:res/drawalbe/ 图片文件 目录:res/la... 阅读全文
posted @ 2015-03-13 22:49 beyondbycyx 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1.创建Dialog() android提供了4种类型的Dialog:AlertDialog,ProgressDialog,DatePickerDialog,TimePickerDialog.1.0 AlertDialog1.1 调用dialog的步骤(当用户点击某个item时) 用showDial... 阅读全文
posted @ 2015-03-13 22:39 beyondbycyx 阅读(174) 评论(0) 推荐(0) 编辑