摘要:
/** * 获得指定日期的前一天 * @param specifiedDay * @return * @throws Exception */ public static String getSpecifiedDayBefore(String specifiedDay){ //SimpleDateFormat simpleDateFormat = new SimpleDateFor... 阅读全文
posted @ 2016-05-30 16:01
星辰之力
阅读(71213)
评论(2)
推荐(0)
摘要:
Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DATE, -1); //得到前一天 calendar.add(Calendar.MONTH, -1); //得到前一个月 int year = calendar.get(Calendar.YEAR); int month = c... 阅读全文
posted @ 2016-05-30 15:51
星辰之力
阅读(10347)
评论(0)
推荐(0)
摘要:
使用Calendar的add(int field, int amount)方法 Calendar ca = Calendar.getInstance();//得到一个Calendar的实例 ca.setTime(new Date()); //设置时间为当前时间 ca.add(Calendar.YEAR, -1); //年份减1 Date lastMonth = ca.getTime(); //结... 阅读全文
posted @ 2016-05-30 15:48
星辰之力
阅读(9330)
评论(0)
推荐(0)
摘要:
设置imageView显示网络上的图片 picUrl = new URL(getIntent().getExtras().getString("map_url")); Bitmap pngBM = BitmapFactory.decodeStream(picUrl.openStream()); mapIMG.setImageBitmap(pngBM); 阅读全文
posted @ 2016-05-30 12:58
星辰之力
阅读(3488)
评论(0)
推荐(0)
摘要:
目前下拉刷新已经满大街都是,在自己的应用如果不使用这个模式的话,出门都不好意思和人家打招呼,该文章就是简单探讨下针对于 github 上的这个开源项目的使用心得。 为什么是它?因为在 stackoverflow 上大家都说它不错,所以就试试看吧!该项目的位置 Android-PullToRefres 阅读全文
posted @ 2016-05-30 10:32
星辰之力
阅读(7603)
评论(0)
推荐(0)
摘要:
1.定义类MapListImageAndText管理ListViewItem中控件的内容 2. 定义类MapListViewCache实例化ListViewItem中的控件 3. 定义类AsyncImageLoader,开启线程下载指定图片 4. 定义类MapListImageAndTextList 阅读全文
posted @ 2016-05-30 10:12
星辰之力
阅读(1065)
评论(0)
推荐(0)
浙公网安备 33010602011771号