• 大小: 0.14M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 标签: Fragment  

资源简介


代码片段和文件信息

package com.example.fragmentdemo;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.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() {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();

        assertEquals(“com.example.fragmentdemo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\
     文件          72  2019-12-01 03:02  fragment_pager_bar-master\README.md
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\
     文件           7  2019-12-01 03:02  fragment_pager_bar-master\app\.gitignore
     文件        1140  2019-12-01 03:02  fragment_pager_bar-master\app\build.gradle
     文件         751  2019-12-01 03:02  fragment_pager_bar-master\app\proguard-rules.pro
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\androidTest\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\androidTest\java\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\androidTest\java\com\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\androidTest\java\com\example\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\androidTest\java\com\example\fragmentdemo\
     文件         764  2019-12-01 03:02  fragment_pager_bar-master\app\src\androidTest\java\com\example\fragmentdemo\ExampleInstrumentedTest.java
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\
     文件         718  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\AndroidManifest.xml
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\
     文件       11730  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\BottomBar.java
     文件        1189  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\Demo02Fragment.java
     文件         658  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\Demo03Fragment.java
     文件         548  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\Demo04Fragment.kt
     文件         654  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\DemoFragment.java
     文件        4842  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\java\com\example\fragmentdemo\MainActivity.java
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\res\
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\res\drawable-v24\
     文件        1880  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\res\drawable-v24\ic_launcher_foreground.xml
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\res\drawable\
     文件        5606  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\res\drawable\ic_launcher_background.xml
     目录           0  2019-12-01 03:02  fragment_pager_bar-master\app\src\main\res\layout\
............此处省略42个文件信息

评论

共有 条评论