浅谈RelativeLayout相对布局
摘要:http://www.cnblogs.com/zhiqiangsimida/archive/2012/11/27/2790489.html
阅读全文
posted @
2012-11-30 16:44
Tristan2012
阅读(110)
推荐(0)
android事件处理总结--dispatchTouchEvent
摘要:http://zhhx.blog.sohu.com/219275937.html
阅读全文
posted @
2012-11-28 16:57
Tristan2012
阅读(132)
推荐(0)
AlertDialog 在线程中无法关闭问题
摘要:今天遇到AlertDialog根据请求返回值来判定是否关闭对话框的问题但是一直无法关闭 1 // 对话框不消失 2 try 3 { 4 Field field = dialog.getClass().getSuperclass() 5 .getDeclaredField("mShowing"); 6 ...
阅读全文
posted @
2012-11-27 18:35
Tristan2012
阅读(995)
推荐(0)
Android中Application设置全局变量以及传值
摘要:http://www.cnblogs.com/cuitongliang/archive/2012/11/17/2774757.html
阅读全文
posted @
2012-11-20 17:05
Tristan2012
阅读(106)
推荐(0)
WebView中发送form请求 会弹出空白页
摘要:总是弹出空白页,在浏览器中和iphone上无此问题觉得是android webview问题 查到了这样一个解决方案先判定是否有空白页,截取到空白页后 就直接转向请求的地址 1 webviewNavLayout = (RelativeLayout)findViewById(R.id.webviewNavLayout); 2 webview = (WebView)findViewById(R.id.webviewLayout); 3 4 webview.setWebViewClient(new WebViewClient() 5 { 6 7 ...
阅读全文
posted @
2012-11-13 15:45
Tristan2012
阅读(1309)
推荐(0)
退出应用程序的问题
摘要:在mainlist 中 退出应用程序后 发现总是会调用oncreate在loginactivity中 注意黄色标注行 Intent intent = new Intent(context, MainList.class); intent.setFlags(intent.FLAG_ACTIVITY_CLEAR_TOP); context.startActivity(intent); // finish finish();同时在 loginactivity中 @Override ...
阅读全文
posted @
2012-11-12 16:03
Tristan2012
阅读(152)
推荐(0)
调用系统自带一些功能的代码
摘要:http://www.2cto.com/kf/201203/124467.html
阅读全文
posted @
2012-11-06 17:25
Tristan2012
阅读(144)
推荐(0)
设置TextView为下划线的样式
摘要:1 tvUserTel.setText(Html.fromHtml("<u>"+usertel+"</u>"));2 tvUserTel.setTextColor(Color.BLUE);//设置为蓝色
阅读全文
posted @
2012-11-06 16:37
Tristan2012
阅读(185)
推荐(0)