Giter Site home page Giter Site logo

damai-master's Introduction

大麦网Demo

通过Demo总结下最近使用的技术

使用原生手写

1. 封装网络框架 HttpURLConnection
   RxJava+Retrofit+Okhttp
   动态缓存JSON数据 30分种,超时重新加载
2. 自定义图片加载工具
   使用三级缓存+队列 下载、展示
3. Fragment懒加载
4. 自定义Banner
   可以显示少于5条Banner数据  甚至只有1条Banner数据
   自动滚动,触摸时不滚动Banner
   可设置点击事件
5. 封装Adapter,减少代码量
    支持多布局
    支持头部、尾部视图、空视图
6. 分模块开发,将项目框架与核心业务区分开
7. 封装多个常用类
...

技术点一览

  • BannerView 的用法

  • 封装网络框架 的用法

  • 万能适配器(洋神) 的用法

  • 流式布局(洋神) 的用法

  • 懒加载Fragment的用法

  • 自定义 ImageLoader 的用法

  • 封装的多个工具类 查看

  • 限时本地缓存数据 查看

  • LiteRoute 界面跳转 查看

  • 工厂模式 切换使用的网络库 查看

  • 欢迎页广告管理 查看

  • 新版本自动检测管理 查看

  • 上传用户头像 Fragment Activity 都可用 查看

damai-master's People

Contributors

zcxf avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.