美文网首页
02.aOS通用

02.aOS通用

作者: LewisZhu | 来源:发表于2020-04-25 12:26 被阅读0次

1.项目的创建

1>.注意命名尽量用驼峰或者两字符,不要用下划线。


WechatIMG9.jpeg

2>.new Moudle - android library (新建公共的Moudle)


WechatIMG10.jpeg
3>.file - project structure 中配置依赖关系
WechatIMG11.jpeg

2>.配置前面屏幕


Screen Shot 2020-04-25 at 11.12.38 AM.png

2.Configurator

做一些统一的基础配置 是否已经ready,base url,application content等等的配置!

3.Retrofit

官网:Retrofit

    导入依赖
    implementation 'com.squareup.retrofit2:retrofit:2.8.1'
    implementation 'com.squareup.retrofit2:converter-scalars:2.8.1'

4.加载的indicator

官网:AVLoadingIndicatorView

    // api表示可以进行依赖传递  implementation表示只能在自己的module中使用
    api 'com.wang.avi:library:2.1.3'

5.推荐一个aos的utils库 获得屏幕宽高

官网:AndroidUtilCode

implementation 'com.blankj:utilcodex:1.28.0'

6.Fragmentation

官网:Fragmentation

// This is the use of androidx, if you are using the android.support: fragmentationx -> fragmentation
implementation 'me.yokeyword:fragmentationx:1.0.2'

7.字体图片加载

FontAwesomeModule字体

    api 'com.joanzapata.iconify:android-iconify-ionicons:2.2.2'
    api 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'

8.recyclerView

官网:BaseRecyclerViewAdapterHelper

        maven { url "https://jitpack.io" }

    api 'androidx.recyclerview:recyclerview:1.1.0'
    api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.2'
    api 'com.choices.divider:RecyclerView_Divider:1.0.0'

相关文章

  • 02.aOS通用

    1.项目的创建 1>.注意命名尽量用驼峰或者两字符,不要用下划线。 2>.new Moudle - android...

  • 通用

    1、UDID是Unique Device Identifier的简称,也就是唯一设备标识的意思 UUID就是一个随...

  • 通用

    yarn 淘宝源安装 yarn config set registry ttps://registry.npm.t...

  • CGI - 通用网关不通用

    CGI 起源 从 Web 服务器说起 在万维网初期,Web 服务器接受并解析客户端发来的 HTTP 请求,返回请求...

  • 爬虫原理与数据抓取之一: 通用爬虫和聚焦爬虫

    通用爬虫和聚焦爬虫 根据使用场景,网络爬虫可分为 通用爬虫 和 聚焦爬虫 两种. 通用爬虫 通用网络爬虫 是 捜索...

  • (了解)通用爬虫和聚焦爬虫--爬虫基础教程(python)(二)

    通用爬虫和聚焦爬虫 根据使用场景,网络爬虫可分为 通用爬虫 和 聚焦爬虫 两种.我们主要写通用爬虫。 通用爬虫 通...

  • UI资源命名规则

    通用 通用按钮 button_编号(名字) eg:button_1 通用背景 bg_编号(名字)bg_功能 eg:...

  • web跳转app

    iOS Universal Links(通用链接) 1.构建通用链接 2.上传通用链接 3.配置Xcode 4测试...

  • NumPy基础之数组常用函数(一)

    通用函数 通用函数(ufunc)是对数组中的数据执行元素级运算的函数。常用的一元通用函数如下表所示。 二元通用函数...

  • 跟不熟的人怎么聊天

    大城市通用话题:房价,交通 北方城市通用话题:雾霾,降温 南方城市通用话题:高温,梅雨季节 中年男女通用话题:财富...

网友评论

      本文标题:02.aOS通用

      本文链接:https://www.haomeiwen.com/subject/hvbimhtx.html