• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-11
  • 语言: 其他
  • 标签: 郭霖  安卓7.0  

资源简介

基于《第一行代码第二版》的天气app的扩展开发(源码)

资源截图

代码片段和文件信息

package com.admin.coolweather;

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-30 06:21  coolweather-master\
     目录           0  2017-09-30 06:21  coolweather-master\app\
     文件           7  2017-09-30 06:21  coolweather-master\app\.gitignore
     文件        1572  2017-09-30 06:21  coolweather-master\app\build.gradle
     文件         915  2017-09-30 06:21  coolweather-master\app\proguard-rules.pro
     目录           0  2017-09-30 06:21  coolweather-master\app\src\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\androidTest\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\androidTest\java\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\androidTest\java\com\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\androidTest\java\com\admin\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\androidTest\java\com\admin\coolweather\
     文件         746  2017-09-30 06:21  coolweather-master\app\src\androidTest\java\com\admin\coolweather\ExampleInstrumentedTest.java
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\
     文件        2875  2017-09-30 06:21  coolweather-master\app\src\main\AndroidManifest.xml
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\assets\
     文件         172  2017-09-30 06:21  coolweather-master\app\src\main\assets\litepal.xml
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\com\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\
     文件        1440  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\DepthPageTransformer.java
     文件        3996  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\DividerItemDecoration.java
     文件         565  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\SpaceItemDecoration.java
     文件        2256  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\VpswipeRefreshLayout.java
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\recycleview\
     文件         288  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\recycleview\OnItemClickListener.java
     文件         304  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\base\recycleview\OnItemLongClickListener.java
     目录           0  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\Bean\
     文件        1304  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\Bean\CityManagementItemBean.java
     文件        1935  2017-09-30 06:21  coolweather-master\app\src\main\java\com\admin\coolweather\Bean\HourlyForecaseItemBean.java
............此处省略101个文件信息

评论

共有 条评论