上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 问题的引子先来看问题的引子。定义一个下面这样的类,此类有Serializable属性,并且有一个属性的定义没有使用自动属性来实现。[Serializable] public class Users { public int UserID { get; set; } public st... 阅读全文
posted @ 2015-02-10 09:36 宇少vlog 阅读(743) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/vipzjyno1/article/details/21039349 阅读全文
posted @ 2015-01-29 13:20 宇少vlog 阅读(112) 评论(0) 推荐(0)
摘要: /******************************************************************************* * Copyright 2011, 2012 Chris Banes. * * Licensed under the Apache Lic... 阅读全文
posted @ 2015-01-28 19:34 宇少vlog 阅读(1167) 评论(0) 推荐(1)
摘要: 不占满整个页面的滑动菜单,也可以是自动滑动广告~package view.example.viewpagerexample;import java.util.ArrayList;import java.util.List;import java.util.concurrent.atomic.Atom... 阅读全文
posted @ 2015-01-27 16:02 宇少vlog 阅读(674) 评论(0) 推荐(0)
摘要: 今天用到了Java中的Split函数,要以“|”作为分割符,当输入竖线时,发现出错,这个问题应该很久前就遇到过,不过太长时间就给忘了!网上一搜,就找到了答案,这是因为split里面有两个参数,其中一个是“limit”,表示匹配参数的个数,另一就是匹配参数,split不是简单的匹配,里面输入的是“正则... 阅读全文
posted @ 2015-01-27 15:43 宇少vlog 阅读(1648) 评论(0) 推荐(0)
摘要: package code.example.newcodeview;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.text.format.DateFormat;im... 阅读全文
posted @ 2014-12-25 09:11 宇少vlog 阅读(1415) 评论(0) 推荐(0)
摘要: 1 /** 2 * 3 * @param 字符串 4 * @return 字符长度 5 */ 6 public int getWordCount(String str) { 7 int length = 0; 8 f... 阅读全文
posted @ 2014-11-27 09:49 宇少vlog 阅读(541) 评论(0) 推荐(0)
摘要: public Button btnPay; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCo... 阅读全文
posted @ 2014-11-25 13:56 宇少vlog 阅读(192) 评论(0) 推荐(0)
摘要: 1 A页面: 2 Intent intent = new Intent(GrouponActivity.this, GroupBuyDetailsActivity.class);3 intent.putExtra("ID", entity.getID());... 阅读全文
posted @ 2014-11-25 08:46 宇少vlog 阅读(2432) 评论(0) 推荐(0)
摘要: http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100通过城市id获得天气数据,xml文件数据,当错误时会有节点http://wthrcdn.etouch.cn/WeatherApi?city=北京通过城市名字获得天气数据,xml文件数据 阅读全文
posted @ 2014-11-24 15:51 宇少vlog 阅读(185) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页