• 大小: 464KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-12
  • 语言: Java
  • 标签: Glide  

资源简介

主要实现将Glide通讯组件更换为当下最流行的网络加载框架Okhttp,并且通过拦截器实现图片加载进度,demo中还包括更换缓存路径和更换加载模式为ARGB_8888功能等

资源截图

代码片段和文件信息

package tsou.cn.glidetest;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumentation test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“tsou.cn.glidetest“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        127  2017-11-15 15:34  GlideTest\.gitignore

     文件     210660  2017-11-21 17:46  GlideTest\.gradle\3.3\taskArtifacts\fileHashes.bin

     文件    7407893  2017-11-21 17:46  GlideTest\.gradle\3.3\taskArtifacts\fileSnapshots.bin

     文件     141315  2017-11-21 17:46  GlideTest\.gradle\3.3\taskArtifacts\taskArtifacts.bin

     文件         17  2017-11-21 17:46  GlideTest\.gradle\3.3\taskArtifacts\taskArtifacts.lock

     文件     159594  2017-11-21 17:46  GlideTest\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin

     文件         17  2017-11-21 17:46  GlideTest\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock

     文件      29153  2017-11-21 17:46  GlideTest\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin

     文件         17  2017-11-21 17:46  GlideTest\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock

     文件        686  2017-11-16 12:35  GlideTest\.idea\compiler.xml

     文件         76  2017-11-16 12:35  GlideTest\.idea\copyright\profiles_settings.xml

     文件        626  2017-11-16 12:35  GlideTest\.idea\gradle.xml

     文件        614  2017-11-21 11:56  GlideTest\.idea\libraries\animated_vector_drawable_26_0_0_alpha1.xml

     文件        578  2017-11-21 11:56  GlideTest\.idea\libraries\appcompat_v7_26_0_0_alpha1.xml

     文件        660  2017-11-21 13:51  GlideTest\.idea\libraries\baseRecyclerViewAdapterHelper_2_9_30.xml

     文件        575  2017-11-21 14:08  GlideTest\.idea\libraries\cardview_v7_26_0_0_alpha1.xml

     文件        410  2017-11-21 11:56  GlideTest\.idea\libraries\constraint_layout_1_0_2.xml

     文件        329  2017-11-21 11:56  GlideTest\.idea\libraries\constraint_layout_solver_1_0_2.xml

     文件        571  2017-11-21 11:56  GlideTest\.idea\libraries\espresso_core_2_2_2.xml

     文件        604  2017-11-21 11:56  GlideTest\.idea\libraries\espresso_idling_resource_2_2_2.xml

     文件        622  2017-11-21 11:56  GlideTest\.idea\libraries\exposed_instrumentation_api_publish_0_5.xml

     文件        522  2017-11-21 11:56  GlideTest\.idea\libraries\glide_3_7_0.xml

     文件        626  2017-11-21 11:56  GlideTest\.idea\libraries\glide_transformations_2_0_1.xml

     文件        526  2017-11-21 11:56  GlideTest\.idea\libraries\hamcrest_core_1_3.xml

     文件        561  2017-11-21 11:56  GlideTest\.idea\libraries\hamcrest_integration_1_3.xml

     文件        540  2017-11-21 11:56  GlideTest\.idea\libraries\hamcrest_library_1_3.xml

     文件        521  2017-11-21 11:56  GlideTest\.idea\libraries\javawriter_2_1_1.xml

     文件        569  2017-11-21 11:56  GlideTest\.idea\libraries\javax_annotation_api_1_2.xml

     文件        511  2017-11-21 11:56  GlideTest\.idea\libraries\javax_inject_1.xml

     文件        330  2017-11-21 11:56  GlideTest\.idea\libraries\jsr305_2_0_1.xml

............此处省略138个文件信息

评论

共有 条评论