Android一些有用的依賴插件

    //retrofit框架,用於網絡請求
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'

    //把json字符串解析成相應對象
    implementation 'com.squareup.retrofit2:converter-gson:2.0.2'

    //butterknife註解框架:
    //解釋:ButterKnife是一個使用註解方式來爲Android中的View視圖綁定字段和方法,
    //能通過自動解析註解來搜索資源文件並賦值給Activity中的字段,
    //如使用@BindView,@BindColor替代原生的findViewById,getColor等方法,
    //或者給View視圖的監聽器綁定方法,如使用@OnClick 替代 setOnClickListener等方法。
    //參考鏈接:https://blog.csdn.net/qq402164452/article/details/60779660
    implementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'



    //圖片加載:
    //用法:Glide.with(this).load(url).into(imageView);
    //參考鏈接:https://blog.csdn.net/u013928412/article/details/83140713
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'

    //輪播圖
    //參考鏈接:https://blog.csdn.net/super_captain/article/details/69572115
    implementation 'com.youth.banner:banner:1.4.10'

    //下拉加載
    //參考鏈接:https://blog.csdn.net/qq_34709056/article/details/78929107
    implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.5.1'
    implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.5.1'//沒有使用特殊Header,可以不加這行
    implementation 'com.android.support:appcompat-v7:28.0.0'//版本 23以上(必須)
    implementation 'com.android.support:design:28.0.0'//版本隨意(非必須,引用可以解決無法預覽問題)

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章