2015-06-21 android PopupWindow和AlertDialog区别 Android的对话框有两种:PopupWindow和AlertDialog。它们的不同点在于: AlertDialog的位置固定,而PopupWindow的位置可以随意 AlertDialog是非阻塞线程的,而PopupWindow是阻塞线程的 Read More
2015-06-17 javascript JS自动刷新页面一次 12345678<script type="text/javascript"> //刷新页面 if(location.href.indexOf("refresh=1") === -1) { setTimeout(function() { location = location.href + "?refresh=1" },1) } </script> Read More
2015-06-16 开发工具 完美解决Android SDK Manager无法更新 由于国内的各种屏蔽现在Android SDK Manager出现无法更新或更新太慢,如下方法可完美解决此问题。 Read More
2015-06-14 android ImageView scaleType属性 使用ImageView时经常会用到scaleType属性,如: 12345<ImageView android:layout_width="100dp" android:layout_height="200dp" android:scaleType="matrix" android:src="@drawable/sample_small" /> Read More