• 大小: 954KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-19
  • 语言: 其他
  • 标签: RecyclerView  setEmpty  

资源简介

此作为博客(关于RecyclerView如何设置空布局(setEmpty)的几种方式)的示例代码,如有问题请留言

资源截图

代码片段和文件信息

package com.example.zq.recyclerviewdemo;

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() {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“com.example.zq.recyclerviewdemo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-23 05:47  RecyclerViewDemo\
     文件         870  2018-07-23 05:47  RecyclerViewDemo\RecyclerViewDemo.iml
     文件         422  2018-07-23 05:46  RecyclerViewDemo\local.properties
     文件          15  2018-07-23 05:46  RecyclerViewDemo\settings.gradle
     文件        2260  2018-07-23 05:46  RecyclerViewDemo\gradlew.bat
     文件        5296  2018-07-23 05:46  RecyclerViewDemo\gradlew
     文件         137  2018-07-23 05:46  RecyclerViewDemo\.gitignore
     文件         546  2018-07-23 05:46  RecyclerViewDemo\build.gradle
     文件         726  2018-07-23 05:46  RecyclerViewDemo\gradle.properties
     目录           0  2018-07-23 05:46  RecyclerViewDemo\.gradle\
     目录           0  2018-07-30 05:17  RecyclerViewDemo\app\
     文件        1000  2018-07-23 05:47  RecyclerViewDemo\app\build.gradle
     文件         751  2018-07-23 05:46  RecyclerViewDemo\app\proguard-rules.pro
     文件           7  2018-07-23 05:46  RecyclerViewDemo\app\.gitignore
     文件       12875  2018-07-30 02:49  RecyclerViewDemo\app\app.iml
     目录           0  2018-07-23 05:46  RecyclerViewDemo\gradle\
     目录           0  2018-07-30 05:17  RecyclerViewDemo\.idea\
     文件         369  2018-07-23 05:47  RecyclerViewDemo\.idea\modules.xml
     文件         564  2018-07-23 05:46  RecyclerViewDemo\.idea\runConfigurations.xml
     文件         626  2018-07-23 05:46  RecyclerViewDemo\.idea\gradle.xml
     文件      226057  2018-07-30 05:17  RecyclerViewDemo\.idea\workspace.xml
     文件        1707  2018-07-30 02:49  RecyclerViewDemo\.idea\misc.xml
     目录           0  2018-07-23 05:46  RecyclerViewDemo\.gradle\buildOutputCleanup\
     文件       20891  2018-07-30 03:05  RecyclerViewDemo\.gradle\buildOutputCleanup\outputFiles.bin
     文件          49  2018-07-23 05:46  RecyclerViewDemo\.gradle\buildOutputCleanup\cache.properties
     文件          17  2018-07-30 03:05  RecyclerViewDemo\.gradle\buildOutputCleanup\buildOutputCleanup.lock
     目录           0  2018-07-23 06:54  RecyclerViewDemo\.gradle\4.4\
     目录           0  2018-07-23 05:46  RecyclerViewDemo\app\src\
     目录           0  2018-07-23 05:46  RecyclerViewDemo\app\libs\
     目录           0  2018-07-23 05:46  RecyclerViewDemo\gradle\wrapper\
     文件         230  2018-07-23 05:46  RecyclerViewDemo\gradle\wrapper\gradle-wrapper.properties
............此处省略125个文件信息

评论

共有 条评论