• 大小: 4.44MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-04
  • 语言: Java
  • 标签: android  gif  

资源简介

在Android中全屏显示GIF图片(演示代码),详细内容请参考:http://blog.csdn.net/u012939909/article/details/77418173

资源截图

代码片段和文件信息

package cc.duduhuo.gifviewdemo;

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(“cc.duduhuo.gifviewdemo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-08-20 00:18  GifViewDemo\
     文件         118  2017-08-19 16:50  GifViewDemo\.gitignore
     目录           0  2017-08-19 16:51  GifViewDemo\.gradle\
     目录           0  2017-08-19 20:01  GifViewDemo\.gradle\3.3\
     目录           0  2017-08-19 16:51  GifViewDemo\.gradle\3.3\taskArtifacts\
     文件      147983  2017-08-20 00:13  GifViewDemo\.gradle\3.3\taskArtifacts\fileHashes.bin
     文件     4349537  2017-08-20 00:13  GifViewDemo\.gradle\3.3\taskArtifacts\fileSnapshots.bin
     文件      146297  2017-08-20 00:13  GifViewDemo\.gradle\3.3\taskArtifacts\taskArtifacts.bin
     文件          17  2017-08-20 00:13  GifViewDemo\.gradle\3.3\taskArtifacts\taskArtifacts.lock
     目录           0  2017-08-19 20:01  GifViewDemo\.gradle\3.3\tasks\
     目录           0  2017-08-19 20:01  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\
     目录           0  2017-08-19 20:01  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\
     文件       50052  2017-08-19 23:57  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-08-19 23:57  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     目录           0  2017-08-19 20:01  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\
     文件       20157  2017-08-19 23:57  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-08-19 23:57  GifViewDemo\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     目录           0  2017-08-20 00:18  GifViewDemo\.idea\
     文件         709  2017-08-19 16:51  GifViewDemo\.idea\compiler.xml
     目录           0  2017-08-19 16:50  GifViewDemo\.idea\copyright\
     文件          76  2017-08-19 16:50  GifViewDemo\.idea\copyright\profiles_settings.xml
     文件         159  2017-08-19 16:50  GifViewDemo\.idea\encodings.xml
     文件         626  2017-08-19 16:51  GifViewDemo\.idea\gradle.xml
     目录           0  2017-08-19 20:10  GifViewDemo\.idea\libraries\
     文件         628  2017-08-19 16:55  GifViewDemo\.idea\libraries\animated_vector_drawable_26_0_0_alpha1.xml
     文件         592  2017-08-19 16:55  GifViewDemo\.idea\libraries\appcompat_v7_26_0_0_alpha1.xml
     文件         410  2017-08-19 16:55  GifViewDemo\.idea\libraries\constraint_layout_1_0_2.xml
     文件         343  2017-08-19 16:55  GifViewDemo\.idea\libraries\constraint_layout_solver_1_0_2.xml
     文件         585  2017-08-19 16:55  GifViewDemo\.idea\libraries\espresso_core_2_2_2.xml
     文件         618  2017-08-19 16:55  GifViewDemo\.idea\libraries\espresso_idling_resource_2_2_2.xml
     文件         636  2017-08-19 16:55  GifViewDemo\.idea\libraries\exposed_instrumentation_api_publish_0_5.xml
............此处省略93个文件信息

评论

共有 条评论