• 大小: 958KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-07
  • 语言: Java
  • 标签: Android  Webview  

资源简介

这是这个demo的对应的博客,上面有demo的效果图以及详细说明http://blog.csdn.net/advance_djj/article/details/78989139

资源截图

代码片段和文件信息

package com.djj.webviewdemo;

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(“com.djj.webviewdemo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-06 15:43  WebViewDemo\
     文件         127  2018-01-05 09:40  WebViewDemo\.gitignore
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\3.3\
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\3.3\taskArtifacts\
     文件      139783  2018-01-05 21:50  WebViewDemo\.gradle\3.3\taskArtifacts\fileHashes.bin
     文件     2504952  2018-01-05 21:50  WebViewDemo\.gradle\3.3\taskArtifacts\fileSnapshots.bin
     文件       81455  2018-01-05 21:50  WebViewDemo\.gradle\3.3\taskArtifacts\taskArtifacts.bin
     文件          17  2018-01-06 14:05  WebViewDemo\.gradle\3.3\taskArtifacts\taskArtifacts.lock
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\3.3\tasks\
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\
     文件       45759  2018-01-05 13:24  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2018-01-05 13:24  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     目录           0  2018-01-06 15:43  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\
     文件       20135  2018-01-05 13:24  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2018-01-05 13:24  WebViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     目录           0  2018-01-06 15:43  WebViewDemo\.idea\
     文件         686  2018-01-05 09:40  WebViewDemo\.idea\compiler.xml
     目录           0  2018-01-06 15:43  WebViewDemo\.idea\copyright\
     文件          76  2018-01-05 09:40  WebViewDemo\.idea\copyright\profiles_settings.xml
     文件         159  2018-01-05 09:40  WebViewDemo\.idea\encodings.xml
     文件         626  2018-01-05 09:40  WebViewDemo\.idea\gradle.xml
     目录           0  2018-01-06 15:43  WebViewDemo\.idea\libraries\
     文件         624  2018-01-05 09:40  WebViewDemo\.idea\libraries\animated_vector_drawable_25_3_1.xml
     文件         588  2018-01-05 09:40  WebViewDemo\.idea\libraries\appcompat_v7_25_3_1.xml
     文件         410  2018-01-05 09:40  WebViewDemo\.idea\libraries\constraint_layout_1_0_2.xml
     文件         360  2018-01-05 09:40  WebViewDemo\.idea\libraries\constraint_layout_solver_1_0_2.xml
     文件         602  2018-01-05 09:40  WebViewDemo\.idea\libraries\espresso_core_2_2_2.xml
     文件         635  2018-01-05 09:40  WebViewDemo\.idea\libraries\espresso_idling_resource_2_2_2.xml
     文件         653  2018-01-05 09:40  WebViewDemo\.idea\libraries\exposed_instrumentation_api_publish_0_5.xml
............此处省略120个文件信息

评论

共有 条评论