美文网首页
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通用

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