2012年11月13日
摘要: 总是弹出空白页,在浏览器中和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 阅读(1307) 评论(0) 推荐(0)
  2012年11月12日
摘要: 在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 阅读(149) 评论(0) 推荐(0)
  2012年11月6日
摘要: http://www.2cto.com/kf/201203/124467.html 阅读全文
posted @ 2012-11-06 17:25 Tristan2012 阅读(141) 评论(0) 推荐(0)
摘要: 1 tvUserTel.setText(Html.fromHtml("<u>"+usertel+"</u>"));2 tvUserTel.setTextColor(Color.BLUE);//设置为蓝色 阅读全文
posted @ 2012-11-06 16:37 Tristan2012 阅读(182) 评论(0) 推荐(0)
  2012年10月24日
摘要: public class Utils { private static long lastClickTime; public static boolean isFastDoubleClick() { long time = System.currentTimeMillis(); long timeD = time - lastClickTime; if ( 0 < timeD && timeD < 500) { return true; } lastClickTime = ... 阅读全文
posted @ 2012-10-24 18:13 Tristan2012 阅读(1768) 评论(0) 推荐(0)
  2012年10月23日
摘要: if ("".equals(text.getText().toString().trim())) 阅读全文
posted @ 2012-10-23 09:24 Tristan2012 阅读(305) 评论(0) 推荐(0)
  2012年10月9日
摘要: 今天开发过程中自定义了checkbox样式,但是后来发现图片离文字总是有一些间隔将checkbox的背景设置如下可以解决这个问题,让文字紧贴图片 android:background="@null" 阅读全文
posted @ 2012-10-09 17:14 Tristan2012 阅读(2012) 评论(0) 推荐(0)
  2012年9月28日
摘要: 今天希望在girdview中选择后,改变背景图,默认选中有黄色背景希望去除,在网上找到了解决方案1 gridView.setSelector(new ColorDrawable(Color.TRANSPARENT));原文地址http://www.eoeandroid.com/thread-190214-1-1.html 阅读全文
posted @ 2012-09-28 18:22 Tristan2012 阅读(3762) 评论(0) 推荐(0)
  2012年9月20日
摘要: 打开C:\Windows\System32\drivers\etc下 hosts文件# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed 阅读全文
posted @ 2012-09-20 11:00 Tristan2012 阅读(260) 评论(0) 推荐(0)
  2012年6月4日
摘要: android:layout_alignParentLeft="true"绝对布局中左对齐android:layout_centerVertical="true"垂直居中android:layout_toRightOf="@+id/ivBottomIcon"在控件的右侧 android:layout_alignParentRight="true"在父控件的最右边 android:gravity="center_vertical"布局中的元素垂直居中 android:layout_marginLe 阅读全文
posted @ 2012-06-04 10:15 Tristan2012 阅读(166) 评论(0) 推荐(0)