资源简介

使用Android studio开发

资源截图

代码片段和文件信息

package com.linyulong.timepickerdemo;

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-05-24 10:10  TimePickerDemo-master\
     文件         118  2017-05-24 10:10  TimePickerDemo-master\.gitignore
     目录           0  2017-05-24 10:10  TimePickerDemo-master\.idea\
     文件         686  2017-05-24 10:10  TimePickerDemo-master\.idea\compiler.xml
     目录           0  2017-05-24 10:10  TimePickerDemo-master\.idea\copyright\
     文件          74  2017-05-24 10:10  TimePickerDemo-master\.idea\copyright\profiles_settings.xml
     文件         707  2017-05-24 10:10  TimePickerDemo-master\.idea\gradle.xml
     文件        2648  2017-05-24 10:10  TimePickerDemo-master\.idea\misc.xml
     文件         365  2017-05-24 10:10  TimePickerDemo-master\.idea\modules.xml
     文件         564  2017-05-24 10:10  TimePickerDemo-master\.idea\runConfigurations.xml
     文件         167  2017-05-24 10:10  TimePickerDemo-master\.idea\vcs.xml
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\
     文件           7  2017-05-24 10:10  TimePickerDemo-master\app\.gitignore
     文件         945  2017-05-24 10:10  TimePickerDemo-master\app\build.gradle
     文件         915  2017-05-24 10:10  TimePickerDemo-master\app\proguard-rules.pro
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\androidTest\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\androidTest\java\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\androidTest\java\com\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\androidTest\java\com\linyulong\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\androidTest\java\com\linyulong\timepickerdemo\
     文件         760  2017-05-24 10:10  TimePickerDemo-master\app\src\androidTest\java\com\linyulong\timepickerdemo\ExampleInstrumentedTest.java
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\main\
     文件         725  2017-05-24 10:10  TimePickerDemo-master\app\src\main\AndroidManifest.xml
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\com\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\com\linyulong\
     目录           0  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\com\linyulong\timepickerdemo\
     文件       29156  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\com\linyulong\timepickerdemo\CustomDatePicker.java
     文件       10679  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\com\linyulong\timepickerdemo\DatePickerView.java
     文件        2727  2017-05-24 10:10  TimePickerDemo-master\app\src\main\java\com\linyulong\timepickerdemo\MainActivity.java
............此处省略38个文件信息

评论

共有 条评论