摘要: 1. 在build.gradle中添加依赖 implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.github.bumptech.glide:glide:3.7.0' 2. 在xml中添加rec 阅读全文
posted @ 2019-05-28 22:05 笺笙 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 首先,添加OkHttp依赖 implementation 'com.squareup.okhttp3:okhttp:3.14.2' 因为静态接口需要Java8才能支持使用,我们要使用静态接口,需要在build.gradle文件中添加如下配置声明,使用Java8编译 compileOptions { 阅读全文
posted @ 2019-05-28 20:32 笺笙 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: activity_splash.xml中进行布局: 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmln 阅读全文
posted @ 2019-05-28 19:38 笺笙 阅读(1757) 评论(0) 推荐(1) 编辑
摘要: 首先,添加OkHttp依赖 implementation 'com.squareup.okhttp3:okhttp:3.14.2' 因为静态接口需要Java8才能支持使用,我们要使用静态接口,需要在build.gradle文件中添加如下配置声明,使用Java8编译 compileOptions { 阅读全文
posted @ 2019-05-28 15:47 笺笙 阅读(2336) 评论(0) 推荐(0) 编辑