资源简介

有时候需要对一些数据进行分类显示,还要显示他们的分类标题,普通的GridView是挺难实现的,因为GridView不支持不同行自定义列数,例如我想标题占满一行,其他子项每两个占一行。GridView也可以实现,需要对GridView的方法做大量地重写override,重绘等等,对一些像我这种菜鸟级别的人来说,门槛太高。后来发现可以使用RecyclerView实现这种功能,RecyclerView支持自定义不同列数

资源截图

代码片段和文件信息

/**
 * Automatically generated file. DO NOT MODIFY
 */
package com.example.mrc.csdndemo.test;

public final class BuildConfig {
  public static final boolean DEBUG = Boolean.parseBoolean(“true“);
  public static final String APPLICATION_ID = “com.example.mrc.csdndemo.test“;
  public static final String BUILD_TYPE = “debug“;
  public static final String FLAVOR = ““;
  public static final int VERSION_CODE = 1;
  public static final String VERSION_NAME = “1.0“;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-19 20:40  CSDNDemo\
     文件         127  2018-01-26 00:28  CSDNDemo\.gitignore
     目录           0  2018-01-26 00:28  CSDNDemo\.gradle\
     目录           0  2018-01-26 09:53  CSDNDemo\.gradle\4.1\
     目录           0  2018-01-26 00:28  CSDNDemo\.gradle\4.1\fileChanges\
     文件           1  2018-04-02 17:02  CSDNDemo\.gradle\4.1\fileChanges\last-build.bin
     目录           0  2018-01-26 09:52  CSDNDemo\.gradle\4.1\fileContent\
     文件          17  2018-04-02 17:02  CSDNDemo\.gradle\4.1\fileContent\fileContent.lock
     目录           0  2018-01-26 00:28  CSDNDemo\.gradle\4.1\fileHashes\
     文件      305869  2018-04-02 17:02  CSDNDemo\.gradle\4.1\fileHashes\fileHashes.bin
     文件          17  2018-04-02 17:02  CSDNDemo\.gradle\4.1\fileHashes\fileHashes.lock
     文件       19993  2018-04-02 13:57  CSDNDemo\.gradle\4.1\fileHashes\resourceHashesCache.bin
     目录           0  2018-01-26 09:53  CSDNDemo\.gradle\4.1\javaCompile\
     文件      916186  2018-04-02 16:35  CSDNDemo\.gradle\4.1\javaCompile\classAnalysis.bin
     文件      348698  2018-04-02 13:57  CSDNDemo\.gradle\4.1\javaCompile\jarAnalysis.bin
     文件          17  2018-04-02 17:02  CSDNDemo\.gradle\4.1\javaCompile\javaCompile.lock
     文件      741696  2018-04-02 17:02  CSDNDemo\.gradle\4.1\javaCompile\taskHistory.bin
     文件       23234  2018-04-02 17:02  CSDNDemo\.gradle\4.1\javaCompile\taskJars.bin
     目录           0  2018-01-26 00:28  CSDNDemo\.gradle\4.1\taskHistory\
     文件     2825332  2018-04-02 17:02  CSDNDemo\.gradle\4.1\taskHistory\fileSnapshots.bin
     文件       81524  2018-04-02 17:02  CSDNDemo\.gradle\4.1\taskHistory\taskHistory.bin
     文件          17  2018-04-02 17:02  CSDNDemo\.gradle\4.1\taskHistory\taskHistory.lock
     目录           0  2018-01-26 00:28  CSDNDemo\.gradle\buildOutputCleanup\
     文件           0  2018-01-26 00:28  CSDNDemo\.gradle\buildOutputCleanup\built.bin
     文件          51  2018-01-26 00:28  CSDNDemo\.gradle\buildOutputCleanup\cache.properties
     文件           2  2018-04-02 17:01  CSDNDemo\.gradle\buildOutputCleanup\cache.properties.lock
     目录           0  2018-04-02 17:09  CSDNDemo\.idea\
     文件         626  2018-01-26 00:28  CSDNDemo\.idea\gradle.xml
     目录           0  2018-03-17 21:11  CSDNDemo\.idea\libraries\
     文件         533  2018-03-17 19:58  CSDNDemo\.idea\libraries\android_arch_core_common_1_0_0_jar.xml
     文件         548  2018-03-17 19:58  CSDNDemo\.idea\libraries\android_arch_lifecycle_common_1_0_0_jar.xml
............此处省略3171个文件信息

评论

共有 条评论