Git Product home page Git Product logo

androidmiddle's Introduction

app: dagger2 + MVP

  • 入口MainActivity

  • dagger2 + MVP

  • base文件夹MVP:抽出 BaseActivity范型初始化injector,共有presenter。IBasePresenter + IBaseView

  • IMain:对presenter和view的抽取。MainPresenter:presenter实现。

  • injector文件夹:对dagger2的准备,component:执行injector。module:连接M和P的桥梁。

  • DaggerMainComponent:利用injector文件夹(component、module)下的类生成的中间件。

  • Scope的理解:入口ScopeActivity,全局单例,多activity 单例共享(activityA、activityB共享,
    activityC独自享用,包含内部多实例共享)。

  • Scope 2的理解:入口Scope2Activity,全局单例(app),单activity单例,内部多实例共享。全局单例--》局部单例。 实质:component的拥有者是谁?Singleton修饰,scope修饰。app拥有component?activity拥有component?

rxBus: rxJava2 实现rxBus

  • app:dagger2 + MVP
  • base文件夹MVP:抽出 BaseActivity范型初始化injector,共有presenter。IBasePresenter + IBaseView
  • IMain:对presenter和view的抽取。MainPresenter:presenter实现。
  • injector文件夹:对dagger2的准备,component:执行injector。module:连接M和P的桥梁。
  • DaggerMainComponent:利用injector文件夹(component、module)下的类生成的中间件。

drawer: 抽屉实现,白天\夜晚 模式切换,tooBar使用,rxBus事件,SettingUtil保存数据

  • 抽屉实现:SVG图标,选择事件处理,开关按钮使用
  • 白天\夜晚:主题切换,开关着色,抽屉背景色、item背景色、字体色、SVG图标色,

retrofit: 网络请求

  • retrofit
  • rxJava

fullwebview: webView 播放html中的视频

  • 点击全屏响应:全屏
  • bug:HUAWEI H60-L01 Android 4.4.2 API 19 没有全屏回调事件。只是其中一个手机,等待解决

网络图片保存到相册

  • 通过数据库插入到相册,
  • bug:通过通知更新到相册,(扫描)bug:Meizu Pro5 Android5.1,API22,已经把图片成功放进文件夹中,但是并没有更新到相册中

androidmiddle's People

Watchers

James Cloos avatar george 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.