GithubHelp home page GithubHelp logo

mamajh's Introduction

#项目说明 更新日期 2017-03-08

###开发环境 Windows/Mac
IDE:Android Studio

###目录说明 所有文件的命名规则都顾名思义。不知道?拿字典查

###root

####app\src\main\java

#####activity:

  • 每个Activity上都有注释说明,没有的话说明太简单,看名知意
  • 所有Activity需继承com.yqx.mamajh.base.BaseActivity并实现方法,去掉原有onCreate方法
  • 将LayoutId放入getContentViewLayoutID实现的方法中,例:
@Override
protected int getContentViewLayoutID() {
    return R.layout.activity_classify;
}
  • getBundleExtras 方法可以获取bundle数据
  • initViewsAndEvents 所有初始化视图和事件添加都在这里添加
  • 更多方法说明点进类中方法有注释说明,都是顾名思义的命名方法,不在多余复述
  • 其中BaseActivity还封装了startActivity方法,可以直接调用readyGo方法,传入对应参数,可实现各种startActivity。

#####adapter

  • 各种适配器

#####base

  • 各种基础类

#####bean

  • 各种实体类

#####dbcity

  • 城市选择相关类,用于地址选择

#####fragment

#####interactor

#####interfaces

#####listener

#####location

  • 百度定位

######network

  • 网络接口,使用Retrofit2进行网络数据的传输,使用教程:各种搜索引擎“Retrofit2”

######Presenter

#####services

#####update

#####utils

  • 各种工具类,看名知意

#####view

#####widget

  • 相关控件,看名知意

#####wxapi

  • 微信支付相关

####app\src\main\res

  • Android资源文件

####library\src\main\java

  • 自定义控件和第三方控件工具类
    若需要添加第三方依赖或工具库请放置library/build.gradle,方便后期维护,而app/build.gradle主要用于项目编译相关配置

mamajh's People

Watchers

 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.