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

资源简介

Android为图片加图片logo水印,可以加文字水印,左上角,右上角,中间,左下角,右下角

资源截图

代码片段和文件信息

package com.watermark;

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.*;

/**
 * Instrumented 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.watermark“ appContext.getPackageName());
    }
}

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

     文件        127  2019-01-09 10:16  WaterMarkDemo\.gitignore

     文件          1  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\fileChanges\last-build.bin

     文件         17  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\fileContent\fileContent.lock

     文件     245269  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\fileHashes\fileHashes.bin

     文件         17  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\fileHashes\fileHashes.lock

     文件      19959  2019-01-09 10:23  WaterMarkDemo\.gradle\4.1\fileHashes\resourceHashesCache.bin

     文件     799882  2019-01-09 10:49  WaterMarkDemo\.gradle\4.1\javaCompile\classAnalysis.bin

     文件     325810  2019-01-09 10:23  WaterMarkDemo\.gradle\4.1\javaCompile\jarAnalysis.bin

     文件         17  2019-01-09 10:49  WaterMarkDemo\.gradle\4.1\javaCompile\javaCompile.lock

     文件      58307  2019-01-09 10:49  WaterMarkDemo\.gradle\4.1\javaCompile\taskHistory.bin

     文件      20840  2019-01-09 10:49  WaterMarkDemo\.gradle\4.1\javaCompile\taskJars.bin

     文件    1821811  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\taskHistory\fileSnapshots.bin

     文件      61108  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\taskHistory\taskHistory.bin

     文件         17  2019-01-09 10:54  WaterMarkDemo\.gradle\4.1\taskHistory\taskHistory.lock

     文件          0  2019-01-09 10:16  WaterMarkDemo\.gradle\buildOutputCleanup\built.bin

     文件         51  2019-01-09 10:16  WaterMarkDemo\.gradle\buildOutputCleanup\cache.properties

     文件          2  2019-01-09 10:54  WaterMarkDemo\.gradle\buildOutputCleanup\cache.properties.lock

     文件        626  2019-01-09 10:16  WaterMarkDemo\.idea\gradle.xml

     文件        533  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\android_arch_core_common_1_0_0_jar.xml

     文件        548  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\android_arch_lifecycle_common_1_0_0_jar.xml

     文件        658  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\android_arch_lifecycle_runtime_1_0_0.xml

     文件        742  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_animated_vector_drawable_26_1_0.xml

     文件        682  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_appcompat_v7_26_1_0.xml

     文件        501  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_constraint_constraint_layout_1_1_3.xml

     文件        425  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml

     文件        608  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_support_annotations_26_1_0_jar.xml

     文件        692  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_support_compat_26_1_0.xml

     文件        697  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_support_core_ui_26_1_0.xml

     文件        712  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_support_core_utils_26_1_0.xml

     文件        702  2019-01-09 10:16  WaterMarkDemo\.idea\libraries\com_android_support_support_fragment_26_1_0.xml

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

评论

共有 条评论

相关资源