09 2014 档案

摘要:如果想通过调用findViewById()方法获取到相应的控件,必须要求当前Activity的layout通过setContentView. 如果你通过其他方法添加了一个layout,如需获取这个layout中的View对象,首先需inflate这个layout,然后在该layout上调用findV... 阅读全文
posted @ 2014-09-28 17:28 feiling 阅读(1046) 评论(0) 推荐(0) 编辑
摘要:最近在联系开发DaysMatter时遇到一个问题:app中使用ListView来展示所有事件,每次添加完事件后使用下面代码来更新ListView.1 toDoListView.refreshDrawableState();会出现如下错误,错误内容是讲ListView的adapter必须是在UI线程中... 阅读全文
posted @ 2014-09-28 16:22 feiling 阅读(507) 评论(0) 推荐(0) 编辑
摘要:1 final Builder builder = new AlertDialog.Builder(this); 2 builder.setIcon(R.drawable.appicns_folder_smart); 3 builder.setTitle("Normal Dialog"); 4 b... 阅读全文
posted @ 2014-09-25 17:14 feiling 阅读(170) 评论(0) 推荐(0) 编辑
摘要:1 import types 2 3 aaa = 0 4 print type(aaa) 5 if type(aaa) is types.IntType: 6 print "the type of aaa is int" 7 if isinstance(aaa,int): 8 p... 阅读全文
posted @ 2014-09-04 00:40 feiling 阅读(345) 评论(0) 推荐(0) 编辑
摘要:Found this great table athttp://wiki.python.org/moin/MovingToPythonFromOtherLanguagesPython indexes and slices for a six-element list.Indexes enumerat... 阅读全文
posted @ 2014-09-03 11:12 feiling 阅读(817) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示