android
zzycami
这个作者很懒,什么都没留下…
展开
-
关于file.exits不工作的解决方案
context.openFileOutput(fileName+".json", Context.MODE_PRIVATE); ... File file = new File(fileName); if(!file.exists()){ file.createNewFile(); } 通过上面的办法所创建的文件是存在../data/data中的文件,MODE_PRIVATE是不允原创 2012-04-02 10:36:51 · 432 阅读 · 0 评论 -
android RectF 和 Rect的区别
1、精度不一样,Rect是使用int类型作为数值,RectF是使用float类型作为数值 2、两个类型提供的方法也不是完全一致 Rect: equals(Object obj) (for some reason it as it's own implementation of equals) exactCenterX() exactCenterY() flattenToString() t转载 2012-04-09 20:46:48 · 10525 阅读 · 2 评论