1.new file 文件的路径,要用双右斜杠,或者单反斜杠, 详见浏览器收藏 2.要记得关掉流,一般在finally里面,关闭先判别是否为null 3.map.put("isEnd","0")后 再 map.put("isEnd","1") 是将isEnd 的Value覆盖为1.等同于修改valu Read More
posted @ 2016-07-13 21:50 perfect_is_shit Views(94) Comments(0) Diggs(0)
1.new file 文件的路径,要用双右斜杠,或者单反斜杠, 详见浏览器收藏 2.要记得关掉流,一般在finally里面,关闭先判别是否为null3.map.put(“isEnd”,”0”)后 再 map.put(“isEnd”,”1”)是将isEnd 的Value覆盖为1.等... Read More
posted @ 2016-07-13 21:36 perfect_is_shit Views(159) Comments(0) Diggs(0)
git 错误git命令行模式,输入git add 命令出现如下错误fatal: Unable to create ‘C:/Users/cp/Documents/GitHub/first/.git/index.lock’: File exists.If no other git pr... Read More
posted @ 2016-06-03 17:00 perfect_is_shit Views(844) Comments(0) Diggs(0)
android UI界面 weight 用法:-weight用在xml - 语句为android:layout_weight=”数字” - 主要用在LinearLayout布局中weight可以理解为权重,(控件)按比例占据空间的意思,这个空间一般来说是线性(横或者竖)的。例如... Read More
posted @ 2015-12-15 16:08 perfect_is_shit Views(514) Comments(0) Diggs(0)
从学了JAVA,到安卓,到现在这些天对着屏幕敲IOS(Object-c),面对object-c这种“反人类,反科学”的语言,了解一个个语言特性的时候,都挺陌生 工欲善其事,必先利其器。 开发IOS使用的是xcode,对用过android studio和 Eclipse 的码农选手来说,这无... Read More
posted @ 2015-11-06 16:09 perfect_is_shit Views(288) Comments(0) Diggs(0)
虽然是官方的,但速度很快 比在appStore下载快 直接复制链接,在迅雷粘贴新建任务就好 :) Xcode 6.3 官方下载链接: http://adcdownload.apple.com/Developer_Tools/xcode_6.3/xcode_6.3.dmg... Read More
posted @ 2015-10-25 09:42 perfect_is_shit Views(175) Comments(0) Diggs(0)
当Intent在组件间传递时,组件如果想告知Android系统自己能够响应和处理哪些Intent,那么就需要用到IntentFilter对象。 顾名思义,IntentFilter对象负责过滤掉组件无法响应和处理的Intent,只将自己关心的Intent接收进来进行处理。 Intent... Read More
posted @ 2015-10-16 11:20 perfect_is_shit Views(188) Comments(0) Diggs(0)
在Android studio中,xml的布局文件大多数使用的是android:id=android:layout_marginLeft=android:text=...等属性这些属性前面的android关键字,其实是对应了xml布局文件中的:xmlns:android="http://s... Read More
posted @ 2015-10-15 10:51 perfect_is_shit Views(1128) Comments(0) Diggs(1)
无意中发现的这个有趣的问题。 观察下列代码, 父类和子类中都定义有 String name变量,那最终继承之后是不是只剩下1个name?还是父类子类的name互相不相干? 通过赋值后,最后会输出什么?见如下 public class Son extends Parent{ Stri... Read More
posted @ 2015-09-05 14:14 perfect_is_shit Views(2737) Comments(1) Diggs(0)
今天起的有点早我,醒来才8点不到,算是这段时间起的比较早的。 一直都想写个博客记录下自己考研的日子,具体动因我会改天写过一篇,虽然感觉有点牢骚 今天去到那个最近的教室,原本以为坐我前面那个几乎只见过背影的女生会早来,记不清昨天还是前天她去得很早,就在那睡觉,这就更突出一个“早”, 不扯她了... Read More
posted @ 2014-08-04 09:32 perfect_is_shit Views(106) Comments(0) Diggs(0)