上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要:   阅读全文
posted @ 2016-03-15 18:07 毕哥 阅读(440) 评论(0) 推荐(0) 编辑
摘要:   1、   build.gradle文件中加入             compile 'com.android.support:design:22.2.0' 2、写Xml文件,注意TabLayout的三个属性 app:tabIndicatorColor="#0f0"             阅读全文
posted @ 2016-03-15 18:02 毕哥 阅读(640) 评论(0) 推荐(0) 编辑
摘要: public class NoScrollListView extends ListView {    public NoScrollListView(Context context, AttributeSet attrs) {        super(context,attrs);    }   阅读全文
posted @ 2016-03-15 17:54 毕哥 阅读(120) 评论(0) 推荐(0) 编辑
摘要:     观察者模式其实就是   比如 给一个adapter设置了一个观察者  当adapter调用notifyDatasetchaged()方法时 会执行观察者中的回调方法   阅读全文
posted @ 2016-03-15 17:52 毕哥 阅读(397) 评论(0) 推荐(0) 编辑
摘要:      阅读全文
posted @ 2016-03-15 17:33 毕哥 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: 当我们的Viewpager含有很多个fragment时 一次全加载出来太占内存 我们可以用fragment的懒加载 当fragment可见的时候加载数据 Viewpager加载fragment的时候有个特点 会预加载当前可见页面左右相邻的页面 相邻的页面会走一遍生命周期(从onAttach直到onR 阅读全文
posted @ 2016-03-15 17:29 毕哥 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 项目可以去github下载 : https://github.com/lovetuzitong/MultiImageSelector 第0步 把模块 multi-image-selector 作为你的项目依赖添加到工程中. 第1步 在你的 AndroidManifest.xml 文件中添加权限 an 阅读全文
posted @ 2016-02-01 18:22 毕哥 阅读(1866) 评论(0) 推荐(0) 编辑
摘要: wheelView多用于popupwindow用来滚动选择条目 github上的开源三方控件 spannableString autofitTextView、PinnedSectionListView(固定标签) SwipeListView(右滑删除) Titanic(loading动画) Auto 阅读全文
posted @ 2016-02-01 17:36 毕哥 阅读(751) 评论(0) 推荐(0) 编辑
摘要: XListView是github上的开源第三方控件 内部封装好的一个类XListView 其内部包含XListViewFooter XListViewHeader 两个自定义类(控件)如此实现上拉加载更多、下拉刷新 此控件内部引用自己的布局 作为加载的界面 此控件类似于PulltoRefreshVi 阅读全文
posted @ 2016-02-01 17:27 毕哥 阅读(5749) 评论(0) 推荐(0) 编辑
摘要: import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os.Bundle;import android.webkit.WebView;public class M... 阅读全文
posted @ 2016-01-13 19:54 毕哥 阅读(364) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页