11 2013 档案
摘要:gridView.setSelector(new ColorDrawable(Color.TRANSPARENT));详细说明:http://blog.csdn.net/songzhiyong1121/article/details/8740923
阅读全文
摘要:Good sir, try this:edittext.setFocusableInTouchMode(true);edittext.requestFocus();Im not sure, but this might be required on some phones (some of the older devices):finalInputMethodManager inputMethodManager =(InputMethodManager) context .getSystemService(Context.INPUT_METHOD_SERVICE)...
阅读全文
摘要:ViewPager是个很好很强大的控件,很多应用用它来实现很酷的效果,但是很多情况下在运行时会遇到Errorinflatingclassandroid.support.v4.view.ViewPager这个问题,这个问题的解决方法很简单:右键项目选择BuildPath->ConfigureBuildPath,然后选择Orderandexport选项.置顶android-support-v4.jar并且将该选项勾上,然后Clean下项目,重新编译问题就解决了~
阅读全文
摘要: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
阅读全文
摘要:if (InetAddress.getByName("www.xy.com").isReachable(timeout)){ }else{ }
阅读全文
浙公网安备 33010602011771号