2015年4月21日

万能的ViewHolder

摘要: /** * 万能的ViewHolder * @author * */ static class ViewHolder { /** * * @param view 所有缓存View的根View * @param id 缓存... 阅读全文

posted @ 2015-04-21 00:26 无端 阅读(246) 评论(0) 推荐(0) 编辑

2015年4月20日

典型的Json数据格式

摘要: { "data": [ { "children": [ { "id": 10007, "title": "北京", ... 阅读全文

posted @ 2015-04-20 23:34 无端 阅读(355) 评论(0) 推荐(0) 编辑

2015年4月13日

fragment和工厂设计模式结合结合

摘要: class MyPagerAdapter extends FragmentPagerAdapter{ private String[] tab_names; public MyPagerAdapter(FragmentManager fm) { super(fm); tab_names... 阅读全文

posted @ 2015-04-13 23:29 无端 阅读(649) 评论(0) 推荐(0) 编辑

去除预加载的Viewpager

摘要: package com.example.zhbj_heima47.view;/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the ... 阅读全文

posted @ 2015-04-13 22:11 无端 阅读(2328) 评论(0) 推荐(0) 编辑

2015年4月9日

ScrollView中ViewPager无法正常滑动问题(转)

摘要: package cc.newnews.view;import android.content.Context;import android.util.AttributeSet;import android.view.GestureDetector;import android.view.Gestur... 阅读全文

posted @ 2015-04-09 21:18 无端 阅读(210) 评论(0) 推荐(0) 编辑

能够兼容ViewPager的ScrollView(转)

摘要: /** * 能够兼容ViewPager的ScrollView * @Description: 解决了ViewPager在ScrollView中的滑动反弹问题 */public class ScrollViewExtend extends ScrollView { // 滑动距离及坐标 p... 阅读全文

posted @ 2015-04-09 21:16 无端 阅读(152) 评论(0) 推荐(0) 编辑

2015年4月7日

把时间格式的数据转化为整数

摘要: /** * * @param string 时间 * @param height控件的高度 * @return */ //"9:00-20:45" private int[] prosessTime1(String string,int height) { string=string.trim(... 阅读全文

posted @ 2015-04-07 23:37 无端 阅读(635) 评论(0) 推荐(0) 编辑

课程表

摘要: package com.liupan.mydemo.widget;import java.io.IOException;import java.io.InputStream;import java.util.ArrayList;import java.util.List;import java.ut... 阅读全文

posted @ 2015-04-07 00:01 无端 阅读(160) 评论(0) 推荐(0) 编辑

2015年3月16日

简单的分享功能

摘要: ... 阅读全文

posted @ 2015-03-16 22:00 无端 阅读(167) 评论(0) 推荐(0) 编辑

导航