摘要:
ViewPager是个很好很强大的控件,很多应用用它来实现很酷的效果,但是很多情况下在运行时会遇到Errorinflatingclassandroid.support.v4.view.ViewPager这个问题,这个问题的解决方法很简单:右键项目选择BuildPath->ConfigureBuildPath,然后选择Orderandexport选项.置顶android-support-v4.jar并且将该选项勾上,然后Clean下项目,重新编译问题就解决了~ 阅读全文
posted @ 2013-11-22 12:01
花开花落云卷云舒
阅读(1580)
评论(0)
推荐(0)
摘要:
Loading Large Bitmaps Efficiently先不解码,读取image的宽高,然后降采样显示图片。参考:http://developer.android.com/training/displaying-bitmaps/load-bitmap.htmlImages come in all shapes and sizes. In many cases they are larger than required for a typical application user interface (UI). For example, the system Gallery appli 阅读全文
posted @ 2013-11-04 09:36
花开花落云卷云舒
阅读(221)
评论(0)
推荐(0)
摘要:
if (InetAddress.getByName("www.xy.com").isReachable(timeout)){ }else{ } 阅读全文
posted @ 2013-11-03 20:46
花开花落云卷云舒
阅读(260)
评论(0)
推荐(0)