• 大小: 2.74MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-08
  • 语言: Java
  • 标签:

资源简介

动态的视频背景。Android的可显示的,自动拉伸的,让页面的背景为视频的代码。内附两个测试视频,有声的和无声的。 一些注意点和详细注释,都备注在了代码里

资源截图

代码片段和文件信息

package com.daqie.videobackground;

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.daqie.videobackground“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-17 17:14  VideoBackground\
     文件         127  2017-04-17 16:52  VideoBackground\.gitignore
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\2.14.1\
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\2.14.1\taskArtifacts\
     文件          31  2017-04-17 16:52  VideoBackground\.gradle\2.14.1\taskArtifacts\cache.properties
     文件          17  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\taskArtifacts\cache.properties.lock
     文件      152008  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\taskArtifacts\fileHashes.bin
     文件     2011877  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\taskArtifacts\fileSnapshots.bin
     文件       28964  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\taskArtifacts\fileSnapshotsToTreeSnapshotsIndex.bin
     文件      132984  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\taskArtifacts\taskArtifacts.bin
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\2.14.1\tasks\
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\
     文件       22449  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     目录           0  2017-04-17 17:13  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\
     文件       20014  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-04-17 17:08  VideoBackground\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     目录           0  2017-04-17 17:13  VideoBackground\.idea\
     文件         686  2017-04-17 16:52  VideoBackground\.idea\compiler.xml
     目录           0  2017-04-17 17:13  VideoBackground\.idea\copyright\
     文件          76  2017-04-17 16:52  VideoBackground\.idea\copyright\profiles_settings.xml
     文件         626  2017-04-17 16:52  VideoBackground\.idea\gradle.xml
     目录           0  2017-04-17 17:13  VideoBackground\.idea\libraries\
     文件         641  2017-04-17 16:52  VideoBackground\.idea\libraries\animated_vector_drawable_25_3_0.xml
     文件         581  2017-04-17 16:52  VideoBackground\.idea\libraries\appcompat_v7_25_3_0.xml
     文件         623  2017-04-17 16:52  VideoBackground\.idea\libraries\espresso_core_2_2_2.xml
     文件         678  2017-04-17 16:52  VideoBackground\.idea\libraries\espresso_idling_resource_2_2_2.xml
     文件         696  2017-04-17 16:52  VideoBackground\.idea\libraries\exposed_instrumentation_api_publish_0_5.xml
     文件         526  2017-04-17 16:52  VideoBackground\.idea\libraries\hamcrest_core_1_3.xml
............此处省略82个文件信息

评论

共有 条评论

相关资源