11 2015 档案

摘要:今天使用Fragment的时候,出现了这个错误IllegalStateException: Can not perform this action after onSaveInstanceState:E/AndroidRuntime(12747):Causedby:java.lang.Illegal... 阅读全文
posted @ 2015-11-30 18:27 visuals 阅读(2178) 评论(0) 推荐(0)
摘要:一、setMaskFilter(MaskFilter maskfilter)setMaskFilter(MaskFilter maskfilter)是paint中的方法,它可以用来对图像进行一定的处理。这个方法需要传入一个MaskFilter对象。但MaskFilter类中没有任何实现方法,所以我们... 阅读全文
posted @ 2015-11-24 13:55 visuals 阅读(538) 评论(0) 推荐(0)
摘要:首先在Manifest中找到该Activity,设置属性:android:windowSoftInputMode="adjustResize|stateAlwaysHidden"在XML文件中搞一个自定义Layout如:然后定义这个Layout:public class TestSoftKeyboa... 阅读全文
posted @ 2015-11-19 13:19 visuals 阅读(208) 评论(0) 推荐(0)
摘要:public Bitmap createCanNotRecycleBitmap(Bitmap bitmap) { int fgWidth = bitmap.getWidth(); int fgHeight = bitmap.getHeight(); //create the new... 阅读全文
posted @ 2015-11-10 18:17 visuals 阅读(307) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-09 15:57 visuals 阅读(762) 评论(0) 推荐(0)
摘要:open -a /Applications/Sublime\ Text\ 2.app composer.json每次这样输太麻烦,可以这样:ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/lo... 阅读全文
posted @ 2015-11-04 17:33 visuals 阅读(209) 评论(0) 推荐(0)