
android
文章平均质量分 67
jxuin
这个作者很懒,什么都没留下…
展开
-
开发技巧杂集(转)
1.检查是否有网络连接view plaincopy to clipboardprint?public static boolean isNetworkAvailable(Context context) { ConnectivityManager cm = (ConnectivityManager) context....原创 2011-03-04 16:07:30 · 110 阅读 · 0 评论 -
android AsyncTask错误
Only the original thread that created a view hierarchy can touch its views警告由于 继承AsyncTask的类中 重写的方法中doInBackground(String... params) view更新操作,只要将view的更新操作放在onPostExecute(String result)方法中...原创 2011-03-07 10:43:20 · 163 阅读 · 0 评论 -
Android 使用AsyncTask 后监听异步加载完毕的动作(转)
AsyncTask 的使用方法网上有很多例子,使用起来也非常的方便。这里就不详细说具体的使用方法了,同学可以Google 一下,很多。场景模拟 当我们在加载一个列表的时候,比如GridView ,这时候我们考虑到不阻塞UI的做法,一般会使用线程Thread 、Timer 或者使用AsyncTask ,而这些操作都是在在后台另外开一个线程给我们找数据,具体得到的数据...原创 2011-03-07 11:26:08 · 190 阅读 · 0 评论 -
Android 背景渐变 渐变背景 shape(转)
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startCo...原创 2011-03-20 10:25:08 · 172 阅读 · 0 评论